using selenium rc standalone jar to run test suite through command line

75 views
Skip to first unread message

Anand Sharma

unread,
Oct 28, 2011, 1:32:12 PM10/28/11
to Selenium Users
Dear All,

I am using selenium-server-standalone-2.10.0.jar to run selenium test
suite through window command line.

my test case contains 7-8 test cases.

When i run this command :-
java -jar selenium-server-standalone-2.0.0.jar -htmlSuite "*iexplore"
"http://www.abc.com." "C:\selenium\test\testsuite1.html" "C:\selenium
\result\result_IE.html"

It opens selenium test runner and start executing test cases.After
passing 3-4 test cases and whenever if any error comes in any test
case(let say in testcase 5) , it exit from command line and doesn't
generate result_IE.html.

my worries is why not it generate result_IE.html when its already
passed 3-4 test cases before test case 5. Even if any error occurred
in test case 5 , it should generate result_IE.html so that i can know
where exactly it failed.

my test case 3 is failed and its showing that 2 commands in test case
3 has failed and that is fine.

so out for 4 test cases 3 is passed and 1 is failed , its acceptable
but when it start executing 5th test case suddenly get stopped so it
does not generating result_IE.html so that i can see why exactly its
get failed.

Why its stopping to generate result_IE.html?

Any feedback and suggestion is much appreciated.

thanks,
Anand sharma



Michael Berkow

unread,
Oct 28, 2011, 3:01:53 PM10/28/11
to Selenium Users
I have seen this if the whole suite takes more than 30 minutes to
execute. If this is the problem, you can add -timout xxxxx to the
java -jar statement.

Anand Sharma

unread,
Oct 28, 2011, 5:06:03 PM10/28/11
to Selenium Users
Thx MIchael ..

can i add like this:-

java -jar selenium-server-standalone-2.0.0.jar -htmlSuite -timeout 90
"*iexplore"
"http://www.abc.com." "C:\selenium\test\testsuite1.html" "C:\selenium
\result\result_IE.html"


where 90 =1.5 hrs

is it correct way of doing this?

Thanks,
Anand sharma
Reply all
Reply to author
Forward
0 new messages