SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Synchonize Request

    I have an OpenSTA script which sequentially calls 44 JSPs. Each JSP may add an attribute to the HTTPSession which would then be used by a subsequent JSP.

    All requests are made using ConId 1.

    I have added SYNCHRONIZE REQUEST &
    , WITH TIMEOUT 1000 to after each request, before End Timer statements.

    My problem is, the JSPs are still being called before previous JSPs have returned (ie, I get problems trying to access session attributes that should have already been set, but are not, because the JSP that is accessing them is called before the JSP that sets the attribute has finished).

    Code example:
    Start Timer T_GET_ANON_CONTACT
    PRIMARY GET URI "<URL> HTTP/1.0" ON 1 &
    HEADER DEFAULT_HEADERS &
    ,WITH {"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms" &
    "-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwa" &
    "ve-flash, */*", &
    "Referer: <URL>", &
    "Accept-Language: en-au", &
    "Connection: Keep-Alive", &
    "Cookie: "+cookie_1_0}

    SYNCHRONIZE REQUESTS &
    , WITH TIMEOUT 10000
    End Timer T_GET_ANON_CONTACT

    (btw, I have removed the URLs on purpose)

    There are 44 of these blocks, one after another.

    Does anyone know why this would be happening?

    Cheers.

  2. #2
    Junior Member
    Join Date
    Aug 2004
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Synchonize Request

    Don't worry, worked it out: needed to set the Socket Timeout parameter in the OpenSTA/Engines/TestExecuter_Web.ini file to - default was too short, socket connection was being timed out before results were returned.

 

 

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 12.50%
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 03:30 AM.

Copyright BetaSoft Inc.