get Error UItest with MTM because of doesn't work auto refresh
-
2012年4月11日 7:42
Hello all,
I have created many CodeUI tests. these tests work well in VS 2010. I associate it to test case and i am running it with MTM. every thing is excellent. but when my test do an action and refresh page automaticlly , auto refresh doesn't work.
For example I add a group to my form and when I click button submit group added and page must be refreshed. but after click submit my page isn't refreshed.
NOTE: this test work in VS 2010 correctly.
sincerely you Mahmood bagheri
- 已编辑 Aziz Banihashemi 2012年4月11日 7:44
- 已编辑 Aziz Banihashemi 2012年4月12日 5:35
全部回复
-
2012年4月12日 6:46
Hello all,
I have created many CodeUI tests. these tests work well in VS 2010. I associate it to test case and i am running it with MTM. every thing is excellent. but when my test do an action and refresh page automaticlly , auto refresh doesn't work.
For example I add a group to my form and when I click button submit group added and page must be refreshed. but after click submit my page isn't refreshed.
NOTE: this test work in VS 2010 correctly.
sincerely you Mahmood bagheri
Hello all ,
I know my page get error when test run with MTM but don't get error when run with Visual studio 2010.
the error is :
Sys.WebForms.PageRequestManagerServerErrorException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
thanks for your attention
-
2012年4月13日 2:42版主
Hi Aziz,
Thank you for your post.
I notice that you post two cases with same error message in recent days, are they belong to the same issue? If yes, please let me know that, i'll merge them for this will be very beneficial for other community members having the similar questions.
The another case is http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/85721236-db6d-4ac0-b1bb-f2882c0a741d.
Best Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
2012年4月15日 14:40
Hi Dear Lily,
I found solution, your link is my thread again.
I add a machinKey tag to my Web.conf of project and change default auto generate values.
I add this tag to my project
<machineKey
validationKey="32E35872597989D14CC1D5D9F5B1E94238D0EE32CF10AA2D2059533DF6035F4F"
decryptionKey="B179091DBB2389B996A526DE8BCD7ACFDBCAB04EF1D085481C61496F693DF5F4"
validation="SHA1"
/>- 已标记为答案 Aziz Banihashemi 2012年4月15日 14:40

