A Case Study of Using Selenium IDE and WebDriver_Presenation

35
By Jabeen Shazia Iqbal Nithin Reddy Gajjala Ram Anudeep Kuchibhotla Swathy Jayaseelan Sai Sushma Devraj

Transcript of A Case Study of Using Selenium IDE and WebDriver_Presenation

Page 1: A Case Study of Using Selenium IDE and WebDriver_Presenation

ByJabeen Shazia Iqbal Nithin Reddy Gajjala Ram Anudeep Kuchibhotla Swathy JayaseelanSai Sushma Devraj

Page 2: A Case Study of Using Selenium IDE and WebDriver_Presenation

• Need • Testing web application is a good way to ensure that

new versions don't introduce bugs and regressions• Allows development team to make changes and

refactor code with more confidence as functionalities can be quickly verified

• Automated testing saves time and money• Tools

• Selenium• Watir• HP UFT ( for non-browser based applications as well)• Windmill etc..

Page 3: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 4: A Case Study of Using Selenium IDE and WebDriver_Presenation

• Developed by Jason Huggins in 2004 at ThoughtWorks

• Many ThoughtWorks programmers and testers joined together and developed the set of tools in the Selenium Suite

• Why the name Selenium??!

Page 5: A Case Study of Using Selenium IDE and WebDriver_Presenation

• Collection of numerous software tools each with an alternative strategy for promoting test automation

• Automates browsers• It is an open-source (free) tool• Test domain specific language – Selenese• Selenium IDE – no need to know test scripting

language• Supports the following

• Languages : Java , JavaScript, C#, Python, PHP, Ruby etc.,

• Browsers : Firefox, IE, Chrome, Safari etc.,

Page 6: A Case Study of Using Selenium IDE and WebDriver_Presenation

• Selenium IDE• Selenium Core• Selenium RC (Remote Control), Also known as

Selenium 1• Selenium Webdriver or Selenium 2• Selenium Grid

Page 7: A Case Study of Using Selenium IDE and WebDriver_Presenation

• IDE – Integrated Development Environment• Firefox plug-in• Record and play back• Programming knowledge not required• Can be downloaded from

http://www.seleniumhq.org/download/• Can be used with Firefox alone - hence Selenium

RC and Web Driver came into picture

Page 8: A Case Study of Using Selenium IDE and WebDriver_Presenation

• Was developed after Selenium RC• Selenium 1 + Web Driver = Selenium 2• Piece of code• Controls browser by programming• Accepts command and send to browser • Supports all browsers unlike IDE

Page 9: A Case Study of Using Selenium IDE and WebDriver_Presenation

• Generally, the word “vote” means an official choice which people take in an election or meeting by casting a ballot, raising their hand or by speaking their choice. The ultimate goal of voting is to elect a leader. Some of the problems involved in voting include rigging votes during election, inaccessible polling stations, and inadequate polling materials. Online voting will address the above mentioned issues.

Page 10: A Case Study of Using Selenium IDE and WebDriver_Presenation

• “Online Voting System” is an online voting portal through which people of age 18 or above have the right to cast their vote. Firstly, the person who has the right to vote is requested to register himself through the portal. The person has to add his username and password.

• Besides this, information such as age, address and pin code is to be updated and these details are stored in a database. After successful registration, the user is allotted a unique voter id using which his login is validated along with his username and password.

• If invalid/wrong details are Submitted, then the citizen is not registered to vote. User’s registration is authenticated by the system administrator and he will store the details of the users in a separate database.

Page 11: A Case Study of Using Selenium IDE and WebDriver_Presenation

• The Online voting system will have a candidate list i.e. it is the list of those people who are contesting in election. The user after login will be directed to the ballot paper page which has the list of candidates. The user will choose a candidate and cast his vote by selecting the radio button.

• After the user is done with the voting process, he will need to confirm his selection. There is counter value which is allotted for every candidate. For each vote the counter value is incremented. The counter value is initially zero.

Page 12: A Case Study of Using Selenium IDE and WebDriver_Presenation

• The primary purpose of conducting the test on Online Voting System is to ensure that the website works as expected i.e. we check for the availability of bugs or errors.

• The Online Voting System should be efficient in allowing a user to successfully login into his account. If the user needs to register in order to cast his vote, the portal should allow the user to register himself for voting. Lastly, the website should be highly responsive and must be available with no downtime.

