I’m automating an online software utilizing Selenium WebDriver in C# utilizing Microsoft Visible Studio Skilled 2019.
Right here is my query: how can we execute our automation script with out Visible Studio?
I created a batch file to execute the script and we’re mentioning the trail of “vstest.console.exe” within the batch file like:
“C:xxxxxxMicrosoft Visible Studio2019ProfessionalCommon7IDECommonExtensionsMicrosoftTestWindowvstest.console.exe”
I wish to execute my automation script on any machine with out putting in Visible Studio. Is it attainable?
My batch file code seems like this:
— batch file code begin right here —
set test_runner=”Driver:Program Information (x86)Microsoft Visible
Studio2019ProfessionalCommon7IDECommonExtensionsMicrosoftTestWindowvstest.console.exe”set
test_dlls=”Driver:UsersXXXXXsourcereposXXXXX_AutomationScriptsXXXXXxx_AutomationScriptsbinDebugXXXXXX_AutomationScripts.dll”set exams=”Smoke_XXX_Search_XXXX”
%test_runner% %test_dlls% /exams:%exams%
Taskkill /IM conhost.exe /F
— finish right here
I copy “vstest.console.exe” into another location in my system and provided that path like:
Driver:MicrosoftTestWindowvstest.console.exe
Now I get an exception like:
Couldn’t load file or meeting
‘file:///D:ExtensionsTestPlatformvstest.console.exe’ or one among its
dependencies. The system can not discover the file specified.