Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

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

Tue Jan 03, 2012 7:35 pm
Hi,
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 "google.de" "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 "google.de" "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 java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown 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
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

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

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

how to replay the testsuite(recorded in the IDE) from ccommandline? Empty and what now?

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:127.0.0.1:4444/wd/hub
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 0.0.0.0:4444
15:38:07.547 INFO - Started org.openqa.jetty.jetty.Server@be2358

and no Iexplorer pops up?

Sponsored content

how to replay the testsuite(recorded in the IDE) from ccommandline? Empty 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