Download presentation
Presentation is loading. Please wait.
Published byMalcolm Bryan Modified over 8 years ago
1
Pubman and Selenium tests
2
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
3
Supported Browsers * Tests developed on Firefox via Selenium-IDE can be executed on any other supported browser via a simple Selenium-RC command line.
4
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 CommandTargetValue
5
Selenium IDE Selenium IDE (Integrated Development Environment) 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
6
Selenium IDE
7
Selenium RC Selenium RC (Remote Control) The RC is a server that launches and kills browsers, and acts as an HTTP proxy for web requests from them The RC contains client libraries for several popular languages –C#, Java, Perl, PHP, Python, Ruby The RC can be used by any testing framework that supports the languages in the client libraries The RC is written in Java for portability and is executed from the command line
8
Selenium RC
9
Selenium Grid The Grid distributes your tests on multiple machines so that you can run your tests in parallel –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
10
Selenium Grid
11
Selenium IDE Test demo in https://zim01.gwdg.de/repos/smc/trunk/05_Implemen tation/02_Testing/Pubman_Selenium_Tests Selenium RC test demo in …/pubman_ear/src/test/java/ Pubman Selenium tests
14
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
15
Selenium IDE Execution Commands Record test actions Specify commands, including asserts Reference of the currently selected command
16
Running the Test Suite Execute the test suite using the Selenium IDE plug-in TestRunner.html bug? http://jira.openqa.org/browse/SIDE-222http://jira.openqa.org/browse/SIDE-222 chrome://selenium-ide/content/selenium/TestRunner.html? baseURL= &test=file:/// &auto=true
17
Test Suite Execution Control Test Cases Steps of the test case Application being tested
18
TestRunner Control
19
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
20
With Selenium IDE
21
Upcoming: Selenium 2.0 and WebDriver
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.