Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller (379 Views)
Reply
Advisor
k_preeti
Posts: 59
Registered: ‎05-05-2010
Message 1 of 4 (382 Views)

SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Hello,

I have LR - 11.50 installed on Windows, SAP GUI version is 7.20.

I have set the PO number to be unique such that

 

{unique} set in Parameter as date/Time as %d%H%M%S.

{rand1} set in Parameter as random number in the range from 1 to 1000.

 

sapgui_set_property(txtVBKD1, "text", "OBD{rand1}{unique}", LAST );

 

I even tried with sapgui_set_text function but around 40% - 50% of the trasactions fail on setting this PO number in the text field.

 

I ran the script in Vugen with 15 users and all passed. Only when I run the script in Controller with over 135 users then the failures are seen.

 

Kindly advise solution for this.

 

Thanks.

Please use plain text.
HP Expert
Suerte13cr
Posts: 736
Registered: ‎09-14-2011
Message 2 of 4 (379 Views)

Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Have you enabled logs for parameter substitution and see what values are being set for those that came back with the error and see if those values are valid?

 

Regards,

Mario M.

 

HP LR/PC Support

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

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
Nan_Raso
Posts: 45
Registered: ‎04-15-2013
Message 3 of 4 (352 Views)

Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Hello Preeti,

 

"I even tried with sapgui_set_text function but around 40% - 50% of the trasactions fail on setting this PO number in the text field."  

 

Question:  

1.Does the remaining passed 60-50% of transaction are doing the same business scenario?

 If yes, then there is problem in the data which you are using. 

 

if No,Trying using the below :

sapgui_set_property(txtVBKD1,

                                        "text",

                                         lr_eval_string(OBD"{rand1}{unique}"),

                                         LAST );

 

2. Are the data are reusable?

 

As Mario suggested, check with extended logs enabled, whether the values are correctly replaced as expected.

Thanks,
Nan Raso
Please use plain text.
Valued Contributor
Ajay_U
Posts: 108
Registered: ‎04-30-2012
Message 4 of 4 (347 Views)

Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Also try to do the same opearation manually when ever you are seeing errors on the controller, so that we can have a confirmation.

 

Thanks, Ajay

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation