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
edward9944
Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai

how to set speed for my selenium test Empty how to set speed for my selenium test

Fri May 04, 2012 11:53 am
Hi
I am using selenium IDE for recording my application activity, its recording fine and i can playback what i recorded with setting the speed slow.I am running the test using selenium RC in command line using the following command.

java -jar D:/Tests\selenium-2.21.0\selenium-server-standalone-2.21.0.jar
-htmlSuite "*firefox" "link to my application"
"D:\Tests\selenium-2.21.0\sampletest.html"
"D:\Tests\selenium-2.21.0\result.html"



while i am run this command the test will run very fast, it wil not go with my application. How can i control the speed of my test.
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Fri May 04, 2012 12:30 pm
You can set script execution speed by using below command
Code:
selenium.setSpeed("700");
avatar
edward9944
Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Fri May 04, 2012 12:43 pm
Hi rohit
Thanks for your reply.I am new to the selenium and i don't know where i can fit the above code.First i wants to explain what i am doing is , recording the steps using IDE and store test case in .html format. Then run the test using the above command, but i am struggling in the speed of RC.
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Fri May 04, 2012 12:46 pm
In IDE just put first command as setSpeed | 700
And then export to language as per your requirement
avatar
edward9944
Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Fri May 04, 2012 1:23 pm
Hi rohit
Thanks for your response, its working fine while i manually add setSpeed method.Is it possible to add this method by default in IDE.
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Fri May 04, 2012 1:35 pm
You have to add this command manually..
Or for IDE only you can use slider at left corner, below base URL label to set script execution speed..
avatar
edward9944
Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Fri May 04, 2012 3:51 pm
hi rohit
In IDE i can use the slider but while exporting this to html it will not record slider value.So in RC the speed limit will not be handled.I need a feature that by default it will control the speed of the test.
avatar
vikas.gandhi
Posts : 5
Join date : 2012-03-20

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

Mon May 14, 2012 5:12 pm
Hi,

If you are not using IDE, Then you have to add it manually. For example you can use this code. if you are using RC

@BeforeClass(alwaysRun = true) (This is TestNG annotation)
protected void startSelenium() throws Exception {
browser = "*firefox";
browsingUrl=("http://www.google.com");
setUp(browsingUrl, browser);
sleepTenSecond();
selenium.setMouseSpeed("0");
selenium.setspeed("1000");
selenium.open("/");
}

Thanks,

Vikas Gandhi
Sponsored content

how to set speed for my selenium test Empty Re: how to set speed for my selenium test

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