Highlighted
Absent Member.
Absent Member.
968 views

Loadrunner problem capturing BPM response data using http/html and ajax (click and script)

Hello,

I seem to be having an issue capturing a piece of data for correlation. I'm using LR version 9.1. I have tried two different protocol and I'll explain both situations.

First what I am trying to record is a web application called BPM (10.3). The app used to work perfectly with the http/html protocol but since they have upgraded they have used AJAX in one specific place to post a WAPI session ID. I need to capture this number. The app uses ajax to post back to BPM without altering the page contents. When I look in the server reponse in the script it appears that the number I need is posted back to the browser in an XML document, but when I create a parameter to capture it during run time, I alwasy get the message that the document has temporarily moved, even though the test results show the actual number that I need did post.

I decided to try using the ajax (click and script) protocol to see if I had better luck. When I replayed I got the following messages in the replay log (I had no errors when I checked prior to running):

Action.c(8): Warning -26295: JavaScript error in line 12: TypeError: xmlhttp has no properties [MsgId: MWAR-26295]

Action.c(8): Warning -26295: JavaScript error in line 1: JavaScript evaluation error when executing function (by pointer) [MsgId: MWAR-26295]

Action.c(8): Warning -26000: Evaluating decompiled script failed for "Window" DOM object (name="") "load", listed in the following line: [MsgId: MWAR-26000]

Action.c(8): Warning -26000: postBackToBPM(); [MsgId: MWAR-26000]


Has anyone worked with this app or similar? Any suggestions or help would be greatly appreciated.
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

Hi Angela,

Still are you working on the same BPM and would you like to know how to encounter this issue?
0 Likes
Highlighted
Absent Member.
Absent Member.

I am facing similar problem in BPM
Following error is being encountered:-
1>Warning -26499: Internal Error - Can't convert type 1 to VARIANT in LrwJswAutomationObject::ConvertToVariant - for BPM recording using AJAX (Click & Script)
2>Error -26628: HTTP Status-Code=403 (Forbidden) for "http://XXXXbpmWAPISessionId=XXXX" [MsgId: MERR-26628] for web (http/html)

Please can you let me know whether you have any solution to this issue. It seems dynamic correlation using web_reg_save_param doesnot work in this case as this WAPI session id is not recorded in the browser url (infact the new BPM window doesnot display a url )

0 Likes
Highlighted
Absent Member.
Absent Member.

Hi, has anyone been able to solve this problem? i have the exact same problem trying to replay a script recorded on LR 11 using HTTP/HTML with Flex Protocols. 

 

The BPM workspace request is returning a 403 error with InvalidWAPISessionID.

 

Thanks in advance!

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.