使用 C# 进行 Selenium 数据驱动测试

发布于 2024-08-01 13:42:16 字数 109 浏览 3 评论 0 原文

我想使用 ASP.NET(C#)、ajax 和 jquery 的几乎所有功能在 selenium 中执行数据驱动测试。 谁能告诉我如何使用 C# 执行数据驱动测试的步骤 或者一些我可以执行测试的演示?

I want to perform data driven testing in selenium using ASP.NET(C#),ajax and almost all the features of jquery. Can anyone give me the step how to perform data driven testing using C#
or some demo through which I can perform my testing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

椒妓 2024-08-08 13:42:16

步骤1:首先从此链接下载selenium web驱动程序 - http://docs.seleniumhq.org/download/

Step2:然后下载NUnit jar 文件。

步骤3:点击此链接 - http://www.joecolantonio.com/2012/07/31/getting-started-using-selenium-2-0-webdriver-for-ie-in-visual-studio -c/

希望这可以帮助你。

Step1: First download selenium web driver from this link- http://docs.seleniumhq.org/download/

Step2: then download NUnit jar files.

Step3:The follow this link- http://www.joecolantonio.com/2012/07/31/getting-started-using-selenium-2-0-webdriver-for-ie-in-visual-studio-c/

Hope this may help you.

神也荒唐 2024-08-08 13:42:16

当您想使用 Selenium 和 jQuery 进行 AJAX 时,我不确定您的意思。 您的站点应该执行 AJAX,并且 selenium 应该触发请求。

如果您想做 C# 和 NUnit 测试(这是编写 C# 测试的标准方法),那么我的网站有一个 教程帮助您入门。 您需要做的就是编写代码来访问数据存储,然后在进行测试时循环该数据

I am not sure what you mean when you want to do AJAX with Selenium and jQuery. Your site should be doing the AJAX and selenium should be firing off the requests.

If you want to do C# and NUnit tests, which is the standard way to write c# tests, then my site has a tutorial to get you going. All you need to do is to write code to access your datastore and then a loop round that data when doing your test

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文