Selenium RC got stuck at “Checking resource aliases”

孤街浪徒 提交于 2019-12-10 19:57:22

问题


I am new to selenium, I got a problem when running selenium RC.

Actually, I have recorded one script via selenium IDE and saved it as test.html and I am able to run the script via selenium IDE but when I try to run the script via selenium RC it gets stuck at some point and displays the following message in the console "Checking resource aliases"

command for running the script via command prompt:

java -jar selenium-server.jar -htmlSuite "*firefox" "www.google.com" "test.html" -port 4445

Let me know the exact reason why this happens?


回答1:


You should save your tests as a Test Suite also.

At the end you will have two HTML files, the Test Suite and the Test Case (or more if you want). The command java -jar .... to run selenium, with the -htmlSuite parameter, takes an HTML Test Suite, not a Test Case.

I had the same problem and after passing the Test Suite as the parameter worked as charm.




回答2:


Step-1: Please create a new html file TestSuite.html

<html>
<head>
    <title>My Application Test Suite</title>
</head>
<body>
    <table> 
        <tr><td><b>Suite Of Tests</b></td></tr> 
        <tr><td><a href="./OPSTest.html">Test Example</a></td></tr>
    </table> 
</body>

Step-2: Rename OPSTest.html to your file name test.html.

Step-3: Run this command in command line

java -jar selenium-server.jar -htmlSuite "*firefox" "www.google.com" "TestSuite.html" -port 4445


来源:https://stackoverflow.com/questions/14722227/selenium-rc-got-stuck-at-checking-resource-aliases

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!