TruClient script won't wait for page to complete? ...

738 views
Skip to first unread message

Speedmaster

unread,
May 4, 2012, 9:34:48 AM5/4/12
to LoadRunner
Could use some help from a fellow TruClient user.

I'm using LR 11 and TruClient to test a Web site that opens PDF
reports in a new browser tab. I have that functionality working fine.

The problem is that when the TruClient script presses the button to
generate and open the PDF, the script doesn't wait for the operation
to complete. it just immediately moves on to the next step in the
script.

This is of course a problem as I would like to wrap the operation in a
transaction to time it.

HP support told me that as long as I set the step's "End-Event" to
"Step network completed" it should wait for the operation to complete.
But it is definitely _not_ waiting.

Any ideas or recommendations?

Thanks very much in advance,
Chris
http://www.pretenseofknowledge.com/

Taranjot Singh

unread,
May 5, 2012, 1:39:55 AM5/5/12
to lr-loa...@googlegroups.com

Use wait for object ...

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Abhishek Banginwar

unread,
May 5, 2012, 10:54:35 PM5/5/12
to lr-loa...@googlegroups.com
1. try to increase the resolution to see if any function which is recorded has been ignored.
2. if not then it seems the pdf generation is client side activity. you might want to confirm that.
--
Abhishek

Mark Tomlinson

unread,
May 5, 2012, 11:47:34 PM5/5/12
to lr-loa...@googlegroups.com
My guess is that the browser is handing off the .pdf URL to the OS and then the acroreader.exe is doing the actual download.

My thought is that you would insert a javascript function to (or a c-function) to download the URL manually.

In jQuery you would use .load() function or .get() function.

$('#result').load('ajax/test.html');

OR:  

-mt

Mark Tomlinson | Performance Engineering Consultant | +1.775.773.8780 | ma...@careytomlinson.org  | mtomlins.blogspot.com | @mtomlins


Speedmaster

unread,
May 7, 2012, 9:51:49 AM5/7/12
to LR-Loa...@googlegroups.com, lr-loa...@googlegroups.com
Thanks, Abhishek.

I didn't have any luck to see if anything else was recorded at a lower resolution. And you're right the display and opening of the PDF is definitely a client-side operation. But I was hoping to be able to wrap a transaction around the retrieval/download of the PDF.

Thanks again,
Chris

For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Abhishek

Speedmaster

unread,
May 7, 2012, 10:00:30 AM5/7/12
to LR-Loa...@googlegroups.com, lr-loa...@googlegroups.com
Thanks, Nick. I've been trying that. But no luck so far. When I choose the Tab/Browser window, LR lets me. It says "Wait on browser".

 But when I then run the script I get:
"Wait on browser ** failed - target object does not support the specified action"

Chris
LR-LoadRunner+unsubscribe@googlegroups.com

Speedmaster

unread,
May 7, 2012, 10:03:27 AM5/7/12
to LR-Loa...@googlegroups.com, lr-loa...@googlegroups.com, ma...@careytomlinson.org
Hmmm. Interesting. I'll try take a look at this, thanks, Mark.

Chris

For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Abhishek


--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Swaraj Gupta

unread,
May 7, 2012, 2:43:20 PM5/7/12
to lr-loa...@googlegroups.com
Hi Speedmaster,

As you are aware- TruClient uses Object identification technology. What you can do here is - validate for an object of the pdf, afterwhich introduce measure stop function. 
For the pdf that opens in another tab, you can change the broswer tab by simply putting the argument as "Browser=2".

Swaraj

Speedmaster

unread,
May 7, 2012, 3:11:42 PM5/7/12
to LR-Loa...@googlegroups.com, lr-loa...@googlegroups.com
Thanks very much for posting, Swaraj. I appreciate it.

I think I know what you mean conceptually, but not sure yet how to do it with VUGen. Any more specific steps? I'll start trying it.

Thanks again,
Chris
Reply all
Reply to author
Forward
0 new messages