servettonga / wr-52.taqc-java-testproject Goto Github PK
View Code? Open in Web Editor NEWWr-52.TAQC/Python Test Project for EventExpress Web-App
Wr-52.TAQC/Python Test Project for EventExpress Web-App
Shorten Xpaths:
Currently, the project has its own implementation of randomizing data, as shown in the snipped below.
As mentioned by @ignatenko-paul it's a good idea to introduce Faker to do the job for you.
The goal of this issue is to replace the mentioned implementation with Faker.
Rename SamplePageTest to something more accurate.
configs
field could be an inline variable (inside the getConfig()
method.new File("src/test/resources/test.properties")
it would be better to use Resource
, as it is more abstract and will work also if the project get's packaged in a jar
The structure of the Test Project should contain the directories according to PageObject Model.
Create a base allure setup.
README.md
Check that the background image of the Landing page changes within 5 seconds
This page is available after login.
TestSetUp
to BaseTest
, so it's more meaningful. Also make it abstract
Instead of looking for the elements "by hand" a useful annotation could be used instead.
This how it looks in action:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class LandingPage {
@FindBy(css = "#Content a")
private WebElement enterStoreLink;
private WebDriver driver;
public LandingPage(WebDriver driver) {
this.driver = driver;
PageFactory.initElements(driver, this);
}
public void clickOnEnterStoreLink() {
enterStoreLink.click();
}
}
Refactor current pages to make use of this.
.env
file is required to run the tests.
.env
file in the correct placeREADME.md
with the fields that are required thereClick on the Terms Page link
Verify the display of the Terms heading
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.