如何使用Selenium测试? [英] How to use Selenium tests?
问题描述
我开始学习如何自动执行我的测试。
我学这个:<一href=\"http://anoopjshetty.word$p$pss.com/2012/02/08/creating-test-automation-framework-using-c-selenium-and-nunit/\" rel=\"nofollow\">http://anoopjshetty.word$p$pss.com/2012/02/08/creating-test-automation-framework-using-c-selenium-and-nunit/
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/
但是,这在这种情况下,结果与Selenium测试dll文件。
对于手册中运行测试使用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?
推荐答案
确定,还有就是我预计asnwer,一步一步:
OK, there is asnwer that I was expected, step by step:
- 创建硒测试code DLL;
- 创建新的WinForms项目;
- 添加引用 - >浏览 - >选择我们的DLL;
- 同样使用OURDLLNAME添加行;
- 最后使用我们的测试方法在我们的WinForms应用程序。
在这种情况下,没有必要使用NUnit的
In this case there is no need to use NUnit
这篇关于如何使用Selenium测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!