unit testing - How can I run Visual Studio tests in a vNext build as a specific user -


our vnext builds created using tfs 2015. visual studio test step running fine, applications want run unit tests specific user.

is possible in "visual studio test" step, or need use different approach?

from article: test agent, test controller , mstest faq (qustion 21), should applied vs test.

will test agents allow impersonate user? or test agent kick of tests user configured start as?

there no built in support impersonation, default tests run under identity of test agent. if need, write unit test extension impersonation you.

so, can not specify user in "visual studio test" step, test running agent, can try change agent service account specific account of user. or deploy new agent run specific account, reference : running unit tests on different machine during tfs 2015 build


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -