Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

how to set speed for my selenium test

View previous topic View next topic Go down

how to set speed for my selenium test

Post by edward9944 on 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.

edward9944

Posts : 7
Join date : 2012-04-30
Age : 30
Location : chennai

Back to top Go down

Re: how to set speed for my selenium test

Post by rohit13 on Fri May 04, 2012 12:30 pm

You can set script execution speed by using below command
Code:
selenium.setSpeed("700");

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: how to set speed for my selenium test

Post by edward9944 on 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.

edward9944

Posts : 7
Join date : 2012-04-30
Age : 30
Location : chennai

Back to top Go down

Re: how to set speed for my selenium test

Post by rohit13 on 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

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: how to set speed for my selenium test

Post by edward9944 on 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.

edward9944

Posts : 7
Join date : 2012-04-30
Age : 30
Location : chennai

Back to top Go down

Re: how to set speed for my selenium test

Post by rohit13 on 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..

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: how to set speed for my selenium test

Post by edward9944 on 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.

edward9944

Posts : 7
Join date : 2012-04-30
Age : 30
Location : chennai

Back to top Go down

Re: how to set speed for my selenium test

Post by vikas.gandhi on 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

vikas.gandhi

Posts : 5
Join date : 2012-03-20

Back to top Go down

Re: how to set speed for my selenium test

Post by Sponsored content Today at 6:34 pm


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