English 中文(简体)
如何使用Selenium RC提供测试报告?
原标题:How to give test report using selenium Rc?

通过JUnit格式化程序将使用Selenium IDE准备的测试用例导出,并使用Java平台,在运行测试用例时关闭浏览器和Selenium窗口。

我如何跟踪测试用例结果?

问题回答

您可以通过Junit断言检查生成HTML报告,或使用Java代码将结果写入CSV/HTML中。像isElementPresent这样的方法会返回布尔值。您可以将结果写入文件并生成报告。

如果你使用由电离层电离层电离层测量仪生成的测试Suite,你可以发射具有类似指令的Selenium RC:

java -jar C:SeleniumServerselenium-server.jar "-Dfile.encoding=UTF-8" -htmlSuite "*chrome" "http://127.0.0.1" "C:PathToTestSuite.html" "C:PathToResults.html"

它将产生您正在寻找的HTML报告。





相关问题
Javascript communication with Selenium (RC)

My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to ...

Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

Using a Java library with Scala reserved words

I m using an external library written in Java (Selenium). One of the function calls has the signature type(String, String), and I keep getting compiler errors when trying to call it from Scala, that ...

Heightened privilege selenium browsers on Windows 7 (x64)

I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I ve moved from XP over to 7, ...

Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Selenium IDE: Incrementing values by 1 and 71

Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...

热门标签