Monday, October 19, 2009

Part 6: Running The Tests

Using Selenium IDE

• We can open the html tests and click on Run Tests button
• To run all the tests we have we need to create test suites. B default selenium looks for TestSuite.html, so we can either add all the html tests to TestSuite.html
•Or we can override the TestRunner url b replacing the TestSuite.html with our own test suite name Ex: http://localhost/TestRunner.html?test=AllTests.html

Using Selenium RC

•Running tests using selenium RC is up to the framework developer. The common steps to follow are,
1. Starting the selenium Server
2. Initializing the DefaultSelenium object with the application url, browser and other desired properties.
3. call the start method of selenium object (selenium.start())
4. Starting your test (Either we can make use of any other unit testing frameworks like junit, nunit, testNG etc or can use the programming languages technique but in this case you may loose the flexibility and advantages of a testing framework so nobody does that)

No comments:

Post a Comment