-1

I want to automate Selenium Webdriver Tests I have moved from Visual Studio to a VM with only Nunit on it. I would like to Run these tests daily preferably before i come into work using Task Scheduler. I can not use any third party tools. Is this possible if so how do i set this up? I have checked Nunit Documentation and Google there is on information on this.

user1622681
  • 93
  • 16

1 Answers1

1

Yes you can run selenium test with NUnit console and just calling the respective dll. See this for command line options

**EDIT: ** Download NUnit Runner here. Set the path of the executable to the system path. This will get you started with installation and, then create a basic batch file with following command

:: Nunit can be set to system path or simply calling the executable and call the dll with /run switch
NUnit/run "C:\selenium\bin\selenium.Tests.dll"

Then, schedule a basic windows task with scheduler. See here you also have to make sure the assembly was build properly

Saifur
  • 16,081
  • 6
  • 49
  • 73