title: Automating TestStack.White UI Testing in Windows Slave using Jenkins
body: <p>First of all, I apologize if I am wasting your time, because it looks like a simple step which I am not able to figure out even after some research. </p>
  
  <p>Ok, here is what I am trying to achieve, I have written some UI tests using TestStack.White, I would like to execute this on a Jenkins Slave as different user, since the application behaves differently based on the roles that are assigned to them in Active Directory.  </p>
  
  <p>So after doing a bit of lookup on google I found the following links which are relevant to what I am trying to achieve.</p>
  
  <ul>
  <li><a href="http://teststackwhite.readthedocs.io/en/latest/AdvancedTopics/ContinuousIntegration/" rel="nofollow noreferrer">http://teststackwhite.readthedocs.io/en/latest/AdvancedTopics/ContinuousIntegration/</a></li>
  <li><p><a href="https://stackoverflow.com/questions/26032706/how-to-get-sikuli-working-in-headless-mode/26032780#26032780">How to get Sikuli working in headless mode</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/10177708/jenkins-on-windows-and-gui-tests-without-rdc">Jenkins on Windows and GUI Tests without RDC</a></p></li>
  </ul>
  
  <p>It looks like that I have to install TightVNC on Jenkins slave and should connect to slave from Jenkins Master and execute tests on slave. </p>
  
  <p>Which brings me to my first question, how do I exactly achieve this from a Jenkins job? </p>
  
  <p>About logging in as different users, I understand I can use to "autologon.exe" to achieve this. So just wondering how I can do this on the Windows Slave from Jenkins Master. My company doesn't allow SSH to Windows instances (slave machines), I cannot remotely execute SSH from Jenkins Master. </p>
  
  <p>I understand that I may not be looking at this correctly, so any help would be much appreciated.</p>
  
  <p>Thanks in advance for your time and advice.</p>