Hi,
I have recorded a webtest (logging into the portal, inputting some values and getting response and logging out). The input values I give here are the start and end date and time values. When I re-run the webtest, it works perfect, until I change the start and end date values and try to run it again. It fails if I change the input values.
The request contains the form post parameters
-EVENTTARGET = {{$HIDDEN1._EVENTTARGET}}
_EVENTARGUMENT={{$HIDDEN1._EVENTARGUMENT}}
_VIEWSTATE={{$HIDDEN1._VIEWSTATE}}
and as the last parameter
_EVENTVALIDATION={{$HIDDEN1._EVENTVALIDATION}}
I have seen some posts suggesting to replace the hidden viewstate value with the name of the variable. I changed the viewstate, the test throws a success but does not actually redirect to the right page.
Am I missing something here

re-running webtests containing viewstate
Peter Doss
cr4zykilla
Hi
Can you tell what is the error message you are getting.
Rituparna
Michael Herman - Parallelspace
Hey,
Sorry about the late reply. I am able to figure out the issue - it is nothing on the viewstate that is failing the tests. I had to enter the date and time as two separate values to the portal to retrieve the response and when the date value is bound(using CSV file), visual studio is actually defaulting it to the datetime format with time included as 12:00:00 after the date (format 5/11/2006 12:00:00) which is failing the tests.
I created a coded webtest and used the substring to consider just the left 10 characters as the date. This is not very effective( had to make 3 different webtests for 3 scenarios, to chop off the substring to 8,9 and 10 characters to cover all the timestamps in a year because if the month value is 05, it is considered as 5, same is the case with the dates) but works.
Thanks!