database - Using Microsoft.Fakes framework in Coded UI Tests -


am working on coded ui tests web application. trying isolate repository method calls same way i'm doing in unit , integration tests, i.e. using microsoft.fakes framework. seems ui tests fakes not working, because real method still called instead of shim. without isolation ui test results in affecting database (for example adding new user when testing registration process) makes not reusable. wondering whether possible fake/mock methods , avoid setting test database , test web site each time need run coded ui tests.

didn't find useful information related issue, grateful help.

in case of need here link simple example: https://www.dropbox.com/s/m6les7pmto14njq/testcodeduitest.zip vs 2012 solution 1 class library (containing class method throws exception), 1 web application (containing page 1 button on calls mentioned method) , 1 coded ui test contains shim of method , opens ie, navigates page , clicks button.

coded ui tests real application or real website. coded ui quite different unit testing in not modify application or web site in way. perform testing want think need special web site testing or testing mode on real web site.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -