Selenium IDE
-
Upload
jaguardesignstudio -
Category
Documents
-
view
2.953 -
download
2
description
Transcript of Selenium IDE
![Page 1: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/1.jpg)
Selenium IDEPerforms automated testing
![Page 2: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/2.jpg)
Selenium, itself
Selenium is a suite of tools used to automate browsers for testing and other tasks.
Selenium runs in many browsers and operating systems, and can be controlled by many programming languages and testing frameworks.http://seleniumhq.org/about/platforms.jsp
![Page 3: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/3.jpg)
The part I'm going to focus on is Selenium IDE which is a Firefox add-on that performs simple record-and-playback of interactions with the browser.
![Page 4: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/4.jpg)
This complete IDE allows you to record, edit, and debug tests. You can then run the perfected tests repeatedly, or a series of tests.More 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
![Page 5: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/5.jpg)
A good time to use it would be...
![Page 6: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/6.jpg)
As an example to start, I am going to create a simple test of logging in.
Step 1: Click record button
![Page 7: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/7.jpg)
Step 2: Perform actions normally
Navigate to site
Login
Success!
![Page 8: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/8.jpg)
You can also edit the command, target, and value fields if they weren't captured correctly, but most of the time we won't have to use too many manual commands.
![Page 9: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/9.jpg)
An easy way to confirm you're at the place you expect is to add a verify TextPresent command.
![Page 10: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/10.jpg)
![Page 11: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/11.jpg)
You can create multiple tests, such as login, add single award, and then sign out-- all automated!
This is known as a test suite.
![Page 12: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/12.jpg)
If all goes smoothly, everything will appear green!
The idea is to build large test suites to make sure everything still works. We will save test suites in project repository.
Make sure the tests are in order, then click run all tests.
![Page 13: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/13.jpg)
Install the add-on:http://seleniumhq.org/download/
Links to tutorials I used:http://www.codediesel.com/php/selenium-ide-tutorial-part-1/
http://www.codediesel.com/php/selenium-ide-tutorial-part-2/
![Page 14: Selenium IDE](https://reader034.fdocuments.in/reader034/viewer/2022052600/557d649fd8b42abf3d8b54c7/html5/thumbnails/14.jpg)
There is lots more to it(that I don't understand)...
And you might have questions(that I don't have answers to)...
But we will figure out as we go what it is most useful for(or you can experiment further on your own)