testing - 如何将 Selenium RC 用于 Selenium IDE 测试用例依赖?

标签 testing selenium automated-tests selenium-rc gui-testing

我有一个在 Selenium IDE 中制作的身份验证测试用例,必须在所有其他测试之前执行。我不想在测试套件中使用它们,因为如果我对身份验证测试用例进行一些更改,则有必要更改使用它的每个测试用例套件。

有没有办法在运行 Selenium RC Server 时指定此测试用例依赖性测试用例执行顺序?像这样的东西:

java -jar selenium-server-standalone-2.31.0.jar <path>\authentication_test_case.html <path>\application_feature1_test_case.html <path>\report.html

或者然后

java -jar selenium-server-standalone-2.31.0.jar <path>\authentication_test_case.html <path>\application_feature2_test_case.html <path>\report.html

我的需要是在身份验证测试用例中所做的更改不会影响依赖它的其他测试用例/套件。欢迎任何想法!

最佳答案

我刚刚意识到如何使用测试套件在 Selenium 中指定此测试用例依赖项。只需要引用测试用例而不复制它的执行代码:

<td><tr><a href="<path>\authentication_test_case.html">Step 1 - Authentication</a></td></tr>
<td><tr><a href="<path>\application_feature1_test_case.html">Step 2 - Application Feature 1</a></td></tr>

关于testing - 如何将 Selenium RC 用于 Selenium IDE 测试用例依赖?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15578756/

相关文章:

python-2.7 - 在测试类中找不到 __init__ 变量?

selenium - 使用 selenium 和 codeception 进行验收测试,浏览器显示空白页面

google-chrome - 为什么我必须点击两次才能使用 selenium 提交输入

automated-tests - 你可以同时使用 Protractor 和 Appium 来测试混合应用程序吗?

python - 如何围绕现有产品构建测试套件?

testing - Bug Hunt 的替代品?

java - 在多台远程机器上运行并行 junit 测试

node.js - 如何检查元素是否不存在 selenium nodejs

ios - Appium 检查器 - 应用程序不反射(reflect)在屏幕上

linux - 如何在 Perl 中对需要 JavaScript 的页面进行网络测试?