QTP 与 Selenium - 比较 [英] QTP vs Selenium - Compare

查看:34
本文介绍了QTP 与 Selenium - 比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 .net 技术创建的应用程序/产品.该产品有一个 GUI,它使用 Web API(应用服务器上的 SOAP)连接到数据库.大多数测试是针对数据库中的值执行的,而其他测试可能属于可用性、性能等.因此,要执行的测试中有 60-70% 是为了验证数据库中的值是否正确显示在 GUI 上,而其他测试 GUI 是否按照需求规范中的要求工作.

I have an application/product which is created using .net technologies. This product has a GUI, which connects to a DB using a Web API (SOAP on an application server). Majority of the tests are executed for the values in the DB, while the others may fall into Usability, Performance, etc. As such, 60-70% of the tests to be executed are to verify if the values in the DB are correctly shown on the GUI, while the others test if the GUI is working as desired in the requirement specifications.

测试的另一个方面还将是使用 DB 和 GUI 测试后端应用程序服务器接口.因为这将使我们能够确定是应用服务器向 GUI 发送错误值还是 DB 有错误值!

The other aspect to the testing will also be testing the backend Application server interface with both the DB and the GUI. As this will enable us to determine, if the App Server is sending bad values to the GUI or is it the DB which has bad values!

产品 UI 没有太大变化,只是以额外的下拉菜单项和这些菜单项的额外页面的形式添加了新功能.

The product UI does not change much, except to add new features in the form of additional dropdown menu items and additional pages for these menu items.

考虑到上述情况,哪个框架会更合适?QTP 或 Selenium 或其他一些商业/开源工具?

Considering the above, which framework would be more suitable? QTP or Selenium or some other Commercial/Open Source tool?

(成本不是主要问题,浏览器兼容性或操作系统也不是主要问题.系统安装在 Windows Server 上,DB 兼容.)

(Cost is not a major concern, and neither is browser compatibility or OS. The system installs on a Windows Server, and DB is compatible.)

推荐答案

我们有一个围绕 Selenium 构建的验收测试框架"来测试我们的应用程序,该应用程序具有与 java + db 后端对话的 flex UI.

We have an acceptance testing 'framework' built around Selenium to test our app which has a flex UI that talks to a java + db back-end.

我们可以轻松地将 Selenium 集成到我们现有的测试和持续集成基础架构中,因为我们可以用 java 编写脚本并使用 junit 来驱动测试.这些测试也由开发人员编写和维护.我们还使用 dbunit 在每次测试前设置数据库.

We could easily integrate Selenium into our existing testing and continuous integration infrastructure because we can write our scripts in java and use junit to drive the testing. These tests are also written and maintained by developers. We also use dbunit to set up the database before each test.

然而,我们的测试部门决定使用 QTP.他们向他们展示了我们围绕 Selenium 构建的基础设施,但他们发现很难理解.我知道他们有一个全职的专职人员来编写和维护测试.

Our test department however decided to go with QTP. They were shown our infrastructure built around Selenium but they found it hard to understand. I know they have a full-time dedicated person to write the tests and maintain them.

由于我不知道你的具体情况,我只能建议你考虑以下几点:

Since I do not know your exact situation I can only suggest you to consider the following:

  • 谁在编写和维护测试?
  • 这些套件会成为更大基础架构的一部分吗?

如果...

  • 您有负责编写和维护测试的开发人员
  • 您需要将这些测试作为更大基础架构的一部分
  • 你很确定你不需要在浏览器之外做太多测试
  • 您认为您可能想要测试除 Windows 之外的其他浏览器和其他平台
  • 你想要免费的东西

如果...

  • 精通代码的人编写和维护测试的人数较少(尽管我不确定 Selenium IDE 是否对于非编码人员来说很难学习)
  • 如果您需要在浏览器之外进行大量测试

这篇文章也可能对您有所帮助.

This article might also help you.

我认为我更喜欢哪一种是显而易见的,但您需要决定哪种方法最适合您的情况.

I think it is obvious which one I prefer, but you need to decide what works best for your situation.

这篇关于QTP 与 Selenium - 比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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