17
Selenium Automation Testing Suite of Tools

Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Embed Size (px)

Citation preview

Page 1: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Selenium Automation Testing Suite of Tools

Page 2: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

What is Selenium?

• Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.

• 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

Page 3: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Selenium

• You can use open source - Selenium tool

• Selenium IDE is a plug-in to Firefox to record and playback tests (like WinRunner, QTP).

• You can then export the recorded test in most language e.g. HTML, Java , .NET , Perl , Ruby etc.

• The exported test can be run in any browser and any platform using "selenium remote control".

Page 4: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Where to get it?

• You can use Selenium-Core and customize everything – deprecated.

• 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 playback those recordings followed by asserts.

• Get everything at: www.openqa.org/selenium/

Page 5: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Selenium-IDE• Integrated Development Environment for building Selenium test

cases. • Operates as a Firefox add-on and provides an interface for

developing and running individual test cases or entire test suites.

• Selenium-IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back.

• It also has a context menu (right-click) integrated with the Firefox browser, which allows the user to pick from a list of assertions and verifications for the selected location.

• Offers full editing of test cases.• Although it is a Firefox only add-on, tests created in it can also

be run against other browsers by using Selenium-RC & specifying the name of the test suite on the command line.

Page 6: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Browser Selenium-IDE Selenium-RC Operating Systems

Firefox 3 1.0 Beta-1 & 1.0 Beta-2: Record and playback tests Start browser, run tests Windows, Linux, Mac

Firefox 2 1.0 Beta-1: Record and playback tests Start browser, run tests Windows, Linux, Mac

IE 8 Under development Windows

IE 7 Test execution only via Selenium-RC Start browser, run tests Windows

Safari 3 Test execution only via Selenium-RC Start browser, run tests Mac

Safari 2 Test execution only via Selenium-RC Start browser, run tests Mac

Opera 9 Test execution only via Selenium-RC Start browser, run tests Windows, Linux, Mac

Opera 8 Test execution only via Selenium-RC Start browser, run tests Windows, Linux, Mac

Google Chrome Test execution only via Selenium-RC(Windows) Start browser, run tests Windows

Others Test execution only via Selenium-RC Partial support possible As applicable

Supported Browsers* Tests developed on Firefox via Selenium-IDE can be executed on any other supported browser via a simple Selenium-RC command line.

Page 7: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Selenium IDE

Page 8: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Selenium IDE Test Suite Example

Page 9: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Commands, Targets (locators) & Values

Page 10: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Commands, Targets (locators) & Values

Page 11: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Commands, Targets (locators) & Values

Page 12: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

WaitFor, Pause & SetTimeOut Commands

Page 13: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

WaitFor, Pause & SetTimeOut Commands

Page 14: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

WaitFor, Pause & SetTimeOut Commands

Page 15: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Reference Section

Page 16: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Log Section

Page 17: Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for

Selenium Test Suite Demonstration Selenium Test Suite Demonstration - YouTube