G
Guest
Got a test script where I want Application Center Test to log off a user I
just logged in via forms authentication. On one of my forms I have a button
called btnLogout that, when pressed, logs off the user. I recorded myself
logging on and logging off, and from the generated script I see:
oRequest.Body = "__VIEWSTATE=dDw5NjU1MTU1Ozs%2B9uu4k2OBFxBARxlvF8%2"
oRequest.Body = oRequest.Body + "F6u0Jmt8I%3D&btnLogout=Logout"
I assume that this is the correct Sub and the relevant code from the
Sub--that point at which the button is pressed and a response is sent back to
the server. Playing this back doesn't work. The following variations also
do not work:
oRequest.Body = "__VIEWSTATE=&btnLogout=Logout"
oRequest.Body = "__VIEWSTATE=btnLogout=Logout"
oRequest.Body = "&btnLogout=Logout"
oRequest.Body = "btnLogout=Logout"
What should the request body look like? I attempted to do it by sending a
GET to the page with the logoff button with "?__EVENTTARGET=btnLogout"
appended to the end, but that also didn't work.
Any hints on how to get that button to fire? TIA.
just logged in via forms authentication. On one of my forms I have a button
called btnLogout that, when pressed, logs off the user. I recorded myself
logging on and logging off, and from the generated script I see:
oRequest.Body = "__VIEWSTATE=dDw5NjU1MTU1Ozs%2B9uu4k2OBFxBARxlvF8%2"
oRequest.Body = oRequest.Body + "F6u0Jmt8I%3D&btnLogout=Logout"
I assume that this is the correct Sub and the relevant code from the
Sub--that point at which the button is pressed and a response is sent back to
the server. Playing this back doesn't work. The following variations also
do not work:
oRequest.Body = "__VIEWSTATE=&btnLogout=Logout"
oRequest.Body = "__VIEWSTATE=btnLogout=Logout"
oRequest.Body = "&btnLogout=Logout"
oRequest.Body = "btnLogout=Logout"
What should the request body look like? I attempted to do it by sending a
GET to the page with the logoff button with "?__EVENTTARGET=btnLogout"
appended to the end, but that also didn't work.
Any hints on how to get that button to fire? TIA.