Absent Member.
Absent Member.
3157 views

Transaction Looping - Silk Perfomer

Jump to solution

Hi,

We have a trial version of Silk Performer ahead of migrating from QALoad.

A test scenario we are trying to execute in Silk Performer is to :

Step 1:) Launch a web page eg. 'My Home Page'

Step 2:) From 'My Home Page' select the link to navigate to (for e.g.) 'Web Page 1'

Step 3:) From 'Web Page 1' select the link to navigate to 'Web Page 2'

Step 4:) From 'Web Page 2' select the link to navigate back to 'My Home Page'

We want to replay this script as follows :

Step 1  x 1 times per VU

Step 2  x 10 times per VU

Step 3 x 10 times per VU

Step 4 x 1 times per VU

In other words we want to access My Home Page once , iterate around Web page 1 and Web page 2 x 10 times each , record the timings navigating between Step 2 to and Step 3 before then going back to My Home Page once before exiting the script. 

Although the following replays Step 2 x 10 times and Step 3 x 10 times it replays Step 2 x 10 times, before then next then replaying Step 3 x 10 times.

 Step_1_MyHomePage : 1;

  Step_2_WebPage_2  : 10;  

 Step_3_WebPage_3  : 10;

Step_4_BackTo_MyHomePage  : 1;    

 

We want it to loop as follows :

Step 2 - (1st iteration)

Step 3 - (1st iteration)

Step 2 - (2nd iteration)

Step 3 - (2nd iteration)

Step 2 - (3rd iteration)

Step 3 - (3rd iteration)

.....and so on until iteration 10 is complete.

I've searched the Forums but have been unable to find a method of doing this - any help appreciated

Thanks

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Contributor
Micro Focus Contributor

RE: Transaction Looping - Silk Perfomer

Jump to solution

hi,

SP does not support this scenario (yet). i suggest to move your step 2 and 3 to functions, and call them from a transaction "ExecuteSteps2and3", defined to be executed 10 times in the dcluser section.

cheers,

udo

View solution in original post

0 Likes
5 Replies
Highlighted
Micro Focus Contributor
Micro Focus Contributor

RE: Transaction Looping - Silk Perfomer

Jump to solution

hi,

SP does not support this scenario (yet). i suggest to move your step 2 and 3 to functions, and call them from a transaction "ExecuteSteps2and3", defined to be executed 10 times in the dcluser section.

cheers,

udo

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Transaction Looping - Silk Perfomer

Jump to solution

Thanks for this Udo - We'll give this a go and report back on how we get on after the Easter break

Cheers

Gary

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Transaction Looping - Silk Perfomer

Jump to solution

Just to update that this method has given us what we needed, thanks again for your help.

Cheers

Gary

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Transaction Looping - Silk Perfomer

Jump to solution

How do we move steps to certain functions?

0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

RE: Transaction Looping - Silk Perfomer

Jump to solution

you need to do this by editing your script, for example:

dcluser
  user
    VirtUser
  transactions
    TYourTransaction : 1;

dcltrans
  transaction TYourTransaction
  begin
    // your code
  end TYourTransaction;

will change to:

dcluser
  user
    VirtUser
  transactions
    TYourTransaction : 1;

dclfunc
  function fYourFunction
  begin
    // your code
  end fYourFunction;

dcltrans
  transaction TYourTransaction
  begin
    fYourFunction();
  end TYourTransaction;

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.