The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP / Mercury LoadRunner

Pages: 1
steve_perf
Member


Reged: 01/25/11
Posts: 102
using web_get_int_property in a concurrent group
      #662045 - 02/25/11 08:34 AM

To measure the download size of an image, I use the following in the HTTP protocol. It's always worked great, however today I was trying to use it to capture the size of downloaded images that are web_url within a web_concurrent_start.

Vugen errors and advises that the Function is not allowed within a concurrent group.

Is there a way around this, other than making it non-concurrent? The application requests about 6 images concurrently and I was hoping to get download sizes for each one so that I could set a lr_user_data_point and capture the size of the images.


png_size = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);

lr_user_data_point("e_DownLoadSize", png_size);

lr_output_message("The download size of the images is: %d bytes", png_size);


Post Extras: Print Post   Remind Me!   Notify Moderator  
JimHowell1970Moderator
Active Member


Reged: 02/18/10
Posts: 836
Loc: Europe
Re: using web_get_int_property in a concurrent group [Re: steve_perf]
      #662046 - 02/25/11 08:39 AM

you could try something like

web_reg_save_param("Graphic",
"LB=",
"RB=",
"Search=NonResource",
LAST);

call()

strcpy(strTemp, lr_eval_string("<Graphic>"));
strlen(strTemp);


Post Extras: Print Post   Remind Me!   Notify Moderator  
LoadRunner421
Member


Reged: 05/06/11
Posts: 142
Re: using web_get_int_property in a concurrent group [Re: JimHowell1970]
      #718994 - 10/30/12 08:47 AM

My question is sort of related to this so I'll place it here:

I'm not too experienced with web_get_int_property but I understand that it is used to fetch info about the PREVIOUS http request.

But isn't it possible for a request such as web_url to actually produce multiple http requests?

What happens in that situation when you use web_get_int_property after web_url when the web_url created more than 1 http request?


Post Extras: Print Post   Remind Me!   Notify Moderator  
ptrussell_ncModerator
Super Member


Reged: 01/17/06
Posts: 1636
Loc: Charlotte, NC
Re: using web_get_int_property in a concurrent group [Re: LoadRunner421]
      #719000 - 10/30/12 09:41 AM

I've used wgip to get the size on PDF downloads. URL mode should have less problems like you describe than HTML mode. Pull up the help file to see if it answers your specific question.

--------------------
Unless you are writing a compiler, strtok is NOT the answer.
See: http://www.sqaforums.com/showflat.php?Cat=0&Number=541641&Main=541641#542222

QAF is still an exercise in self-sufficiency! (Thank JB!)


Post Extras: Print Post   Remind Me!   Notify Moderator  
LoadRunner421
Member


Reged: 05/06/11
Posts: 142
Re: using web_get_int_property in a concurrent group [Re: ptrussell_nc]
      #719012 - 10/30/12 11:17 AM

Hey PT, I read the function reference description and examples and I'm not sure what you're trying to point me at, I'm not seeing anything that answers the question.

Sorry I am low on sleep so maybe I'm missing something obvious...

:S


Post Extras: Print Post   Remind Me!   Notify Moderator  
ptrussell_ncModerator
Super Member


Reged: 01/17/06
Posts: 1636
Loc: Charlotte, NC
Re: using web_get_int_property in a concurrent group [Re: LoadRunner421]
      #719013 - 10/30/12 11:53 AM

Quote:

...
Sorry I am low on sleep so maybe I'm missing something obvious...





Don't worry about it! Sometimes I post here and wonder if there is any intelligibility to my ramblings!

-----------------------------------

If you are in URL mode, (generating explicit web_url calls), you should not have any problem with wgip as web_url is only getting that specific item. (or some such!)

*** Bonus Thought: Why are you worried about this? Like I said above, I have used to wgip to size PDFs, or track general size, but I worry that you are looking at some requirement with the wrong tool.

--------------------
Unless you are writing a compiler, strtok is NOT the answer.
See: http://www.sqaforums.com/showflat.php?Cat=0&Number=541641&Main=541641#542222

QAF is still an exercise in self-sufficiency! (Thank JB!)


Post Extras: Print Post   Remind Me!   Notify Moderator  
LoadRunner421
Member


Reged: 05/06/11
Posts: 142
Re: using web_get_int_property in a concurrent group [Re: ptrussell_nc]
      #719015 - 10/30/12 12:26 PM

I'm honestly not even trying to solve anything. I'm just curious how this works for possible later use. In my spare time I sometimes come to the forum and read the higher members' past posts (you jim and james for example) to pick up random knowledge and that led me here.

Ok so if there's only one HTTP request in a web_url like when in URL mode then there's no issue using wgip there.

But what about in web_url for when there is EXTRARES? That is where I got curious as to how wgip would be used becuase then there's more than one http request sent for just one web_url.

If wgip is placed after a web_url that is going to send multiple http requests then which request is the property going to be fetched from? The last one I assume but then the function isn't very useful because you can't pinpoint the http that you want.

So maybe the answer is that it shouldn't be used unless the request is only sending one http request. And if it has EXTRARES then it shouldn't be used. And then of course you can just make a separate web_url for each EXTRARES if you need by converting to URL mode.

How that for unintelligible rambling?


Post Extras: Print Post   Remind Me!   Notify Moderator  
JimHowell1970Moderator
Active Member


Reged: 02/18/10
Posts: 836
Loc: Europe
Re: using web_get_int_property in a concurrent group [Re: LoadRunner421]
      #719042 - 10/31/12 01:02 AM

Assume nothing -experiment!

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 41 anonymous users are browsing this forum.

Moderator:  AJ, James Pulley, ptrussell_nc, JimHowell1970 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 5835

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5