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
    Jun 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SP 4.1 and Coldfusion clent Variables

    I am a first time SP user. We are using SP 4.1. Our's is a clustered environment running Iplanet and Coldfusion 4.5. We created SP scripts by using the recorder. The scripts are executed at with multiple virtual users from 1 machine. The test is generating multiple errors which are mostly related to client and session variables. It looks like the setting of client variables by one virtual user is messing with the client variables used by another virtual user.
    Do I need to set some paramater or setting before running the load test? It feels like we are missing something simple.

    Please help!!!

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

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SP 4.1 and Coldfusion clent Variables

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by indranil:
    The scripts are executed at with multiple virtual users from 1 machine. The test is generating multiple errors which are mostly related to client and session variables.
    <HR></BLOCKQUOTE>

    http is a statless protocol, so web transactions can really only be maintained by cookies on the client or by somehow embedding a session ID in html and then passing it back to the server during subsequent web form posts.

    Each virtual user in SP maintains its own virtual cookie database. So the first thing u should do is look at your script and make sure you do not use any WebCookieSet() functions in your script. The only time you should set cookies with these functions is when you need to simulate a user entering with persistant cookies set in his browser. It may be the case that you have some of these functions left in your code from recording (which would be setting a cookie per user that is now invalid).

    If you are not setting any cookies with WebCookieSet() functions, check out the web forms you are posting ("dclform" section of your BDF script). Are there any long numeric or alphanumeric strings being sent as form data? If so, these could be some sort of session id you are passing to the server when u post these forms. You will need to remove the value and replace them with a variable. You will then need to parse the real session ID from a different function response and set the variable to this value.

    hopefully this is of some help.

    -Corey



    ------------------
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Posts
    164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SP 4.1 and Coldfusion clent Variables

    For ColdFusion look for hardcoded session ids in your script that start with "CF" or "CFID". You will need to parse these out into replace the hardcoded strings with the parsed variables.

    It would be much better to use a more recent version of Performer preferably 5+ which automatically handles eg ColdFusion sessions.

    Corey, in relation to your post on Page vs browser level - this is one example of where page level saves script development time.

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

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SP 4.1 and Coldfusion clent Variables

    stronzo..

    i guess i see what u mean. but in this case I would just spend 5 minutes writing code to parse the session ID and set a form variable and still use the browser level API

    -Corey

    ------------------
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

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

    Re: SP 4.1 and Coldfusion clent Variables

    Thanks for your response. My question is, even if the SP script is being run from 1 IP address, will SP generate multiple cookies (CFID/CFTOKEN) for each virtual user ? As in our case we are running the script from 1 IP address.

    Also, can you throw some more light on how we can use parsing to solve our problem. An example will really help.
    Thanks in advance.


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

  6. #6
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SP 4.1 and Coldfusion clent Variables

    each virtual user maintains its own cookie database and uses its own threads/etc.

    you shouldnt have any worries.

    ------------------
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

  7. #7
    Senior Member
    Join Date
    Nov 1999
    Posts
    164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SP 4.1 and Coldfusion clent Variables

    The following from the help (more or less)illustrates parsing:

    WebParseResponseData(sTitle, sizeof,(sTitle),"<title>", "</title>");
    WebPageUrl("http://www.myserver.com");
    WriteLn("The title is: " + sTitle);

    As to IP address, it is generally only relevant if eg you have a load balancer which maintains session by IP address.


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

 

 

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 04:12 PM.

Copyright BetaSoft Inc.