Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to call a wcf service from my Tests. The service is running in same network with different domain. So to call that I need different windows user account who has permission of that service.

In my test case, I have used LogonUser API for impersonation. It is working fine to run tests from Visual Studio.

But in case of executing from TFS it is not working. It takes the identity of user from Build Agent (under which my TFS tests are running and I can not use that account to impersonate). How to enforce TFS to use credentials by LogonUser API, not from TFS Build Agent.

What I have tried:

I have tried LogonUser API for impersonation.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900