Selenium Open Source Tool
www.seleniumcoe.com
What is Selenium?
• Javascript framework that runs in your web-browser
• Works anywhere Javascript is supported
• Hooks fo...
Where to get it?
• You can use Selenium-Core and customize
everything
• But it is easier to just get a Firefox plug-in
“Se...
Selenium IDEThe root of web
application you
want to test
The list of
actions in the
actual test case
to execute
The log of...
Selenium IDE
Execution
Commands
Try the test in
the Web based
TestRunner
Reference of the
currently selected
command
Recor...
Test Creation Demo
• Create test case to log into the gallery
• Create test case to log out of the gallery
www.seleniumcoe...
Start Pixory
Connect to the Server
Go to the Login Screen
Hit the Record Button
www.seleniumcoe.com
Type in Username and Password IDE should update
Hit submit
Hit record again to
stop
www.seleniumcoe.com
Add assertTextPresent and
type the text to search for
Hit play to make sure your test
is successful
www.seleniumcoe.com
Creating a Test Suite
• A Test Suite in
Selenium is just
an HTML file that
contains a table
of links to tests
<html>
<head...
Executing the Test Suite
• Selenium Core is a collection of Javascript
and HTML with iFrames
– Due to security concerns Co...
Running the Test Suite
• We basically want to execute the test
suite using the Selenium IDE plug-in
TestRunner.html
chrome...
Test Suite
www.seleniumcoe.com
Test Suite
Application
being tested
Test Cases
Steps of the
test case
Execution
Control
www.seleniumcoe.com
Test Runner Control
www.seleniumcoe.com
Test Runner Control
Run All Tests
Run Selected Test
Pause/Play
Execution Step through
Execution
Control Speed
of Execution...
TestRunner Demo
• Execute Tests created inside the Firefox
TestRunner
www.seleniumcoe.com
Upcoming SlideShare
Loading in...5
×

Selenium.ppt

289

Published on

SELENIUM COURSE CONTENT:
Course Description
Within fast moving agile software development teams it becomes important to test user interfaces as they are being coded. Automated Testing techniques using Selenium 2 allow for test replay of important features as development progresses. Selenium IDE and Selenium Web Driver are important tools for any tester or developer to use in ensuring software quality and making changes with confidence. This interactive, hands-on workshop provides an understanding and advanced techniques in the use of Selenium 2 with hands on practice. The practice exercises are tailored to various skill levels and type of application being tested, from simple forms to complex web applications.
Objectives:
The class will teach participants to:
Understand trade-offs of automated vs. manual testing.
Record, edit and play back Selenium IDE tests against multiple types of web applications.
Minimize test failure due to normal changes to code.
Understanding of basic Selenium commands to get through common issue with web applications.
Use of Eclipse to run tests individually and as a group to generate test failure reports.
Learn how to help developers understand the importance of making applications more testable to improve usability.

Topics:

Overview of automated testing
Selenium Suite Overview
Selenium 2 Limitations
Selenium IDE
HTML Locator strategy and false test failure
Firefox Firebug and reading HTML
Selenium Web Driver setup
Eclipse and JUnit (Don't Panic it's just code)
Convert Selenium IDE tests into Selenium 2 Java WebDriver tests
Working with unsupported commands from Selenium IDE
Dealing with security and certificates
Selenium Web Driver practice workshop
Learn how to test in multiple browsers and generate metrics and reports
Discussion of setting up Selenium Web Driver for continuous integration

Bonus Features:

Sample Selenium Web Driver code
Scripts to run JUnit test suites on multiple browsers and generate reports and metrics
List of web resources and blogs for reference
Laminated CSS selector cheat sheet
Laminated Selenium 2 command reference
Courses Offered in Our Training Institute:

1)Msbi
2)Dotnet
3)SharePoint 2010
4)Testing TOOLs - QTP, QC , Load Runner, Selenium
5)SQL SERVER


Visit for the course Details www.mindqonline.com
Mail us for details: online@mindqsystems.com
Call me at: +91-9502991277.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
289
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Selenium.ppt

  1. 1. Selenium Open Source Tool www.seleniumcoe.com
  2. 2. What is Selenium? • Javascript framework that runs in your web-browser • Works anywhere Javascript is supported • Hooks for many other languages – Java, Ruby, Python • Can simulate a user navigating through pages and then assert for specific marks on the pages • All you need to really know is HTML to start using it right away www.seleniumcoe.com
  3. 3. Where to get it? • You can use Selenium-Core and customize everything • But it is easier to just get a Firefox plug-in “Selenium-IDE” that helps you “record” test cases • You can record how an app is being used and then play back those recordings followed by asserts • Get everything at: www.openqa.org/selenium/ www.seleniumcoe.com
  4. 4. Selenium IDEThe root of web application you want to test The list of actions in the actual test case to execute The log of the events that were executed, including any errors or warning that may have occurred www.seleniumcoe.com
  5. 5. Selenium IDE Execution Commands Try the test in the Web based TestRunner Reference of the currently selected command Record test actions Specify commands, including asserts www.seleniumcoe.com
  6. 6. Test Creation Demo • Create test case to log into the gallery • Create test case to log out of the gallery www.seleniumcoe.com
  7. 7. Start Pixory Connect to the Server Go to the Login Screen Hit the Record Button www.seleniumcoe.com
  8. 8. Type in Username and Password IDE should update Hit submit Hit record again to stop www.seleniumcoe.com
  9. 9. Add assertTextPresent and type the text to search for Hit play to make sure your test is successful www.seleniumcoe.com
  10. 10. Creating a Test Suite • A Test Suite in Selenium is just an HTML file that contains a table of links to tests <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Demo Test Suite</title> </head> <body> <table id="suiteTable"> <tbody> <tr><td> <b>Demo Test Suite</b> </td></tr> <tr><td> <a href="./testLogin.html">TestLogin</a> </td></tr> <tr><td> <a href="./testLogout.html">TestLogout</a> </td></tr> </tbody> </table> </body> </html> www.seleniumcoe.com
  11. 11. Executing the Test Suite • Selenium Core is a collection of Javascript and HTML with iFrames – Due to security concerns Core must be deployed within the same server as the application being hosted – The simplest way to run Pixory is to just run the Java application and let it use its own server – Problems using Core with Pixory • Selenium IDE is a plug-in for Firefox and thus can go around these restrictions www.seleniumcoe.com
  12. 12. Running the Test Suite • We basically want to execute the test suite using the Selenium IDE plug-in TestRunner.html chrome://selenium- ide/content/selenium/TestRunner.html?baseURL=<BASE>&tes t=file:///<TEST SUITE FILE>&auto=true chrome://selenium- ide/content/selenium/TestRunner.html?baseURL=http://loc alhost:8081&test=file:///Users/ms333/projects/classes/r unning/v_and_v/hw3/selenium/test/TestSuite.html&auto=tr ue www.seleniumcoe.com
  13. 13. Test Suite www.seleniumcoe.com
  14. 14. Test Suite Application being tested Test Cases Steps of the test case Execution Control www.seleniumcoe.com
  15. 15. Test Runner Control www.seleniumcoe.com
  16. 16. Test Runner Control Run All Tests Run Selected Test Pause/Play Execution Step through Execution Control Speed of Execution Highlight Elements in the Execution View the DOM of the current Page being tested Summary of the Test View the log of the current executionwww.seleniumcoe.com
  17. 17. TestRunner Demo • Execute Tests created inside the Firefox TestRunner www.seleniumcoe.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×