c# - Programatically start selenium test -
using c#, possible start selenium test?
the way found via ui right clicking on test , starting manually.
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
Post a Comment