Is there a way to automate a Nunit test from a loaded Visual Studio project (test written in Selenium Webdriver)

I want to automate the tests of Selenium Webdriver. I switched from Visual Studio to a virtual machine with only Nunit. I would like to run these tests every day, preferably before starting work with the help of the task scheduler. I can not use third-party tools. Is this possible, if so, how to do it? I checked the Nunit and Google documentation for info on this.

-1
source share
1 answer

Yes, you can run the selenium test using the NUnit console and just call the corresponding dll . See this for command line options

** EDIT: ** Download NUnit Runner here . Set the executable file path to the system path. In this, you start by installing and then create a basic batch file with the 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 the main Windows task using the scheduler. See here, you must also ensure that the assembly is correctly built.

+1
source

Source: https://habr.com/ru/post/979345/


All Articles