On exporting the test cases (that have been prepared using Selenium IDE) by a JUnit formatter and using Java platform, browser and Selenium w开发者_JAVA技巧indow closes on running the test case.
How can I track the test case result?
You can generate HTML reports via Junit assert checks or write the results in a csv/html using java code. Methods such as isElementPresent will return boolean. You can write the results in a file and generate report.
If you use a TestSuite generated with Selenium IDE you can launch Selenium RC with a similar command :
java -jar C:\SeleniumServer\selenium-server.jar "-Dfile.encoding=UTF-8" -htmlSuite "*chrome" "http://127.0.0.1" "C:\Path\To\TestSuite.html" "C:\Path\To\Results.html"
It'll produce the HTML report you're looking for.
精彩评论