Re: VuGen 11.52 Ajax TruClient for FireFox does not replay link. Same works fine in Dev UI (566 Views)
Reply
Occasional Advisor
Cator
Posts: 10
Registered: ‎11-04-2013
Message 1 of 4 (631 Views)
Accepted Solution

VuGen 11.52 Ajax TruClient for FireFox does not replay link. Same works fine in Dev UI

1.  The business process can be illustrated by this example:

I am working in the marketing department and I want our client care representative to say to our customers: "Thanks for calling our help line, what can I assist you with today?". This has to be translated in 10 languages. Once I have updated the content item in the HP TeamSite web application's web form, I publish this content item. HP TeamSite copies the content update onto new or existing language versions of the content and updates the status of each of these items in the user interface's widget to show all stakeholders the updated status. The translator then takes on translation for each of the languages and approves. Then, a validator validates the work and passes the workflow job onto a final business approver. After the approver finalizes the work, the asset is being copied across to be picked up by an application that renders the phrases into the interview scripts that the client care rep uses in a phone conversation with the customer.

 

I am using LR11.52 for windows to support performance analysis of the workflows.

 

I have the following question:

 

I have developed a script which runs fine in the Developer GUI. When I replay in the VuGen client a step fails with the message:

 

t=00056467ms: ** 48: Click on Next >> javascript_link ** started    [MsgId: MMSG-204251]
t=00076506ms: Error -203256: ** 48: Click on Next >> javascript_link ** failed - target object was not found.    [MsgId: MERR-203256]
Ending action Action.

 

The target object is found fine in the Developer UI when I play the script.

 

In the step I use in the object: xpath and the xpath is //a[text()="Next >>"]

 

The HTML in the UI is:

 

<a class="iw-base-actionlist-link moz-button iw-base-button" iw_css_disabled="iw-base-link-disabled moz-button iw-base-button-disabled" iw_css_enabled="iw-base-actionlist-link moz-button iw-base-button" iw_enabled="true" href="javascript&colon;iw_wizard_doNext()" title="Next &gt;&gt;" id="iw.base.wizard.next.button">Next >></a>

 

I attached the screenshot and the script

 

I updated the xpath to //a[contains(text(),"Next")] as I found in the HTML the >> are encoded into &gt;&gt; which I thought might be the problem. But the error still occurs.

 

What can be the possible reason?

 

 

 

Please use plain text.
Occasional Advisor
Cator
Posts: 10
Registered: ‎11-04-2013
Message 2 of 4 (602 Views)

Re: VuGen 11.52 Ajax TruClient for FireFox does not replay link. Same works fine in Dev UI

steps that I have taken to try to resolve this yesterday have been:

 

a. I have the HP LoadRunner v11 00 - Ajax TruClient Tips and Tricks.pdf and read through it.

b. I applied Related objects and in the Dev UI the script passes, still in the vugen Replay (F5) fails on the Next >> object

c. I have re-recorded the step several times with no difference

d. I have used JavaScript evalXPath, xpath and automatic

e. I have clicked the Improve object identification button several times

f. I have put a wait for object in place, but then the script would fail on Replay (F5) in vugen (not in the Developer UI) on that step instead

g. I have set a timeout of 10 seconds on the step before and same step

h. I have set snapshot functionality in the Runtime settings and found a snapshot of the step where I see the Next button highlighted.

 

I am running out of ideas (-:  I thing that might be the underlying problem is that the window that this step usually is a popup that replaces the window in the preceding step. Maybe there is a context switch?

 

 

Please use plain text.
Occasional Advisor
Cator
Posts: 10
Registered: ‎11-04-2013
Message 3 of 4 (566 Views)

Re: VuGen 11.52 Ajax TruClient for FireFox does not replay link. Same works fine in Dev UI

I found in some more debugging in Loadrunner that I can see HTTP responses and I found that there is an error message popping up in the HTTP requests when playing the script from the windows VuGen console, while that error is not popping up when replaying in the TruClient Firefox browser client.

 

Is there a way to add some Javascript to click OK on the error dialog to the Truclient UI as a step that deals with the response when playing in vugen client?

Please use plain text.
Occasional Advisor
Cator
Posts: 10
Registered: ‎11-04-2013
Message 4 of 4 (516 Views)

Re: VuGen 11.52 Ajax TruClient for FireFox does not replay link. Same works fine in Dev UI

RESOLVED:

HP Software support helped me overcome this issue. After setting a debug mode in a HP configuration file, we found that some step was not actually working upon replay in VuGen due to a popup not sending data back to the main window. We applied a workaround to just type a date in the text field, rather than relying on a javascript button opening a calendar widget.

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