c# - Programatically start selenium test -


using c#, possible start selenium test?

the way found via ui right clicking on test , starting manually.

enter image description here

as arran said, question how run tests written using visual studio unit testing framework , has nothing selenium.

since can run test command line, need start calling command c# code.

for example, here how start mstest.exe tests (see msdn documentation more test options please):

process myprocess = new process(); processstartinfo myprocessstartinfo = new processstartinfo(path_to_mstest_exe, "/testcontainer:" + path_to_test_dll);  myprocessstartinfo.windowstyle = processwindowstyle.hidden; myprocess.startinfo = myprocessstartinfo; myprocess.start(); 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -