Display results as :
Advanced Search

Go down
Posts : 2
Join date : 2012-01-03

how to replay the testsuite(recorded in the IDE) from ccommandline?

on Tue Jan 03, 2012 7:35 pm
I’m a selenium newbie and need some help with this selenium-server stuff. I also read some Tutorials and entries in forum (the problem is thah a lot of them also talk about Selenium 1) and they all say the same but I just can’t get it work Sad

First, this is what I’m trying to do, or how I think it should work - please correct me here if i’m on the wrong path.
I make some tests with the IDE put them in a TestSuite, and can replay them with the same IDE. The Tests and TestSuite are saved as *.html. In a various Tutorials they say, that you could automate the replay without using the IDE by using something like this:

java –jar ./selenium-server-standalone-2.15.0.jar –htmlsuite *iexplore "" "d:\testing\selenium\rc\ts.html" "d:\testing\selenium\rc\result.html"

I have selenium-IDE 1.5.0 Firefox-Plugin and newest selenium-server-2.15.0

Whan i use only:
java –jar ./selenium-server-standalone-2.15.0.jar
it works, the sever/jetty started. but:
java –jar ./selenium-server-standalone-2.15.0.jar –htmlsuite *iexplore "" "d:\testing\selenium\rc\ts.html" "d:\testing\selenium\rc\result.html"
always gives me the :
Exception in thread "main" java.lang.NoClassDefFoundError: ûjar
Caused by: java.lang.ClassNotFoundException: ûjar
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: ÔÇôjar. Program will exit.

Spend whole day yesterday, cant figure it out – is this the way it is supposed to work?

I just want to record the test with IDE and then replay them without IDE from the commandline. I don’t want to convert from html to Junit or what ever …

And btw. If this is not supposed to work as I described/wish, what ist the advantage of selenium. I mean if I have to convert everything I done in IDE in java or what ever, why not simply write the tests straight ahead in JWebUnit or so?

Can somebody shield some light here please.
Tia Nermin
Posts : 143
Join date : 2011-09-15
Location : Poland

Re: how to replay the testsuite(recorded in the IDE) from ccommandline?

on Tue Jan 03, 2012 8:10 pm
Posts : 2
Join date : 2012-01-03

and what now?

on Tue Jan 03, 2012 9:21 pm
i did but i do not understand
i striped the < ?xml version="1.0" encoding="UTF-8"? > but now i get:

03.01.2012 15:38:07 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
15:38:07.318 INFO - Java: Sun Microsystems Inc. 20.4-b02
15:38:07.320 INFO - OS: Windows Vista 6.0 x86
15:38:07.328 INFO - v2.15.0, with Core v2.15.0. Built from revision 15105
15:38:07.460 INFO - RemoteWebDriver instances should connect to:
15:38:07.463 INFO - Version Jetty/5.1.x
15:38:07.466 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
15:38:07.470 INFO - Started HttpContext[/selenium-server,/selenium-server]
15:38:07.472 INFO - Started HttpContext[/,/]
15:38:07.533 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@22c95b
15:38:07.537 INFO - Started HttpContext[/wd,/wd]
15:38:07.545 INFO - Started SocketListener on
15:38:07.547 INFO - Started org.openqa.jetty.jetty.Server@be2358

and no Iexplorer pops up?

Sponsored content

Re: how to replay the testsuite(recorded in the IDE) from ccommandline?

Back to top
Permissions in this forum:
You cannot reply to topics in this forum