Pinned topic Sync point in RPT8.2 using Custom Code
Has anyone tried Sync point in RPT8.2 using Custom Code.Like All the Virtual users login server, then meeting at a common point and then firing requests to Server?.
RobertoFdez 270004J1CV50 Posts
Re: Sync point in RPT8.2 using Custom Code2012-12-03T07:14:20ZThis is the accepted answer. This is the accepted answer.Hi Raboot,
I haven't tried but it is very easy (only if you are using a single agent). Create a variable and store it in a shared memmory:
//Set Shared Data
IDataArea vda = tes.findDataArea(IDataArea.ENGINE);
You can control the number of users active at once and check if the number is equal to the max number of users. In that case, continue execution, if not, wait and sleep, for example, 300 ms.
Re: Sync point in RPT8.2 using Custom Code2012-12-06T17:56:30ZThis is the accepted answer. This is the accepted answer.There is no reason to implement a sync point in custom code when RPT support inserting a synchronization point directly into the workload and the RPT synchronization point does support multiple agents.
Re: Sync point in RPT8.2 using Custom Code2012-12-10T18:47:32ZThis is the accepted answer. This is the accepted answer.
- RobertoFdez 270004J1CV
Mixing synchronization points with loops sometimes catches people by surprise. Once a synchronization point has released any users "returning" to the sync point perhaps on subsequent iterations of a loop will pass right through the synchronization point.
performance tester 2700013VB92 Posts
Re: Sync point in RPT8.2 using Custom Code2013-05-07T13:52:09ZThis is the accepted answer. This is the accepted answer.
- KMooney 0600000GBF
I don't think it works for all requirements like if you want to make users click on Register / Submit button at a time during schedule execution. We need to be insert custom code in script and prior to the page. Will you please help.
Re: Sync point in RPT8.2 using Custom Code2013-05-07T16:34:02ZThis is the accepted answer. This is the accepted answer.
- performance tester 2700013VB9
Synchronization points can be inserted into tests but only between pages. If you were to record using the Submit button here:
the request for the submit does end up in the test as a separate page so you could put a synchronization point before it.
If the request for the submit is inside a page you would have to use the split functionality to make it appear on a separate page.