visual studio .net act:
Hi everybody, this is a more general question, rather than a specific
problem.
I'm considering if I should use Microsoft VS.NET ACT to test ASP.NET
app. Initially, I started ACT, started recording script, logged on my
application, didsome operations, and then logged out. ACT generated a
VB scripts with a list of SendRequest methods. I can modify the script
to simulate different input values by user.
However, there are some lines that I really worry about. For example,
oRequest.Body = "__VIEWSTATE=dDwxMTYwMDYxODk2O3Q8O2w8aTwzPjs%2BO2w8"
oRequest.Body = oRequest.Body +
"dDw7bDxpPDE%2BOz47bDx0PDtsPGk8MT47aTw3PjtpPDk%2BO2"
My understanding of viewstate is that it retains the state value of
each control across postbacks. In other words, the viewstate could be
different for different input values entered by user. As mentioned
above, I can modify the script to simulate different user input values.
However, how can I modify the viewstate value to match the
corresponding user input value?
For example, suppose there is a datagrid of search results. Of course,
the search results and its corresponding viewstate values depends on
the user-input criteria. I can vary the user-input criteira, but how
can I know the corresponding viewstate values?
Am I on the totally wrong track?
Thanks
Dom