Strategy for Automation of Test Cases
How automation is achieved using Selenium
1. Open the webpage for which automation needs to be done in Firefox Browser.
2. Open Selenium IDE.
3.To use Selenium Core, you need to make it available from the same web server as the application you want to test.So copy the selenium core into htdocs directory of your webserver
3. Some of the commands like clicking a link, typing in some textbox etc are generated automatically using recording mode of selenium.
4. Other commands are written manually using the IDE.
5. Save the test as html file.
6. Add the link for this html file in the file “ testSuite.html” present at location -selenium-core-0.8.2\tests\
Execution of test cases
1. Open the specific browser in which a test case needs to be executed.
2. Open the link-”http://selenium-core-0.8.2/core/TestRunner.html”
3. Select the desired test case.
4. Click the button-“execute selected test case”.
5. When the execution ends, the test cases which fail are highlighted in green color while the rest of the test cases are shown in green color.
Issues
1. Since XPath is being used for identifying modules in a webpage, even a slight modification in the page would require modifications in the tests.
2. Some of the test cases don’t work wit Safari.
3. Scheduling of the execution of test cases can’t be achieved using selenium core and selenium IDE since the links for the desired test cases need to be clicked manually in all the browsers.
Imp:
Scheduling of the execution of test cases
This can be achieved using Selenium RC but Seleniun RC doesn’t work with FireFox 2.0 and above
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment