We are just starting to write acceptance tests using specflow and watin. We try to smooth out some common practices as we move forward.
What is a good way to check if a user is on a particular page? For example, user x performs action y, they should be redirected to page z. What is the preferred way to test on page z? We tried things like checking URLs, page names, page title, etc.
They all work, but what is the most reliable?
Here I would see two cases.
- , , . , Url - , .
-, (GoTo'd) , . URL- , - , , ( , "" ). , , . HomePageLoadedText = " ". , , .
, , , . " , ". - , , .
(, , ), , . URL- , , , , , , URL .
, , , , , , - .
Source: https://habr.com/ru/post/1793655/More articles:C # Array or collection - collectionsvery strange database query result - phpAzure Diagnostic - how to get raw performance counter data - azureTake the width and height of the device - iphoneRails: removing a user without losing associations (or other ways to allow users) - ruby-on-railsDragDetect (IntPtr, Point) of user32.dll, equivalent in mono? - c #Ajax v., Including data in HTML - performanceAnnotations and managed beans declarations in faces-config.xml - javaHow to access authenticated URL in Android? - androidHelp! Django media widget not appearing - pythonAll Articles