Today I will explain the process for creation of a complete automation testing lifestyle
Tools used
1. Selenium Webdriver
2. Testng
3. Ant
4. Jenkins
Optional Tools
1. Ivy XML
2. Slf4j logger
5. Git
Folder Explained
1. src/main/java :- contains the core implementations , page objects
2. src/test/java :- contains the testcases and suite
3. src/test/resources :- contains the test data
Explanation
Testcases will be written in Java using Testng annotations .
They will be under src/test/main/testcase package .
Suite will be an XML Testng suite containing different testcases
Page object will be separate and will use Page factory annotations too .
Ant will be the build tool with a target 'run' to run the test cases .
Jenkins will run the ant task periodically and generate reports which will be emailed .
Example with code
Test cases are written in tours.mercury demo site . so everyone can try .
1. Test case : TC_LINKS.java
Test case to verify the links in home page of mercury tours site .
Test steps :
Launch browser
Go to URL
Click all the links
Expected results
1. Proper page title should be shown
Checking Actual .
2. Using assertion
No comments:
Post a Comment