Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


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

View previous topic View next topic Go down

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

Post by cilohaidem 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 : 2
Join date : 2012-01-03

Back to top Go down

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

Post by faramka on Tue Jan 03, 2012 8:10 pm


Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

and what now?

Post by cilohaidem 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?


Posts : 2
Join date : 2012-01-03

Back to top Go down

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

Post by Sponsored content

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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