Is i possible to run java exported tests from selenium ide on selenium-server.jar trough command line/terminal?
So far I have used this command:
java -jar lib/selenium-server-standalone-2.28.0.jar -htmlsuite *firefox http://localhost:4444/wd/hub src/NewTest.java NewTest-result.html
It works ok until the firefox is lanuched and I see the code of this test in firefox but it doesn’t show that it has run the test at all. It says 0 test run, 0 tests failed, 0 tests successful.
Is it my command wrong or selenium server is not supposed to be used this way?
I even tried to use the html version of NewTest instead of java but same result.
The converted tests are JUnit tests. So you should have two processes:
Your selenium server process:
Your JUnit test runner
If you have several test classes, it might be better to create a
TestSuitewith the Suite annotation:If you are using Spring, you can setup config containing selenium server address, browser, …