Page 13: A Case Study of Using Selenium IDE and WebDriver_Presenation

Test Case #: 1 Test Case Name: Voter ageSystem: Online Voting System Design Date: 06/15/2016

Designed by: Team 2 Execution Date: 06/15/2016

Executed by: Team 2  

Short Description: To find bug while entering the voter age.

Pre-condition:

1.The form page must be displayed.

Page 14: A Case Study of Using Selenium IDE and WebDriver_Presenation

 

STEP

 

ACTION

 

EXPECTED SYSTEM RESPONSE

 

PASS/FAIL

1Enter the user age

If the age is greater than 18 the details are submitted.

fail

Post-condition:

1.The user gets registered.

Page 15: A Case Study of Using Selenium IDE and WebDriver_Presenation

Test Case #: 2 Test Case Name: login

System: Online Voting system Design Date: 06/15/2016

Designed by: TEAM 2 Execution Date: 06/15/2016

Executed by: TEAM 2  

Short Description: To find the bugs while Login.

Pre-condition:

1. The user must be registered by providing credentials.

2. The username and the password should be valid

 

 

Page 16: A Case Study of Using Selenium IDE and WebDriver_Presenation

 

STEP

 

ACTION

 

EXPECTED SYSTEM RESPONSE

 

PASS/FAIL

1 Enter the User name

Displays the username pass

2 Enter the Password

Displays the password in the dotted format pass

3. Click on Login

The details are validated with the database. fail

Post- condition:

1.User logins into the system. 

Page 17: A Case Study of Using Selenium IDE and WebDriver_Presenation

Test Case #: 3Test Case Name: Resource not found

System: Online Voting System Design Date:06/15/2016

Designed by: Team 2 Execution Date: 06/15/2016

Executed by: Team 2  

Short Description: To find the missing files.

 

Pre-condition:

1.The user must be registered by providing credentials.2.The username and the password should be valid 

Page 18: A Case Study of Using Selenium IDE and WebDriver_Presenation

Test Case #: 3 Test Case Name: Voter age

System: Online Voting System Design Date: 06/15/2016

Designed by: Team 2 Execution Date: 06/15/2016

Executed by: Team 2

Short Description: To find bug while entering the voter age.

Pre-condition:

1. The form page must be displayed.

Page 19: A Case Study of Using Selenium IDE and WebDriver_Presenation

 

STEP

 

ACTION

 

EXPECTED SYSTEM RESPONSE

 

PASS/FAIL1. Enter the

credentialsUser is registered. pass

2. Enter the username and password

User is authorized. pass

3. Perform the voting

Ballot paper is displayed. fail

Post-Condition:

The user performs voting.

 

Page 20: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 21: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 22: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 23: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 24: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 25: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 26: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 27: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 28: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 29: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 30: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 31: A Case Study of Using Selenium IDE and WebDriver_Presenation
Page 32: A Case Study of Using Selenium IDE and WebDriver_Presenation

PROS

• Open source and portal • Easy to use• Supports various Operating System – Windows, Macintosh, Linux

etc.• Supports programming languages – Java, Perl, Python etc.• Supports various browsers – Chrome, Firefox etc.• Can be integrated with other frameworks of ANT, Maven etc• Prompt test development – used in Agile projects• Different components available – Selenium IDE, Selenium Grid

Page 33: A Case Study of Using Selenium IDE and WebDriver_Presenation

CONS• Supports only web based application • Difficult to test image based application• Does not generate detailed results• Needs help of third party frameworks• Technical issue with browsers other than Firefox • No built in IDE for scripting• Selenium IDE is Firefox plugin, thus its support is limited to Firefox

only• IDE does not support database testing• Demands higher-level technical skills

Page 34: A Case Study of Using Selenium IDE and WebDriver_Presenation

References• http://scraping.pro/what-is-selenium-webdriver/• http://www.testinginterviewquestion.com/2014/04/what-are-

advantages-and-disadvantages_17.html• http://www.zyxware.com/articles/4986/the-advantages-and-

disadvantages-of-selenium-ide• http://www.optimusinfo.com/selenium-testing-advantages-and-

disadvantages/

Page 35: A Case Study of Using Selenium IDE and WebDriver_Presenation

THANK YOU.!!