- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 4:38 pm
I copied google_for_selenium_rc.htm (which really wanted to execute) into c:\ide_scripts
I am running the below comment.
java -jar selenium-server.jar -htmlSuite "*googlechrome" "http://www.google.com" "c:\ide_scripts\suite.htm" "c:\ide_scripts\result.htm"
But it is not playing the script... Please help where i am going wrong?
My suite script is:
My Test Suite
Also tried for this as
I am running the below comment.
java -jar selenium-server.jar -htmlSuite "*googlechrome" "http://www.google.com" "c:\ide_scripts\suite.htm" "c:\ide_scripts\result.htm"
But it is not playing the script... Please help where i am going wrong?
My suite script is:
A Suite of Selenese Tests |
Google For SeleniumRC |
Also tried for this as
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 5:28 pm
Hi
Can you please check with the following
c:
cd C:\selenium-server-1.0.1
java -jar selenium-server.jar -timeout 180000 -port 4444 -userExtensions "E:\user-extensions.js" -htmlSuite "iexploreproxy" "http://www.google.com/" "E:\TestSuite_Export.html" "E:\TestResults_Export.html"
Pause
Let me know if you have any issues
Can you please check with the following
c:
cd C:\selenium-server-1.0.1
java -jar selenium-server.jar -timeout 180000 -port 4444 -userExtensions "E:\user-extensions.js" -htmlSuite "iexploreproxy" "http://www.google.com/" "E:\TestSuite_Export.html" "E:\TestResults_Export.html"
Pause
Let me know if you have any issues
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:18 pm
Hi,
Can you please explain little so that i can customize for mine...I dont have E"\ drive... I am pasting it in C:\
I am newbie Please help me.
Can you please explain little so that i can customize for mine...I dont have E"\ drive... I am pasting it in C:\
I am newbie Please help me.
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:34 pm
I have tried the below command under the selenium server folder...
java -jar selenium-server.jar -timeout 180000 -port 4444 -userExtensions "C:\user-extensions.js" -htmlSuite "iexploreproxy" "http://www.google.com/" "C:\Google For SeleniumRC.html" "C:\TestResults_Export.html"
It says that "C:\user-extensions.js" is not found...
Please assist me...
java -jar selenium-server.jar -timeout 180000 -port 4444 -userExtensions "C:\user-extensions.js" -htmlSuite "iexploreproxy" "http://www.google.com/" "C:\Google For SeleniumRC.html" "C:\TestResults_Export.html"
It says that "C:\user-extensions.js" is not found...
Please assist me...
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:39 pm
hi,
1.first download selenium-server-1.0.1 in your machine
2.you create your own test suite by using ID and saved it in c drive or whatever you have
3.Next set up batch file for that test suite and follow the
c:
cd C:\selenium-server-1.0.1 /// means where you saved your selenium server
java -jar selenium-server.jar
-timeout 180000 -port 4444 ///means your selenium jar extension,time out and port number
-userExtensions "E:\user-extensions.js"
-htmlSuite "iexploreproxy" //where your are run your test suite i.e.,ie, chrome,etc.......
"http://www.google.com/"
"E:\TestSuite_Export.html" // Your site and path of your suite
"E:\TestResults_Export.html" //where you place your results
Pause
let me know if you have any issues.......................
1.first download selenium-server-1.0.1 in your machine
2.you create your own test suite by using ID and saved it in c drive or whatever you have
3.Next set up batch file for that test suite and follow the
c:
cd C:\selenium-server-1.0.1 /// means where you saved your selenium server
java -jar selenium-server.jar
-timeout 180000 -port 4444 ///means your selenium jar extension,time out and port number
-userExtensions "E:\user-extensions.js"
-htmlSuite "iexploreproxy" //where your are run your test suite i.e.,ie, chrome,etc.......
"http://www.google.com/"
"E:\TestSuite_Export.html" // Your site and path of your suite
"E:\TestResults_Export.html" //where you place your results
Pause
let me know if you have any issues.......................
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:42 pm
it says that C:\user-extensions.js" is not found...do i need to copy this file from any where or it would be automatically created?
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:49 pm
I customized in this way....
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-server-1.0.1\java -jar selenium-server.jar -timeout 180000 -port 4444 -userExtensions -htmlSuite "iexploreproxy" "http://www.google.com/"
"C:\ide_scripts\suite.html" "C:\TestResults_Export.html"
I am getting "C:\ide_scripts\suite.html" is not recognized internal or external command, operable or batch file...
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-server-1.0.1\java -jar selenium-server.jar -timeout 180000 -port 4444 -userExtensions -htmlSuite "iexploreproxy" "http://www.google.com/"
"C:\ide_scripts\suite.html" "C:\TestResults_Export.html"
I am getting "C:\ide_scripts\suite.html" is not recognized internal or external command, operable or batch file...
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:55 pm
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>java -jar selenium-server.jar -timeout 180000 -port 4444 -htmlSuite "i
exploreproxy" "http://www.google.com/"
Not enough command line arguments for -htmlSuite
-htmlSuite requires you to specify:
* browserString (e.g. "*firefox")
* startURL (e.g. "http://www.google.com")
* suiteFile (e.g. "c:\absolute\path\to\my\HTMLSuite.html")
* resultFile (e.g. "c:\absolute\path\to\my\results.html")
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>"C:\ide_scripts\suite.html" "C:\TestResults_Export.html"
'"C:\ide_scripts\suite.html"' is not recognized as an internal or external comma
nd,
operable program or batch file.
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>
Hope this will help identify the problem... where i am going wrong?
ver-1.0.1>java -jar selenium-server.jar -timeout 180000 -port 4444 -htmlSuite "i
exploreproxy" "http://www.google.com/"
Not enough command line arguments for -htmlSuite
-htmlSuite requires you to specify:
* browserString (e.g. "*firefox")
* startURL (e.g. "http://www.google.com")
* suiteFile (e.g. "c:\absolute\path\to\my\HTMLSuite.html")
* resultFile (e.g. "c:\absolute\path\to\my\results.html")
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>"C:\ide_scripts\suite.html" "C:\TestResults_Export.html"
'"C:\ide_scripts\suite.html"' is not recognized as an internal or external comma
nd,
operable program or batch file.
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>
Hope this will help identify the problem... where i am going wrong?
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 7:56 pm
hi,
if your scripts run you must have the jar file extentions in your machine
let me know any issues
if your scripts run you must have the jar file extentions in your machine
let me know any issues
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 8:00 pm
From where can i get this file and where should i paste?
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 8:11 pm
hi
First tell me do you have jar file extentions in your machine
this what about is all your commands are place into this user-extensions.js like verify element,click,etc.....
so you must mention this user-extensions.js path in to your batch file
how do this get(user-extensions.js)
the answer is by default while installing Selenium it will upload into u r machine
let me know if you have any issues
First tell me do you have jar file extentions in your machine
this what about is all your commands are place into this user-extensions.js like verify element,click,etc.....
so you must mention this user-extensions.js path in to your batch file
how do this get(user-extensions.js)
the answer is by default while installing Selenium it will upload into u r machine
let me know if you have any issues
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 8:14 pm
Every time i am facing different different issue... Now i am facing this issue.....
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>java -jar selenium-server.jar -timeout 180000 -port 4444 -htmlSuite "iexploreproxy" "http://www.google.com/" "C:\ide_scripts\Google For SeleniumRC.html" "C:\TestResults_Export.html"
18:39:27.171 INFO - Java: Sun Microsystems Inc. 16.3-b01
18:39:27.171 INFO - OS: Windows XP 5.1 x86
18:39:27.171 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
18:39:27.250 INFO - Version Jetty/5.1.x
18:39:27.250 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
18:39:27.250 INFO - Started HttpContext[/selenium-server,/selenium-server]
18:39:27.250 INFO - Started HttpContext[/,/]
18:39:27.250 INFO - Started SocketListener on 0.0.0.0:4444
18:39:27.250 INFO - Started org.mortbay.jetty.Server@901887
Can't find HTML Suite file:C:\ide_scripts\Google For SeleniumRC.html:
Usage: java -jar selenium-server.jar [-interactive] [options]
C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-ser
ver-1.0.1>java -jar selenium-server.jar -timeout 180000 -port 4444 -htmlSuite "iexploreproxy" "http://www.google.com/" "C:\ide_scripts\Google For SeleniumRC.html" "C:\TestResults_Export.html"
18:39:27.171 INFO - Java: Sun Microsystems Inc. 16.3-b01
18:39:27.171 INFO - OS: Windows XP 5.1 x86
18:39:27.171 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
18:39:27.250 INFO - Version Jetty/5.1.x
18:39:27.250 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
18:39:27.250 INFO - Started HttpContext[/selenium-server,/selenium-server]
18:39:27.250 INFO - Started HttpContext[/,/]
18:39:27.250 INFO - Started SocketListener on 0.0.0.0:4444
18:39:27.250 INFO - Started org.mortbay.jetty.Server@901887
Can't find HTML Suite file:C:\ide_scripts\Google For SeleniumRC.html:
Usage: java -jar selenium-server.jar [-interactive] [options]
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 8:15 pm
I have these many jar files under C:\selenium-remote-control-1.0.1-dist\selenium-remote-control-1.0.1\selenium-server-1.0.1
selenium-server
selenium-server-coreless
selenium-server-tests
selenium-server-sources
selenium-server-test-sources
selenium-server
selenium-server-coreless
selenium-server-tests
selenium-server-sources
selenium-server-test-sources
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 8:21 pm
1)
Install “Firefox
Setup 3.5.3.exe” – Note if you have higher version please remove and install
only 3.5 ver
2)
Add the following
add-ons in Firefox browser
a. selenium-ide-1.0.6.xpi
b. firebug
c. Xpather
3)
Install “jre-6u21-windows-i586-iftw-rv.exe”
4)
Copy
“selenium-core-1.0.1” and “selenium-server-1.0.1’ folder into your “C:\” drive
Let me know if you have any
questions
Install “Firefox
Setup 3.5.3.exe” – Note if you have higher version please remove and install
only 3.5 ver
2)
Add the following
add-ons in Firefox browser
a. selenium-ide-1.0.6.xpi
b. firebug
c. Xpather
3)
Install “jre-6u21-windows-i586-iftw-rv.exe”
4)
Copy
“selenium-core-1.0.1” and “selenium-server-1.0.1’ folder into your “C:\” drive
Let me know if you have any
questions
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 8:30 pm
hi
1.Click on C drive
2.Click on selenium-core-1.0.1
3.Click on core
4.click on scripts
5.copy user-extensions
the entire path is like this
C:\selenium-core-1.0.1\core\scripts
you can copy this user-extensions and paste it where you script having
Let me know still if you have any issues
1.Click on C drive
2.Click on selenium-core-1.0.1
3.Click on core
4.click on scripts
5.copy user-extensions
the entire path is like this
C:\selenium-core-1.0.1\core\scripts
you can copy this user-extensions and paste it where you script having
Let me know still if you have any issues
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 9:03 pm
Ok Let me try...selenium-core-1.0.1 i dint use so far...
selenium-server-1.0.1
selenium-dotnet-client-driver-1.0.1
selenium-java-client-driver-1.0.1
selenium-perl-client-driver-1.0.1
selenium-php-client-driver-1.0.1
selenium-python-client-driver-1.0.1
selenium-ruby-client-driver-1.0.1
So far I got this folders details only.....
selenium-server-1.0.1
selenium-dotnet-client-driver-1.0.1
selenium-java-client-driver-1.0.1
selenium-perl-client-driver-1.0.1
selenium-php-client-driver-1.0.1
selenium-python-client-driver-1.0.1
selenium-ruby-client-driver-1.0.1
So far I got this folders details only.....
- thumatirajaActive particpant
- Posts : 19
Join date : 2011-03-11
Age : 38
Location : Hyderabad
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Fri Mar 11, 2011 9:09 pm
hi,
First
Setup the following required software’s in your system
1)
Install “Firefox
Setup 3.5.3.exe” – Note if you have higher version please remove and install
only 3.5 ver
2)
Add the following
add-ons in Firefox browser
a. selenium-ide-1.0.6.xpi
b. firebug
c. Xpather
3)
Install
“jre-6u21-windows-i586-iftw-rv.exe”
4)
Copy
“selenium-core-1.0.1” and “selenium-server-1.0.1’ folder into your “C:\” drive
Still let me know if you have any issues
First
Setup the following required software’s in your system
1)
Install “Firefox
Setup 3.5.3.exe” – Note if you have higher version please remove and install
only 3.5 ver
2)
Add the following
add-ons in Firefox browser
a. selenium-ide-1.0.6.xpi
b. firebug
c. Xpather
3)
Install
“jre-6u21-windows-i586-iftw-rv.exe”
4)
Copy
“selenium-core-1.0.1” and “selenium-server-1.0.1’ folder into your “C:\” drive
Still let me know if you have any issues
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?
Sat Mar 12, 2011 1:05 pm
C:\selenium-remote-control-1.0.1\selenium-server-1.0.1>java -jar selenium-server.jar -timeout 180000 -port 4444 "C:\selenium-core-1.0.1\core\scripts\user-extensions.js" -htmlSuite "iexploreproxy" "http://www.google.com/" "C:\ide_scripts\suite.html" "C:\TestResults_Export.html"
unrecognized argument C:\selenium-core-1.0.1\core\scripts\user-extensions.js -h
mlSuite iexploreproxy http://www.google.com/ C:\ide_scripts\suite.html C:\TestR
sults_Export.html:
Usage: java -jar selenium-server.jar [-interactive] [options]
-port: the port number the selenium server should use
(default 4444)
-timeout: an integer number of seconds before we should give
up
-interactive: puts you into interactive mode. See the tutorial for
more details
-singleWindow: puts you into a mode where the test web site
executes in a frame. This mode should only be selected if the
application under test does not use frames.
-profilesLocation: Specifies the directory that holds the profiles
that java clients can use to start up selenium. Currently
supported for Firefox only.
-forcedBrowserMode: sets the browser mode to a single
argument (e.g. "*iexplore") for all sessions, no matter what is
passed to getNewBrowserSession
-forcedBrowserModeRestOfLine: sets the browser mode to
all the remaining tokens on the line (e.g. "*custom
/some/random/place/iexplore.exe") for all sessions, no matter what
is passed to getNewBrowserSession
-userExtensions: indicates a JavaScript file that will be
loaded into selenium
-browserSessionReuse: stops re-initialization and spawning of the
browser between tests
-avoidProxy: By default, we proxy every browser request; set this
flag to make the browser use our proxy only for URLs containing
'/selenium-server'
-firefoxProfileTemplate: normally, we generate a fresh empty
Firefox profile every time we launch. You can specify a directory
to make us copy your profile directory instead.
-debug: puts you into debug mode, with more trace information and
diagnostics on the console
-browserSideLog: enables logging on the browser side; logging
messages will be transmitted to the server. This can affect
performance.
-ensureCleanSession: If the browser does not have user profiles,
make sure every new session has no artifacts from previous
sessions. For example, enabling this option will cause all user
cookies to be archived before launching IE, and restored after IE
is closed.
-trustAllSSLCertificates: Forces the Selenium proxy to trust all
SSL certificates. This doesn't work in browsers that don't use the
Selenium proxy.
-log: writes lots of debug information out to a log
file
-htmlSuite : Run a
single HTML Selenese (Selenium Core) suite and then exit
immediately, using the specified browser (e.g. "*firefox") on the
specified URL (e.g. "http://www.google.com"). You need to specify
unrecognized argument C:\selenium-core-1.0.1\core\scripts\user-extensions.js -h
mlSuite iexploreproxy http://www.google.com/ C:\ide_scripts\suite.html C:\TestR
sults_Export.html:
Usage: java -jar selenium-server.jar [-interactive] [options]
-port
(default 4444)
-timeout
up
-interactive: puts you into interactive mode. See the tutorial for
more details
-singleWindow: puts you into a mode where the test web site
executes in a frame. This mode should only be selected if the
application under test does not use frames.
-profilesLocation: Specifies the directory that holds the profiles
that java clients can use to start up selenium. Currently
supported for Firefox only.
-forcedBrowserMode
argument (e.g. "*iexplore") for all sessions, no matter what is
passed to getNewBrowserSession
-forcedBrowserModeRestOfLine
all the remaining tokens on the line (e.g. "*custom
/some/random/place/iexplore.exe") for all sessions, no matter what
is passed to getNewBrowserSession
-userExtensions
loaded into selenium
-browserSessionReuse: stops re-initialization and spawning of the
browser between tests
-avoidProxy: By default, we proxy every browser request; set this
flag to make the browser use our proxy only for URLs containing
'/selenium-server'
-firefoxProfileTemplate
Firefox profile every time we launch. You can specify a directory
to make us copy your profile directory instead.
-debug: puts you into debug mode, with more trace information and
diagnostics on the console
-browserSideLog: enables logging on the browser side; logging
messages will be transmitted to the server. This can affect
performance.
-ensureCleanSession: If the browser does not have user profiles,
make sure every new session has no artifacts from previous
sessions. For example, enabling this option will cause all user
cookies to be archived before launching IE, and restored after IE
is closed.
-trustAllSSLCertificates: Forces the Selenium proxy to trust all
SSL certificates. This doesn't work in browsers that don't use the
Selenium proxy.
-log
file
-htmlSuite
single HTML Selenese (Selenium Core) suite and then exit
immediately, using the specified browser (e.g. "*firefox") on the
specified URL (e.g. "http://www.google.com"). You need to specify
- Sponsored content
Permissions in this forum:
You cannot reply to topics in this forum