Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9201833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:06:51+00:00 2026-06-17T23:06:51+00:00

I’m a contractor doing some unit tests that use Windows authentication to hit a

  • 0

I’m a contractor doing some unit tests that use Windows authentication to hit a test server in a different domain. I’ve been running my tests on my clients VM and everything has been running fine since I’m on their network, and using my login credentials on their domain to run the unit tests. Unfortunetly the VM is extremely slow, (it took 30 minutes for the server to reboot, and for me to bring up the 14 project solution) and I decided to try and run VS on my laptop. I was able to get it to build just fine, but when I go to run my unit tests, It errors out when it attempts to access the test server since I’m running as myself on my laptop which is not in their domain.

Is there any way to run the unit tests as a different user?

I tried using C:\Windows\System32\runas.exe /netonly /user:theirDomain\uid “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe” to run the tests, but it doesn’t work (I’m guessing because the unit tests actually run as QTAgent32.exe that it doesn’t work). I have been able to use the same command for SQL Server Manager to connect to their SQL server.

Another option may be to figure out a way to trust my user credentials on their domain on my laptop, but that isn’t working either…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:06:52+00:00Added an answer on June 17, 2026 at 11:06 pm

    You can run the unit tests directly using the command line application mstest.exe. This is what VS is doing under the hood. In conjunction with runas.exe, I think should completely solve your problem.

    Reference for mstest.exe:
    http://msdn.microsoft.com/en-us/library/ms182489(v=vs.80).aspx

    Edit:
    I’d just like to say that in the interest of efficiency I think the ideal solution here would be for their sys admins to create a domain account for you to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I am confused How to use looping for Json response Array in another Array.
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.