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
gchandrasekaran82
Regular Participant
Regular 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? Empty 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








A Suite of Selenese Tests
Google For SeleniumRC




Also tried for this as

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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.
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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...
avatar
thumatiraja
Active particpant
Active particpant
Posts : 19
Join date : 2011-03-11
Age : 37
Location : Hyderabad

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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.......................
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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?
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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...





avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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?
avatar
thumatiraja
Active particpant
Active particpant
Posts : 19
Join date : 2011-03-11
Age : 37
Location : Hyderabad

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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?
avatar
thumatiraja
Active particpant
Active particpant
Posts : 19
Join date : 2011-03-11
Age : 37
Location : Hyderabad

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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]
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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
avatar
thumatiraja
Active particpant
Active particpant
Posts : 19
Join date : 2011-03-11
Age : 37
Location : Hyderabad

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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
avatar
thumatiraja
Active particpant
Active particpant
Posts : 19
Join date : 2011-03-11
Age : 37
Location : Hyderabad

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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.....
avatar
thumatiraja
Active particpant
Active particpant
Posts : 19
Join date : 2011-03-11
Age : 37
Location : Hyderabad

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty 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
avatar
gchandrasekaran82
Regular Participant
Regular 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? Empty 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
Sponsored content

My Test suite is not running in Selenium RC. Please let me know where i am going wrong? Empty Re: My Test suite is not running in Selenium RC. Please let me know where i am going wrong?

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