Highlighted
Absent Member.
Absent Member.
458 views

Script always fails in Scenario, but runs in VU - what to do?

I have created four scripts for Loadrunner in the Virtual User Generator, using the TruClient protocol. I am trying to run those four scripts in the LR Controller as a scenario, each script by itself, consecutive, not parallel.

However, one script always fails when run inside the Controller, but runs fine when replayed in the VU-Generator!

Because the script is complex, contains passwords and uses non-public resources, I cannot place the script here.

But what can I do to solve this problem? How to get the one script passed in the LR Controller as well? What exactly can I do to investigate the problem? How to analyse possible differences?

 

It also happened that I run the identical scenario multiple times, just to see different results (i.e. some scripts passes, the other fails, and next time it is different again...). There must be some ways to figure out / investigate what the cause/reason is for that! But how to do that??

0 Likes
4 Replies
Highlighted
Established Member..
Established Member..

Re: Script always fails in Scenario, but runs in VU - what to do?

you can try to replay your VU Script with a diffrent user..

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Script always fails in Scenario, but runs in VU - what to do?

On what level a different user?

- Windows user?

- Loadrunner user?

- User used in the script itself (test-data)?

...?

 

I doubt this is the reason for the script to fail. I assume it to be a timeout somewhere. But how to analyse the real cause of these errors?

0 Likes
Highlighted
Contributor.
Contributor.

Re: Script always fails in Scenario, but runs in VU - what to do?

Are you using TruClient with IE?  I am having the same problem, and have just learned that the Load Generator for TruClient IE scripts need to have IE10 installed.  My scripting machine has IE11, so can not work as a Load Generator.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Script always fails in Scenario, but runs in VU - what to do?

Hello,

 

just to be clear: Sometimes, the script succeeds and sometime it does not. I repeat the same scenario again and again without changing anything, and I get different results!!

How to analyse this behavior, how to fix it (in the script)?

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.