Forum Discussion

Jason0352's avatar
Jason0352
New Contributor
14 years ago

Auto Updating Parameters



Hello,

I'm doing load testing on an internal server in our working environment
and need some guidance.  

I'm getting warnings after closing TestComplete and rerunning the same
http test.  



I found that I need to do something with the "Auto-Update Parameters" to
make my test pass the same data every time before it expires.  

What I don't know is, what exactly to populate the parameters box with?  

Are they supposed to find the dynamic variables itself?

Am I supposed to manually find them in the header output and place them
in the auto-update parameters?



Your help would be most beneficial,

Thanks,

Jason Swanson





5 Replies

  • Hi Jason,


    Thank you for the project suite. We will analyze it and let you know our results as soon as we have some.

  • Hi Jason,


    Please add the following auto-updated parameters to your LoadTesting project item and play back your test:


    Name: __VIEWSTATE

    Regular Expression: \sname\s*?\=\s*?"__VIEWSTATE"[^^]*?\svalue\s*?\=\s*?"(.*?)"[^^]*?>

    Replacing Mask: $1


    Name: __EVENTVALIDATION

    Regular Expression: \sname\s*?\=\s*?"__EVENTVALIDATION"[^^]*?\svalue\s*?\=\s*?"(.*?)"[^^]*?>

    Replacing Mask: $1


    Name: d

    Regular Expression: \ssrc\s*?\=\s*?"/WebResource\.axd\?d\=(.*?)&

    Replacing Mask: $1


    Name: t

    Regular Expression: \ssrc\s*?\=\s*?"/WebResource\.axd\?d\=.*?&t\=(.*?)"

    Replacing Mask: $1


    Name: d

    Regular Expression: \ssrc\s*?\=\s*?"/ScriptResource\.axd\?d\=(.*?)&

    Replacing Mask: $1


    Name: t

    Regular Expression: \ssrc\s*?\=\s*?"/ScriptResource\.axd\?d\=.*?&t\=(.*?)"

    Replacing Mask: $1


    If the problem persists, please zip your entire project suite folder along with the log of the failed test execution and send me the archive. Make sure that messages in your log correspond to the latest version of your tests.

  • This was exactly what I was looking for. Thank you so much for the script, it works like a charm :] - Also very quick response time from the support system.. impressive.