SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Hidden absolute URLs

    I am trying to set a value on what is basically similar to a session id. Each user gets assigned a unique value for Id, say 123 when they log in successfully. This value is then added to the URL similar to:
    http:// 111.11.111.111/application /Default.aspx?Id=123
    I have found the first occurence of this being set and use the WebParseDataBoundEx function to return the value to a variable called sId. This part works fine. The next step is to find the page to add this variable to, like I do with the session ids. The problem is I cannot find the value anywhere in the script. There is a part where it is commented out and it appears there under some redirection calls but I'm not sure what that is doing. TrueLog shows the line it is on. There is no reference to it in the dclform section where I could replace 123 with sId, like when handling sessions. Any ideas on what I'm missing here?Thanks, code is below.

    <font class="small">Code:</font><hr /><pre>// Redirecting http://111.11.111.111/Application/lo...2fdefault.aspx
    // -&gt; (redirection) http://111.11.111.111/application/default.aspx
    // -&gt; (redirection)
    // http:// 111.11.111.111/application /Default.aspx?Id=123&amp;main=1&amp;sub=0&amp;ctx=0 &amp;com=GR&amp;mo
    //
    ThinkTime(12.9);

    //Id is returned here
    WebParseDataBoundEx(sId, STRING_COMPLETE, "Id=", 1 ,"&amp;");
    WebPageSubmit("Log", LOG002, "Form Name"); // Form 1
    Writeln("sId= " + sId);

    Dclform section
    LOG002:
    "__EVENTTARGET" := "" &lt;USE_HTML_VAL&gt; , // hidden, unchanged, value: ""
    "__EVENTARGUMENT" := "" &lt;USE_HTML_VAL&gt; , // hidden, unchanged, value: ""
    "__VIEWSTATE" := "" &lt;USE_HTML_VAL&gt; , // hidden, unchanged, value: "/wEPDwUKMTIwNTM2OTQ4MA9kFgQCAQ8WAh4EaHJlZgU

    </pre><hr />

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    NYC area
    Posts
    463
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden absolute URLs

    I just encountered a somewhat similar situation where the applicaiton post was supposed to be to 'submitreport.aspx' but the playback was going to 'default.aspx' because WebPageSubmit operates on what it thinks is the current page and the application is loading the pages in iFrames or some such technology that SP did not properly recognize. In my case I manually changed the script from a 'WebPageSubmit' command to a 'WebFormPost' command where I could control the URL being posted to. You might try this and you might also have to manually create the form that would contain the 'sID' parameter.
    Or you could try re-recording the entire script and change from page-based to browser level recording and see what that gets you.
    Yes, it really IS rocket science!
    http://www.linkedin.com/in/doncobos

  3. #3
    Member
    Join Date
    Apr 2003
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden absolute URLs

    Thanks Zenpadre,
    I tried your suggestions and the one I ended up getting it to work with was the form one. I tried adding the sID parameter to each form since I couldnt really tell where it was being passed in the dclform section. With some trial and error I found the one it was looking for and then it worked. As a side note I also tried re-recording with the low level recording and this approach did the opposite of the business transaction, it posted the value to every form in the dclform section but it was nowhere to be found in the TMain section. Anyways thanks for the suggestions they were very helpful and led me to the resolution.

  4. #4
    Senior Member
    Join Date
    Jun 2002
    Location
    NYC area
    Posts
    463
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden absolute URLs

    Glad to hear it. Also glad to see the persistence. IMHO that is the most critical quality needed to become a good performance test engineer.
    Yes, it really IS rocket science!
    http://www.linkedin.com/in/doncobos

 

 

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 11.54%
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:32 AM.

Copyright BetaSoft Inc.