How to use Selenium tests?

2019-09-05 16:19发布

问题:

I start to learn how to automate my tests. I learn this: http://anoopjshetty.wordpress.com/2012/02/08/creating-test-automation-framework-using-c-selenium-and-nunit/

But this in this case result is dll file with selenium tests. For run test in that manual uses NUnit app.

But what (or how) I must do if I need to control those tests from my application? I mean I need to click button on my application and it will run tests from that class?

回答1:

OK, there is asnwer that I was expected, step by step:

  1. create dll with selenium tests code;
  2. create new WinForms project;
  3. Add references -> Browse -> select our DLL;
  4. also add line using OURDLLNAME;
  5. finally use our test methods in our winforms application.

In this case there is no need to use NUnit