SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jan 2006
    Location
    Newcastle
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Processing after Main request/subrequests

    If you have an DO_Http(POST..) staement that has several subrequests associated with it, will the next statement within your script only be executed after both the Main request and ALL the subrequests have executed ?

    Main request (includes subrequest):
    DO_Http("POST {*action_statement1} HTTP/1.1\r\n"
    "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, "
    "application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword"
    ", application/x-shockwave-flash, */*\r\n"
    "Referer: "
    "http://b-edgeclus.division.nhsbsa.nhs.uk/KAYPERF/DataCapture/chargestatusswitchconfirmation."
    "do\r\n"
    "Content-Type: application/x-www-form-urlencoded\r\n"
    "Content-Length: {*content-length}\r\n"
    "Pragma: no-cache\r\n\r\n{currentFocus}&{contractorExempti onCat}&{confirmChange}"
    "&{validationError1}&{validationError2}&am p;{validationError3}&{validationError4}"
    );
    Next statement:
    DO_VerifyDocTitle("Charge Status Confirmation", TITLE);

    Cheers

    Adrian

  2. #2
    Senior Member
    Join Date
    Aug 2005
    Location
    Chicago - Bangalore
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Processing after Main request/subrequests

    I'm not sure you wanted the below answer (Hope I have ubderstood your question, if not sorry)

    Below is one of the Checkpoint in my Script, I got the TokenID (Server Generated Number) after the main post and before it does other actions as you could see in the below post. Seeing the below I would think each post will be executed before the next (Post or Get or Referer or any subrequest).

    Note: I got the TokenID after the first POST usign DO_GetUniqueString and again used the same token down in the same checkpoint.


    BeginCheckpoint("SelectRegisterSite");



    DO_SLEEP(20);

    /* Request: 4 To: alt=Skip Navigation Links From: ProviderPortal 2.0 */
    DO_SetValue("action_statement2", ActionURL[2]);
    DO_SetValue("__EVENTTARGET", "asNavigation%24_ctl0%24DropDownNavigator2");
    DO_SetValue("__EVENTARGUMENT", ""
    "%2FProviderPortal%2FDefault%2FMain%2FProfileManag er%5C%2FProviderPortal%"
    "2FDefault%2FMain%2FProfileManager%2FRegisterMySit es");

    DO_SetValue("__WSViewState", Field[18]);
    DO_SetValue("__VIEWSTATE", Field[19]);
    DO_SetValue("__WSServiceParams", Field[20]);
    DO_SetValue("__WSCurrentActivity", Field[21]);
    DO_SetValue("__WSSessionID", Field[22]);
    DO_SetValue("BrowserHistoryChange_SelectedBrowserH istoryValue", Field[23]);
    DO_SetValue("__EVENTVALIDATION", Field[24]);
    DO_SetCheckpointName("alt=Skip Navigation Links - chkpt: 8");
    DO_AdditionalSubRequest("http://labsrv01:86/Support/Images/subbarbkgnd.png");
    DO_Http("POST {*action_statement2} HTTP/1.0\r\n"
    "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, "
    "application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword"
    ", application/x-shockwave-flash, */*\r\n"
    "Referer: http://labsrv01:86/Default.aspx\r\n"
    "Content-Type: application/x-www-form-urlencoded\r\n"
    "Content-Length: {*content-length}\r\n"
    "Pragma: no-cache\r\n\r\n{__EVENTTARGET}&{__EVENTARGUMENT} &{__WSViewState}"
    "&{__VIEWSTATE}&{__WSServiceParams}&{_ _WSCurrentActivity}&{__WSSessionID}"
    "&{BrowserHistoryChange_SelectedBrowserHistory Value}&{__EVENTVALIDATION}"
    );
    DO_VerifyDocTitle("ProviderPortal 2.0", TITLE);

    pp = DO_GetUniqueString ("AdminSearch&TokenID=", "','_blank");
    RR__printf("The value of the TokenID=%s",pp);

    /* Request: 5 */
    DO_SetValue("Activity", "/Main/Default/AdminSearch");
    // DO_SetValue("TokenID", ""
    // "200%3bL6fMCXKAB%2fB7BSWtWYqhegCChA9L%2fcgSGVpaRZv xr1KsMordi2RjbA%3d%3d"
    // );

    DO_SetValue("TokenID", pp);

    DO_SetCheckpointName("http://labsrv01:90/Default.aspx - chkpt: 9");
    DO_AdditionalSubRequest("http://labsrv01:86/Support/Images/Aim_logo_new.gif");
    DO_AdditionalSubRequest("http://labsrv01:86/Support/Images/buttontile.jpg");
    DO_AdditionalSubRequest("http://labsrv01:86/Support/Images/mainbarbkgnd.png");
    DO_AdditionalSubRequest("http://labsrv01:86/Support/Images/pplogo.png");
    DO_AdditionalSubRequest("http://labsrv01:86/Support/Images/subbarbkgnd.png");
    DO_AdditionalSubRequest("http://labsrv01:90/Images/helpfadetilegreenish.jpg");
    DO_AdditionalSubRequest("http://labsrv01:90/Images/warningsmall.gif");
    DO_Http("GET TokenID[/b] }]http://labsrv01:90/Default.aspx?{Activity}&{TokenID} HTTP/1.0\r\n"
    "Accept: */*\r\n\r\n"
    );
    DO_GetFormActionStatement(FORM(1), &ActionURL[3]);
    DO_GetFormValueByName(FORM(1), "hidden", "__EVENTTARGET", 1, &Field[25]);
    DO_GetFormValueByName(FORM(1), "hidden", "__EVENTARGUMENT", 1, &Field[26]);
    DO_GetFormValueByName(FORM(1), "hidden", "__WSViewState", 1, &Field[27]);
    DO_GetFormValueByName(FORM(1), "hidden", "__VIEWSTATE", 1, &Field[28]);
    DO_GetFormValueByName(FORM(1), "hidden", "__WSServiceParams", 1, &Field[29]);
    DO_GetFormValueByName(FORM(1), "hidden", "__WSCurrentActivity", 1, &Field[30]);

    DO_GetFormValueByName(FORM(1), "hidden", "__WSSessionID", 1, &Field[31]);
    DO_GetFormValueByName(FORM(1), "hidden", "Modified", 1, &Field[32]);
    DO_GetFormValueByName(FORM(1), "hidden", "__EVENTVALIDATION", 1, &Field[33]);


    EndCheckpoint("SelectRegisterSite");

    Subhash

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Location
    Newcastle
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Processing after Main request/subrequests

    What I was getting at was if the 'Main request' automatically processes subrequests, and these subrequests are let's say, image retrievals. Will the 'Next statement' (whatever it maybe) only be executed when after both the 'Main request' and ALL the subrequests have completed, or will the 'Next statement' execute after only the 'Main request' has completed, leaving the subrequests to be processed concurrently with the 'Next Statement'?

    Main request (includes subrequest):
    DO_Http("POST {*action_statement1} HTTP/1.1\r\n"
    "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, "
    "application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword"
    ", application/x-shockwave-flash, */*\r\n"
    "Referer: "
    "http://b-edgeclus.division.nhsbsa.nhs.uk/KAYPERF/DataCapture/chargestatusswitchconfirmation."
    "do\r\n"
    "Content-Type: application/x-www-form-urlencoded\r\n"
    "Content-Length: {*content-length}\r\n"
    "Pragma: no-cache\r\n\r\n{currentFocus}&{contractorExempti onCat}&{confirmChange}"
    "&{validationError1}&{validationError2}&am p;{validationError3}&{validationError4}"
    );
    Next statement:
    DO_VerifyDocTitle("Charge Status Confirmation", TITLE);

    Cheers

    Adrian

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan, USA
    Posts
    840
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Processing after Main request/subrequests

    All subrequests must be completed before the next statement is executed.
    A problem is a difference between what is perceived and what is desired, that
    we want to reduce
    (Dewey 1933)

  5. #5
    Junior Member
    Join Date
    Jan 2006
    Location
    Newcastle
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Processing after Main request/subrequests

    Does the main request process first, followed by the concurrent processing of the subrequests ?

    or,

    are the main request AND the sub requests processed concurrently ?

  6. #6
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan, USA
    Posts
    840
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Processing after Main request/subrequests

    If automatically process subrequests convert option is enabled, I would assume that it has to parse the main response before it can process the subrequests. Hard-coded subrequests are necessarily processed in order.

    From the timing listed in capture files, it would appear that all requests are processed 1 at a time, not sure though.
    A problem is a difference between what is perceived and what is desired, that
    we want to reduce
    (Dewey 1933)

  7. #7
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan, USA
    Posts
    840
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Processing after Main request/subrequests

    For what it is worth, I was able to verify using http://httptea.sourceforge.net/ that the subrequests are concurrent.
    A problem is a difference between what is perceived and what is desired, that
    we want to reduce
    (Dewey 1933)

 

 

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.71%
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 05:08 PM.

Copyright BetaSoft Inc.