- edward9944
- Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai
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.
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.
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");
- edward9944
- Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai
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.
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.
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
And then export to language as per your requirement
- edward9944
- Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai
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.
Thanks for your response, its working fine while i manually add setSpeed method.Is it possible to add this method by default in IDE.
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..
Or for IDE only you can use slider at left corner, below base URL label to set script execution speed..
- edward9944
- Posts : 7
Join date : 2012-04-30
Age : 38
Location : chennai
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.
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.
- vikas.gandhi
- Posts : 5
Join date : 2012-03-20
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
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
- selenium test workflows, what about my way to develop and perform test?
- How to Run a Selenium IDE Test Case using Selenium RC
- What is the use of Selenium Core and Selenium Test Manager ? (N-Unit Procedures in VS 2010)
- Display 'Selenium Functional test Runner' when run selenium RC
- Parameterization Selenium Test using Excel
Permissions in this forum:
You cannot reply to topics in this forum