cookie getting lost on playback
When I playback my scripts they generate errors:
!Cannot find cookie IFsFSi8gGA8nmegE87ztqA%3d%3d, must be one of the following:
!-- end of the available cookies list --
1-1 ::HTTPRESPONSE(2): Setting COOKIE_2_1 to ''
This cookie is set correctly the first few times in the script then later on is when I see this error. Any help is appreciated.
Re: cookie getting lost on playback
Either the cookie is not being set which would indicate a failure of the request that normally sets it, or OpenSTA can't find it for some reason.
Read about verifying results here. Do this for all prior primary get/posts to be sure the problem is not happening before the get/post that has the failed cookie set. You can also look at the header of the response that is used to set the cookie. Use 'load response_info header' to load the header text (which has the commands to set the cookie) into a variable and then use the log command to write it out. Then you can decide if the application is trying to set the cookie or not. If the application is trying to set the cookie, then it is likely that there are some non-url encoded values in the cookie that is causing OpenSTA problems parsing the cookie. At this point, you could manually parse the cookie value with your own function using the SCL set command