Pop - up recognition in Ajax Tru Client Protocol (5981 Views)
Reply
Occasional Contributor
Posts: 3
Registered: ‎10-15-2012
Message 1 of 28 (5,981 Views)

Pop - up recognition in Ajax Tru Client Protocol

Hi,

 

We have recorded an application using Ajax Tru Client protocol ( as this is the only protocol supported) and a pop - up ( confirmation pop up before logging out on saving data) is recorded while doing the recording ( which is expected as per the application flow) but while replaying it is not able to recognized and it is failing at this step. I am not able to do Object identification as I do not see the Object arguments in that step. It is recorded as separate step.

 

Could you please let me know the solution of it.

 

 

Thanks,

RSP

HP Expert
Posts: 138
Registered: ‎08-15-2009
Message 2 of 28 (5,957 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi,

 

Can you please describe what type of pop-up it is? Is it a custom application window or browser confirmation dialog?

 

Regards,

Shlomi

Visit LoadRunner Linked-In Group: http://www.linkedin.com/groups?about=&gid=1879289

Visit TruClient Linked-In Group: http://www.linkedin.com/groups/HP-TruClient-Software-group-4539324/about
Occasional Advisor
Posts: 12
Registered: ‎09-24-2012
Message 3 of 28 (5,950 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

[ Edited ]

Hi,

just increase the levels (available on the top sildebar) to 2 or 3 and run the script...

It may run because at level 1-> some objects may not be recorded...

Frequent Advisor
Posts: 92
Registered: ‎12-05-2011
Message 4 of 28 (5,861 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi Saip,

 

Did you found any solution because I am facing same issue.

 

Thanks in advance.

 

Regards,

Deepak

HP Expert
Posts: 138
Registered: ‎08-15-2009
Message 5 of 28 (5,833 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi,

 

Can you please describe what type of popup is it and which version of LoadRunner you are using?

Visit LoadRunner Linked-In Group: http://www.linkedin.com/groups?about=&gid=1879289

Visit TruClient Linked-In Group: http://www.linkedin.com/groups/HP-TruClient-Software-group-4539324/about
Frequent Advisor
Posts: 92
Registered: ‎12-05-2011
Message 6 of 28 (5,770 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi Shilomi,

 

We are facing same issue. The pop up is a windows pop up to "save or open" pdf file.

 

LR version:-11.51

Firefox:-22

 

Please suggest how we can handle this.

 

Regards,

Deepak

HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 7 of 28 (5,767 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Kindly attach a screenshot of the pop-up dialog.

 

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
Frequent Advisor
Posts: 92
Registered: ‎12-05-2011
Message 8 of 28 (5,764 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi,

 

Please find the attached screenshot for reference.

 

Regards,

Deepak

HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 9 of 28 (5,757 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

This pop-up come from the OS and not from the browser thus cannot be recorded.

You can install Adobe Reader plugin which will open the PDF in-place at the browser.

in order to do so:

 

Copy  nppdf32.dll (can be taken from the adobe reader installed on the machine) to:
%LR_PATH%\bin\firefox\plugins --> create plugin directory if not exist
 and      
%LR_PATH%\bin\gecko\plugins --> create plugin directory if not exist

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
Frequent Advisor
Posts: 92
Registered: ‎12-05-2011
Message 10 of 28 (5,753 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Thanks a lot Rosenthal.

 

Regards,

Deepak

Frequent Advisor
Posts: 92
Registered: ‎12-05-2011
Message 11 of 28 (5,749 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

One more question.

 

There is no way to record any pop up which comes from OS using TruClient protocol.

 

Regards,

Deepak

HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 12 of 28 (5,746 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

No

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
Occasional Visitor
Posts: 1
Registered: ‎09-13-2013
Message 13 of 28 (5,709 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi ,

I am using VUGen TruClient protocol for my application and clicking on export btn ("Excel file") one pop up window is opening with different options(Open with,Save File...) and had to click on ok btn on this popup window

 

The problem is that, True client is not capturing the popup window, i used general object action and try to highlight the window but it dosn't capture i,

 

Can you suggest me how to capture this window or can we hadndle excel files also like the pdf files? (by keeping the nppdf32.dll  file in LR path).

 

Thanks in Advance

 

HP Expert
Posts: 736
Registered: ‎09-14-2011
Message 14 of 28 (5,700 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

That dll is just for PDFs and its for firefox to open them in browser without having to go through the step saving it, a functionality like this in firefox can only be done with plug ins which AJAX TC Firefox does not support as it is mainly for javascripting recording, and as mentioned before OS prompts are not recorded and when opening excel files it will ask for it to be downloaded locally for another program to open it.

 

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.
Frequent Advisor
Posts: 92
Registered: ‎12-05-2011
Message 15 of 28 (5,656 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

HI,

 

After Copying nppdf32.dll, I was able to open pdf file in browser itself. Now, I am facing issue while running this script in performance center. For some PDF file I am getting "Your browser cannot render the document. Please install  a pdf plugin accordingly" error but there is no issue with other PDF files. However, I am able to open all PDF documents manually.

 

Please find the attached screenshot for reference.

 

Regards,

Deepak

Occasional Visitor
Posts: 1
Registered: ‎12-05-2013
Message 16 of 28 (5,342 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

[ Edited ]

Hi All,

 

I am also facing the same OS pop-up issue. While recording or replaying, I get an authentication pop-up asking for the userid and password. Can someone please help me get rid of this pop-up. This is causing a lot of troubles. I have attached the screenshot for your reference.

 

Thanks,

Madhuban

HP Expert
Posts: 138
Registered: ‎08-15-2009
Message 17 of 28 (5,325 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Change all instance of user.js located under the script directory as well as the instance located in %appdata%\Hewlett-Packard\LoadRunner\Web2\LrWeb2MasterProfile

 

Modify the following entries or add it in case it does not exist:

 

user_pref("network.automatic-ntlm-auth.allow-proxies", true);

user_pref("network.negotiate-auth.allow-proxies", true);

 

user_pref("network.negotiate-auth.trusted-uris", "https://<your_domain_name>");

user_pref("network.automatic-ntlm-auth.trusted-uris", "https://<your_domain_name>");

 

 

Visit LoadRunner Linked-In Group: http://www.linkedin.com/groups?about=&gid=1879289

Visit TruClient Linked-In Group: http://www.linkedin.com/groups/HP-TruClient-Software-group-4539324/about
Regular Visitor
Posts: 5
Registered: ‎04-25-2014
Message 18 of 28 (4,443 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi

'm currently using LR11.5 anf truclient IE protocol to script my application. I have PDF report that gets generated in the separate browser window in truclient browser. The problem is its not getting identified. I want to have a text check on the report but the objects are not getting identified. Also while recording there is a step "Activate tab2" for this action but while replaying it fails with the incorrect ordinal value. pls help
HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 19 of 28 (4,419 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi,

TruClient can not work on PDF content as it is not part of the page DOM.

Regarding the 2nd issue you should elaborate more, send scripts or snapshots.

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
Regular Visitor
Posts: 5
Registered: ‎04-25-2014
Message 20 of 28 (4,395 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

When you say "TruClient can not work on PDF content as it is not part of the page DOM", so if i have to find out response time for any report that gets generated, what could be the best way to do it? is it possible through some other protocol like web http/html protocol? 

Also can Truclient be combined with some other protocol to get an multi protocol script? Coz when i tried ,the Truclient protocol was not available for selection for a multiprotocol script?

 

HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 21 of 28 (4,393 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi,

1. You can surround the download step with transaction with Network completed End Event for that.

2. TruClient protocols do not support multi-protocol feature

 

Thanks,

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
Regular Visitor
Posts: 5
Registered: ‎04-25-2014
Message 22 of 28 (4,386 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Thank you...Appropos to your suggestion, i surrounded the step with transaction. And it does work but i wanted to confirm if this gives the response time for report generation or its for click action. like in my AUT,i have RUN button available on UI and clicking on that brings up the report. 

 

Attached is the screenshot for the same.

 

Occasional Visitor
Posts: 1
Registered: ‎06-30-2014
Message 23 of 28 (3,862 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

Hi

 

I am also having authentication popup problem.  I am using 11.52 Loadrunner.  The path you mentioned for user.js, I could not find.  Could you please help.

 

Regards,

Harsha

Occasional Visitor
Posts: 1
Registered: ‎07-24-2014
Message 24 of 28 (3,537 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

hi Team HP, Can you please respond to the above query.

As per your below suggestion. Will this confirm the Download of Document from server. or should we set Step completed as "Document Download"

1. You can surround the download step with transaction with Network completed End Event for that.


Thanks
Occasional Advisor
Posts: 8
Registered: ‎11-29-2012
Message 25 of 28 (2,511 Views)

Re: Pop - up recognition in Ajax Tru Client Protocol

By this we cannot validate whether the pdf report downloaded sucessfully or not, Is there any way we can validate using text check on the PDF report.

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.