Selenium RC stuck on "Checking resource aliases"

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

Actually, I wrote one script through selenium IDE

and saved it as test.html

and I can run the script through selenium IDE

, but when I try to run the script through selenium RC

it gets stuck at some point and displays the following message in the console "Checking resource aliases"

to run a command line script via:

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

Let me know the exact reason why this is happening?

+3


source to share


2 answers


You should also save your tests as a test suite.

At the end, you will receive two HTML files, a test suite and a test case (or more if you like). The java -jar ... command to run selenium with the -htmlSuite parameter takes an HTML test case, not a test case.



I had the same problem after going through the test suite as the parameter worked like a spell.

+6


source


Step-1: 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 filename test.html

.

Step-3: Run this command on the command line

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

      

+3


source







All Articles