How to schedule Microsoft coaded UI test execution when you don’t have MS TFS


How to schedule Microsoft coaded UI test execution when you don’t have MS TFS


  1. Create a release of stable coded UI project by following steps
  1. Open  Build > Batch build
  1. Click rebuild if a release was already built


  1. After successfully building coded UI project navigate to release folder of project and copy testAutomated.dll named with your project name
  1. Place this dll on remote machine where you want to schedule your test execution

  1. Place .dll in some directory of remote machine e.g I am placing in D:\coadedUitest


  1. Install Miscosoft Test agent from this link on this machine where you want to execute test . http://www.microsoft.com/en-us/download/details.aspx?id=38186

  1. After installing test agent verify MS test is present in location  
  1. Open note pad and enter following text
D:
cd coadedUitest
set mstestPath=”C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE”
%mstestpath%\mstest /testcontainer:testAutomated.dll  


  1. Save it with .bat extension


  1. Open .bat file by double clicking it to verify tests are executed or not
  1. After successful execution open windows task scheduler and create a scheduled task to run this created .bat file.


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s