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
    Oct 2000
    Location
    Tucson, AZ
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    HTTP Load Testing

    We have TestComplete Enterprise edition and I'm starting to look into load testing a web-based app. I've been able to get it to record the HTTP traffic as Tasks. On the HTTP Load Testing window it shows the Connections and list of Requests.

    What I want to do is loop through those actions, using different data. However, in the User Request Header and Server Response Header data, I don't see the data that was entered on the web pages.

    I've read the Help Topics, including "Working with Request Properties From Scripts" and I'm not finding the part that lets me identify which requests I need to modify, and see the data that's in them.

    Thanks,
    Chris

  2. #2
    Junior Member
    Join Date
    Oct 2000
    Location
    Tucson, AZ
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP Load Testing

    That sounds like it's exactly what I need. However, I get an error message:
    Object doesn't support this property or method: 'myTestData.Contents'

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Posts
    254
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP Load Testing

    Hi Chris

    It sounds like you want the RequestBody. So try this (vbscript):

    set myTest = LoadTesting.HTTPTask("taskName")
    set myTestData = myTest.Connection(0).Request(0)
    set variableList = myTestData.Contents
    Log.Message "Variables submitted",variableList

    If you run the above lines, it should log all the parameters that got passed when the page was submitted. Once you know the parameters, you can replace them like this:
    myTestData.Variables.Item(parameter) = newValue
    where parameter is a string.

    Hope this helps,
    Nick

  4. #4
    Senior Member
    Join Date
    Oct 2002
    Posts
    254
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP Load Testing

    You might need to change the numbers in the set myTestData = myTest.Connection(0).Request(0) line. Look in your HTTP Load Testing Log window and find which connection has the actual POST -- that's the one you want to use.

  5. #5
    Senior Member
    Join Date
    Aug 2001
    Posts
    529
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP Load Testing

    Hi Chris,

    I suppose that Nick meant this:

    set variableList = myTestData.RequestBody.Contents

    This variant should work fine.
    Eric Holton
    Microsoft Corp.

  6. #6
    Senior Member
    Join Date
    Oct 2002
    Posts
    254
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP Load Testing

    Whoops. Yes, that's what I meant. Sorry about that. Thanks, Eric.

    -Nick

  7. #7
    Junior Member
    Join Date
    Oct 2000
    Location
    Tucson, AZ
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP Load Testing

    Thanks Nick and Eric. I'm not sure if I just missed that in the help file, but it's exactly what I needed.

    -Chris

 

 

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 03:53 AM.

Copyright BetaSoft Inc.