lr_think_time to ignore runtime settings

279 views
Skip to first unread message

Anubhav Bansal

unread,
Aug 29, 2013, 10:10:28 AM8/29/13
to LR-Loa...@googlegroups.com
Hi

The scenario is that there are 2 scripts running in parallel simulating user action for 2 user roles; one script creates an object and other one works on it. So if 1 script takes longer than expected then I wish to pause the second script from few seconds before it retries. If I use lr_think_time then it is governed by Run time setting where I need to put a cap on max think time;

So is there some other  function like sleep/wait etc or can an instance of lr_think_time override/ignore run-time settings?

Regards
Anubhav

kantharaja t

unread,
Aug 29, 2013, 8:16:16 PM8/29/13
to LR-Loa...@googlegroups.com
use the think time multiplied by option in the run time settings.

for one script which you want to run first use - think time same as recorded
other script - use think time multiplied by X seconds

that will solve the problem and we dont have any function like wait or pause in load runner.


--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks and Regards
 Kantharaja

James Pulley

unread,
Aug 29, 2013, 9:50:37 PM8/29/13
to LR-Loa...@googlegroups.com
False premise on the wait or pause front, c has the sleep() function. Takes a value in milliseconds. VB and java have similar constructs

Foundations skill: programming expertise in the language of your tool

James Pulley

unread,
Aug 29, 2013, 9:52:12 PM8/29/13
to LR-Loa...@googlegroups.com
You will need vts or equivalent to pass data between your users. You can just place your second user in a loop to wait until a value is available in the vts queue

Anubhav Bansal

unread,
Aug 30, 2013, 1:46:57 AM8/30/13
to LR-Loa...@googlegroups.com
Many thanks to all for your response; I will try with sleep method that would solve the purpose if it will not be influenced by thinktime cap from run time settings.

Also, James can you elaborate a little more on 'vts' or point me in right direction; I tried the LR help but the acronym does not yield any result;

My guess is something like - transaction sync; if correct then it may not help me in current scenario. Anyways, I would like to know more about this.


Regards
Anubhav

James Pulley

unread,
Aug 30, 2013, 8:45:53 AM8/30/13
to LR-Loa...@googlegroups.com
Virtual table server. Google on this and loadrunner for hundreds of references
--

André Luyer

unread,
Sep 1, 2013, 9:42:01 AM9/1/13
to LR-Loa...@googlegroups.com
Use lr_force_think_time instead of lr_think_time.
It works exacly the same -- e.g it is interruptible in Vugen (stop button) and during a run, whereas the sleep function is not -- except that it ignores the runtime settings.
Note: on Windows sleep/think timers are rounded to the nearest 1/64 of a second.

André

André Luyer

unread,
Sep 1, 2013, 9:57:06 AM9/1/13
to LR-Loa...@googlegroups.com
Why not simply merge the "2 user roles" into one script?
Reply all
Reply to author
Forward
0 new messages