Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: Calling Multiple Actions in VuGen

$
0
0

TRao, an example of this:

I think you have a file with User information that is proceed in Action(). In my example it will be "x" value:

Action()
{
    int x;
    srand(time(NULL)); 
    x = rand()%10//return 0-10
    lr_output_message("Action: %d", x);
    switch(x)
    {
        case 1Action1();
        case 2Action2();
        defaultAction3();
    }
    return 0;
}

In Action 1 to 3 you have code for each specific user.

You need to add the code to read the file with user information.

Remember to change the Run Logic

 

Rodolfo Leitón

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

For LoadRunner here.
For Performance Center here.

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

If you found this information useful please leave a kudo.

 


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>