Selenium RC 刚刚运行套件中的第一个案例

发布于 2024-10-03 00:28:18 字数 520 浏览 1 评论 0原文

我正在尝试使用 Selenium RC 运行 html testSuite。 浏览器启动,第一个测试运行,但没有其他任何事情。 Selenium 从未开始在我的套件中运行第二个测试。在 Selenium 的 RC 文档或互联网中找不到任何相关内容(除了没有答案的论坛帖子)。 有人可以帮助我吗?我可能做错了什么?

如果我使用 Selenium IDE for firefox 运行相同的测试套件,它会完美运行。如果我在 seleniumRc 启动浏览器后手动运行套件中的第二个测试用例,它运行正常 - 通过手动运行,我的意思是单击 selenium 测试页面左框架中的第二行,然后单击“运行所选测试”。

这就是我正在使用的命令行:

java -jar selenium-server.jar -htmlsuite *chrome http://localhost:8088/ /home/devel/Dev/tests/TS_5.1.2 /home/devel/Dev/tests/log.html

感谢您的帮助! 费尔南多

I'm trying to run an html testSuite with Selenium RC.
The browser starts, the first test runs, but nothing else. Selenium never start running the second test in my suite. Couldn't find anything related in Selenium's RC docs nor internet (except a forum's post without answer).
Could anyone help me? What could I be doing wrong?

If I run the same testsuite using Selenium IDE for firefox it runs perfectly. If I manually run the second testcase in the suite after seleniumRc launching the browser, it runs ok - by running manually I mean clicking in the second row in the left frame of the selenium test page and click in "Run the selected test".

That's the command line I'm using:

java -jar selenium-server.jar -htmlsuite *chrome http://localhost:8088/ /home/devel/Dev/tests/TS_5.1.2 /home/devel/Dev/tests/log.html

Apreciate your help!
Fernando

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

诗酒趁年少 2024-10-10 00:28:18

将“.html”扩展名添加到测试套件文件和每个测试用例文件(否则套件将不会运行超过第一个测试用例)

Add ".html" extension to the test suite file and each test case file (else suite will not run past the first test case)

作死小能手 2024-10-10 00:28:18

根据 this,命令行格式为:

java -jar selenium-server.jar
-htmlSuite“*firefox”“http://www.google.com”
“c:\absolute\path\to\my\HTMLSuite.html”
“c:\absolute\path\to\my\results.html”

与您的有一些细微的差别,例如 htmlSuite 中的大写 S,所有内容都用引号引起来,并且测试套件有一个 html 后缀。

您是否用其他浏览器尝试过此操作?

只是为了确认您正在运行 HTML Selenese 套件,而不是单个测试?

As per this, the command line format is:

java -jar selenium-server.jar
-htmlSuite "*firefox" "http://www.google.com"
"c:\absolute\path\to\my\HTMLSuite.html"
"c:\absolute\path\to\my\results.html"

which has some subtle differences to yours e.g. capital S in htmlSuite, quotes around everything and the test suite has a html suffix.

Have you tried this with another browser?

Just to confirm you are running an HTML Selenese suite, not a single test?

清旖 2024-10-10 00:28:18

如果您的测试用例文件没有 html 扩展名,您将遇到此问题。更改测试用例的扩展名并确保测试套件文件指向新命名的文件。

If your test case files do not have the html extension you will experience this issue. Change the extensions on your test cases and make sure your test suite file is pointing to the newly named files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文