Browser support: Firefox 2, Firefox 3, IE 7, IE 8 , Safari 2, Safari 3, Opera 8, Opera 9 Programming language support: C#, Java, Perl, PHP, Python, Ruby Testing framework support: Bromine, JUnit, NUnit, RSpec (Ruby), Test::Unit (Ruby), TestNG (Java), unittest (Python), Robot Framework SeleniumLibrary From SeleniumHQ( December 2010) http://seleniumhq.org/
Features: Easy record and playback Intelligent field selection will use IDs, names, or XPath as needed Autocomplete for all common Selenium commands Walk through tests Debug and set breakpoints Save tests as HTML, Ruby scripts, or any other format Support for Selenium user-extensions.js file Option to automatically assert the title of every page Easy customization through plugins
Selenium-RC provides an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. This ability to use Selenium-RC with a high-level programming language to develop test cases also allows the automated testing to be integrated with a project’s automated build environment.
Selenium IDE is an integrated development environment for Selenium tests. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. You can even use it generate code to run the tests with Selenium Remote Control. Limitations o Browser (Firefox Only) o Language Support (Selenese Only) Selenium RC : Selenium RC can be used for automating web applications for different web browsers on different platforms using your favorite language like JAVA, C#, Perl, Python, Ruby etc. To write your scripts, you can use Selenium RC with or without Selenium IDE because selenium IDE would help you writing scripts. Limitations o Slow o Limited number of concurrent tests Selenium-Grid Selenium-Grid allows the Selenium-RC solution to scale for large test suites or test suites that must be run in multiple environments. With Selenium-Grid, multiple instances of Selenium-RC are running on various operating system and browser configurations; Each of these when launching register with a hub. When tests are sent to the hub they are then redirected to an available Selenium-RC, which will launch the browser and run the test. This allows for running tests in parallel, with the entire test suite theoretically taking only as long to run as the longest individual test.
How to setup and install the Selenium IDE Explain – 3 Slides Show picture and explain how to install the IDE tool What is needed machine wise to setup the tool
For more information, please visit the below link http://seleniumhq.org/docs/04_selenese_commands.html
Explain – 7 – 10 slides This section should contain an example of a test case and how it’s written in Selenium IDE (both using the recorder and scripting)
Explain – 6 – 8 slides This section should contain slides that talk about how to run a test, review results and setup the test A simple exercise should also be included in this section so that the testers can try for themselves
Start from the Middle: This also is used for debugging. To set a start point, select a command, right-click, and from the context menu select Set/Clear Start Point. Run Any Single Command : It lets you immediately test a command you are constructing, when you are not sure if it is correct. You can double-click it to see if it runs correctly. This is also available from the context menu.
Show code in selenium for this Show the recorded steps in the record pane Show what the tester should see and this slide will help the instructor show the students what the answer is Explain what was done – 1 – 2 slides
2 Example HTML code for locating element: Visit http://www.w3schools.com/htmldom/default.asp for more information about DOM Visit http://www.w3schools.com/css/default.asp for more information about CSS Visit http://www.w3schools.com/xpath/default.asp for more information about XPath
Explain – 3 Slides Just an overview of tools that are used with Selenium Explain that other programming languages are available for Selenium, but keep this section simple. Eclipse is a multi-language software development platform comprising an IDE and a plug-in system to extend it. It is written primarily in Java and is used to develop applications in this language and, by means of the various plug-ins, in other languages as well as C/C++, Cobol, Python, Perl, PHP and more. IntelliJ IDEA is a commercial Java IDE by the company JetBrains. Intellij provides a set of integrated refactoring tools that allow programmers to quickly redesign their code. IntelliJ IDEA provides close integration with popular open source development tools such as CVS, Subversion, Apache Ant and JUnit. * http://seleniumhq.org/docs/appendix_installing_java_driver_client.html#configuring-selenium-rc-intellij-reference . CubicTest is a graphical Eclipse plug-in for writing Selenium and Watir tests. It makes tests faster and easier to write, and provides abstractions to make tests more robust and reusable.
Explain – 3 Slides Just an overview of tools that are used with Selenium Explain that other programming languages are available for Selenium, but keep this section simple. Eclipse is a multi-language software development platform comprising an IDE and a plug-in system to extend it. It is written primarily in Java and is used to develop applications in this language and, by means of the various plug-ins, in other languages as well as C/C++, Cobol, Python, Perl, PHP and more. IntelliJ IDEA is a commercial Java IDE by the company JetBrains. Intellij provides a set of integrated refactoring tools that allow programmers to quickly redesign their code. IntelliJ IDEA provides close integration with popular open source development tools such as CVS, Subversion, Apache Ant and JUnit. * http://seleniumhq.org/docs/appendix_installing_java_driver_client.html#configuring-selenium-rc-intellij-reference . CubicTest is a graphical Eclipse plug-in for writing Selenium and Watir tests. It makes tests faster and easier to write, and provides abstractions to make tests more robust and reusable.
Purpose of this exercise: know how to use wait in selenium, using regular expression, locate element in different ways,…
In this section, review the OOP concept. Require learner must know Java and OOP.
TestNG using Selenium RC to automate test case on web. For more information about TestNG, please visit: http://testng.org/
For more information, please visit the below link http://seleniumhq.org/docs/04_selenese_commands.html