views:

44

answers:

3

Hi

When running test cases in Selenium IDE I see that each step result is logged in the Log tab. Example:

# [info] Executing: |store | //html/body/div[3]/table/tbody/tr/td[3]/a/img | |
# [info] Executing: |store | | |
# [info] Executing: |verifyText | //td[1]/div | Recommended for you |
# [error] Actual value 'Recommended items' did not match 'Recommended for you'
# [info] Changed test case
# [info] Executing: |clickAndWait | link=My Downloads | |
# [info] Changed test case
# [info] Executing: |waitForPageToLoad | | |
# [info] Executing: |verifyTitle | My Downloads | |
# [info] Executing: |verifyElementPresent | //input[contains(@src,'/ndmns/../images/wap2/img/framework/search_button.png')] | |
# [info] Executing: |verifyElementPresent | //img[contains(@src,'ad-banners/banner_ideas_240x40.jpg')] | |
# [error] false
# [info] Executing: |verifyTextPresent | My Downloads | |
# [info] Executing: |verifyElementPresent | //img[contains(@src,'/images/wap2/img/button_redownload.png')] | |

ht tp://img839.imageshack.us/img839/5646/testresultsv.jpg

Currently, to send the results to the development team I copy them directly from the IDE into a file (CTRL + C and CTRL + V). Is there a way to tell Selenium to store each test execution into a file?

Thanks for your time

}Panacea

{

+1  A: 

This is where using something like Selenium RC starts showing that it is a better variant than Selenium IDE.

If you have your tests run by a programming language then you can use a testing framework that will tell you what passed and fails and can be merged into a CI process so that when something fails the entire team can see the issue.

You can also use logging in your tests that in a programming language to log exactly what you want and take decent screenshots when there is error.

Selenium IDE allows you to export your tests to decent programming languages.

p.s. running your tests in a programming language will also help with maintainability!

AutomatedTester
Thanks for your answer! I've just started reading about the Selenium RC and I'm thinking of using Bromine or Robotframe as a framework. What is your opinion about them?
Panacea
Go for which ever suites your needs really. I use the bindings directly and am quite happy with that.
AutomatedTester
We use Netbeans / JUnit as a wrapper around the Selenium RC code. Netbeans then generates most of the JUnit plumbing for us.
nzpcmad
+1  A: 

Try exploring TestNG as a framework, with ReportNG for reporting. Results can be output to any location in a relatively easy-to-read HTML document

Rajat
+1  A: 

You might like to look at Molybdenum: http://www.molyb.org/confluence/display/molyb/Features+Molybdenum

Imports Selenium test suites and exports a nice HTML/XML report with screenshots for test failures.

rjp