Change URL in CodedUI Test

I created a codedui test in Visual Studio 2012. The problem is that I need to be able to sometimes change the URL that opens in the browser when each step of the project is updated to the new version. Besides the fact that there seem to be several cases where the URL appears, when I change it, it seems to reset itself after the rebuild.

Is there an easier way to ensure that the URL you set does not change? I'm new to the test suite, so I might have missed something obvious.

I was looking for some decent VS2012 testing tutorials, but if someone could recommend one that I might have missed, would also be very helpful.

+4
source share
2 answers

You can use the Test Coded Interface Editor in Visual Studio Feature Pack 2 to visually update a parameter without any encoding.

See the following tutorial blog post and information on getting the extension: http://windotnet.blogspot.com/#!/2011/07/coded-ui-test-editor-is-visual-studio.html

-Paul

+2
source

You can try the user-encoded encoded user interface. http://msdn.microsoft.com/en-us/library/ee624082.aspx You can pass various URLs as parameters of the encoded interface.

0
source

Source: https://habr.com/ru/post/1445963/


All Articles