2. • 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..
3.
4. • 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??!
5. • 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.,
6. • Selenium IDE
• Selenium Core
• Selenium RC (Remote Control), Also known as Selenium
1
• Selenium Webdriver or Selenium 2
• Selenium Grid
7. • 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
8. • 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
9. • 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.
10. • “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.
11. • 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.
12. • 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.
13. Test Case #: 1 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.
14. STEP ACTION EXPECTED SYSTEM RESPONSE PASS/FAIL
1
Enter the
user age
If the age is greater than 18 the details are
submitted.
fail
Post-condition:
1.The user gets registered.
15. 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
16. STEP ACTION EXPECTED SYSTEM RESPONSE PASS/FAI
L
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.
17. Test Case #: 3
Test 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
18. 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.
32. 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
33. 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