如何使用Selenium测试? [英] How to use Selenium tests?

查看:203
本文介绍了如何使用Selenium测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习如何自动执行我的测试。
我学这个:<一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:


  1. 创建硒测试code DLL;

  2. 创建新的WinForms项目;

  3. 添加引用 - >浏览 - >选择我们的DLL;

  4. 同样使用OURDLLNAME添加行;

  5. 最后使用我们的测试方法在我们的WinForms应用程序。

在这种情况下,没有必要使用NUnit的

In this case there is no need to use NUnit

这篇关于如何使用Selenium测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