Upload
onlinemindq
View
720
Download
0
Embed Size (px)
DESCRIPTION
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: [email protected] Call me at: +91-9502991277.
Citation preview
Pubman and Selenium tests
www.Seleniumonlinetraining.info
What is Selenium
• Selenium is a suite of Web application test automation tools for any browser on any operating system– Firefox, Internet Explorer, Safari, Opera, Chrome– Windows, OS X, Linux, Solaris
• Selenium is broken up into 4 primary components– Selenium Core– Selenium IDE– Selenium RC– Selenium Grid
• http://seleniumhq.org
What is Selenium
• Selenium is a suite of Web application test automation tools for any browser on any operating system– Firefox, Internet Explorer, Safari, Opera, Chrome– Windows, OS X, Linux, Solaris
• Selenium is broken up into 4 primary components– Selenium Core– Selenium IDE– Selenium RC– Selenium Grid
• http://seleniumhq.org
www.Seleniumonlinetraining.info
Supported Browsers* Tests developed on Firefox via Selenium-IDE can be executed on any other supported browser via a simple Selenium-RC command line.
www.Seleniumonlinetraining.info
Selenium Core• Selenium Core was developed for an internal application
at ThoughtWorks• The Core is written in JavaScript, so it runs directly in the
browser• Tests run directly on the application web server• Selenese is a command language written into HTML
tables
• Problems:– cannot switch between http and https protocols.– cannot go from one domain to another
Command Target Value
www.Seleniumonlinetraining.info
Selenium IDE• The IDE is a record and playback tool with built-in debugger and editor• The IDE is an add-on for Mozilla Firefox only• The IDE automatically creates test scripts in the Selenese HTML table format• The IDE can generate code into a wide variety of languages and test
frameworks– HTML Selenese, C#, Java, Perl, PHP, Python, Ruby– Bromine, JUnit, NUnit, RSpec, Test::Unit, TestNG, unittest
• Does not directly support:– condition statements, iteration– logging and reporting of test results– error handling, particularly unexpected errors– database testing – test case grouping, test case dependency– screenshot capture of test failures
www.Seleniumonlinetraining.info
Selenium IDE
www.Seleniumonlinetraining.info
Selenium RC
• is written in Java for portability and is executed from the command line
• Selenium-RC components are:– The selenium Server which launches and kills browsers, interprets
and runs the Selenese commands passed from the test program, and acts as an HTTP proxy, intercepting and verifying HTTP messages passed between the browser and AUT.
– client libraries which provide the interface between each programming language and the Selenium-RC Server
• client programming languages: C#, Java, Perl, PHP, Python, Ruby
www.Seleniumonlinetraining.info
Selenium RC
www.Seleniumonlinetraining.info
www.Seleniumonlinetraining.info
Selenium Grid
• The Grid enables you to run tests in parallel on multiple machines– Tests can be ran in parallel for reduced execution time– Test can be ran on various browser and operating system
combinations– Generates a collated report from all test machines
• The Grid can be run on a server farm or in the Cloud– The tests are distributed by the Hub server to multiple Selenium
RC machines– The tests can be ran by various Cloud computing services such
as Amazon EC2, Sauce Labs, BrowserMob, and PushToTest– The Grid is written in Java for portability and is executed from the
command line
www.Seleniumonlinetraining.info
Selenium Grid
www.Seleniumonlinetraining.info
Selenium IDE Test demo inhttps://zim01.gwdg.de/repos/smc/trunk/05_Implementation/02_Testing/Pubman_Selenium_Tests
Selenium RC test demo in…/pubman_ear/src/test/java/
Pubman Selenium tests
www.Seleniumonlinetraining.info
www.Seleniumonlinetraining.info
www.Seleniumonlinetraining.info
Selenium IDEThe list ofactions in theactual test caseto execute
The root of web application youwant to test
The log of theevents that wereexecuted, includingany errors orwarning that mayhave occurred
www.Seleniumonlinetraining.info
Selenium IDE
ExecutionCommands
Record testactions
Specify commands,including asserts
Reference of thecurrently selectedcommand
www.Seleniumonlinetraining.info
Running the Test Suite
• Execute the test suite using the Selenium IDE plug-in TestRunner.html
bug? http://jira.openqa.org/browse/SIDE-222
chrome://selenium-ide/content/selenium/TestRunner.html?baseURL=<BASE>&test=file:///<TEST SUITE FILE>&auto=true
www.Seleniumonlinetraining.info
Test SuiteExecutionControl
Test Cases
Steps of thetest case
Applicationbeing tested
www.Seleniumonlinetraining.info
TestRunner Control
www.Seleniumonlinetraining.info
TestRunner ControlPause/PlayExecution
Step throughExecution
Control Speedof Execution
Summary ofthe Test
View the log ofthe currentexecution
View the DOMof the currentPage being tested
HighlightElements in theExecution
Run All Tests
Run Selected Test
www.Seleniumonlinetraining.info
• With Selenium IDE
www.Seleniumonlinetraining.info