advertisement

Selenium Tutorial

0 %
100 %
advertisement
Information about Selenium Tutorial
Education

Published on June 10, 2009

Author: nitin

Source: authorstream.com

advertisement

Selenium Tutorial : Selenium Tutorial What is Selenium? : What is Selenium? • Javascript framework that runs in your webbrowser • 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 Where to get it? : 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/ Selenium IDE : Selenium IDE The list of actions in the actual test case to execute The root of web application you want to test The log of the events that were executed, including any errors or warning that may have occurred Selenium IDE : Selenium IDE Execution Commands Record test actions Try the test in the Web based TestRunner Specify commands, including asserts Reference of the currently selected command Test Creation Demo : Test Creation Demo • Create test case to log into the gallery • Create test case to log out of the gallery Slide 7: Start Pixory Connect to the Server Go to the Login Screen Hit the Record Button Slide 8: Type in Username and Password Hit record again to stop Hit submit IDE should update Slide 9: Add assertTextPresent and type the text to search for Hit play to make sure your test is successful Creating a Test Suite : 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> Executing the Test Suite : 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 Running the Test Suite : 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>&test=file:///<TEST SUITE FILE>&auto=true chrome://selenium-ide/content/selenium/TestRunner.html? baseURL=http://localhost:8081&test=file:///Users/ms333/ projects/classes/running/v_and_v/hw3/selenium/test/ TestSuite.html&auto=true Test Suite : Test Suite Test Suite : Test Suite Execution Control Test Cases Steps of the test case Application being tested Test Runner Control : Test Runner Control Test Runner Control : Test Runner Control Pause/Play Execution Step through Execution Control Speed of Execution Summary of the Test View the log of the current execution View the DOM of the current Page being tested Highlight Elements in the Execution Run All Tests Run Selected Test TestRunner Demo : TestRunner Demo Execute Tests created inside the Firefox TestRunner.

Add a comment

Related presentations

Related pages

Selenium Tutorial for Beginner/Tips for Experts”

Resizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null. In addition to ...
Read more

Free Selenium Tutorials - Meet Guru99

Selenium is a free open source testing tool which caters different testing needs. Following course will make you Selenium pro
Read more

Selenium Tutorial | Free selenium videos | Selenium ...

Online Selenium Training, Online QTP UFT Training, Selenium Tutorial, QTP UFT Tutorial,Selenium Training course
Read more

Selenium Tutorial for Beginners - Appvance | Appvance ...

Selenium Tutorial for Beginners shows how to build, debug, and operate Selenium software tests of Ajax, Web, Flash, Flex, RIA applications.
Read more

Selenium Tutorial - Tutorials for Google Maps, Joomla ...

Selenium Tutorial for beginners - Learning Selenium in simple and easy steps : A beginner's tutorial containing complete knowledge about Selenium ...
Read more

Selenium Tutorial For Beginners - Tutorial 1

Selenium Tutorial for Beginners shows how to build, debug, and operate Selenium software tests of Web, Ajax, Flash, Flex, RIA applications.
Read more

GettingStarted - selenium - Getting started with WebDriver ...

The 5 Minute Getting Started Guide. WebDriver is a tool for automating testing web applications, and in particular to verify that they work as ...
Read more

Selenium Tutorial - YouTube

The tutorial covers Selenium architecture and explanation about different Selenium components. "Selenium tutorial" "QTP Selenium Training" "Selenium training"
Read more

Automatisierters Testen von Web Apps mit Selenium ...

Webdesign, Tutorials und mehr - Webmasterpro.de. Portal; Design; Entwicklung; ... Selenium ist in Java programmiert und lässt sich deshalb auf jedem ...
Read more

Selenium Documentation — Selenium Documentation

Selenium Sponsors. See who supports the Selenium project. Programming Language Preference. Selenium Documentation ...
Read more