Monday, 24 March 2014

Selenium - Testng , Ant , Ivy , Jenkins

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

Thursday, 13 March 2014

Software Test Automation -2

Today I will analysis Requirements

1. Any one browser
I had tried to automate with different browsers and os and it lead to a very confusing framework .

New rule
Works on one can be extended later

Which browser to choose

Mozilla Firefox

Reason
1. Selenium idea is implemented on this browser
2. Does not require any other executable files

Hoping this is enough to convince me to start .

Software Test Automation -1

I am trying to create a automation framework for testing web applications .
I have tried creating the framework earlier too however I had to stop because of some or the other issues.

This time I am more determined and want to document my progress so that I can understand what went wrong .

This post I will try to identify the requirements of the framework

1. Should work with any one browser
2.  Should be data driven framework .
3.  Should use any unit testing framework  as the driver
4. Test cases should be very easy to understand and maintain
5 . Framework should be written in Java
6 . Example should be done in Mercury tour site .