SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jan 2011
    Posts
    99
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    using web_get_int_property in a concurrent group

    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);

  2. #2
    Moderator
    Join Date
    Feb 2010
    Location
    Europe
    Posts
    944
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

    you could try something like

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

    call()

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

  3. #3
    Member LoadRunner421's Avatar
    Join Date
    May 2011
    Posts
    225
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

    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?

  4. #4
    Moderator
    Join Date
    Jan 2006
    Location
    Charlotte, NC
    Posts
    1,600
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

    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.ph...=541641#542222

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

  5. #5
    Member LoadRunner421's Avatar
    Join Date
    May 2011
    Posts
    225
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

    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

  6. #6
    Moderator
    Join Date
    Jan 2006
    Location
    Charlotte, NC
    Posts
    1,600
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

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


    [/ QUOTE ]

    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.ph...=541641#542222

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

  7. #7
    Member LoadRunner421's Avatar
    Join Date
    May 2011
    Posts
    225
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

    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?

  8. #8
    Moderator
    Join Date
    Feb 2010
    Location
    Europe
    Posts
    944
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: using web_get_int_property in a concurrent group

    Assume nothing -experiment!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:45 PM.

Copyright BetaSoft Inc.