将testNG用于关键字驱动的硒Webdriver框架的优缺点? [英] Advantages and disadvantages of using testNG for keyword driven selenium webdriver framework?

查看:211
本文介绍了将testNG用于关键字驱动的硒Webdriver框架的优缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了关键字驱动的Selenium Webdriver框架.但是我不确定是否要使用testNG用户.如果不使用testNG,如何生成测试报告?现在,我将结果打印到包含测试用例ID,webdriver操作等的主excel文件中. 有什么建议吗

I have developed keyword driven selenium webdriver framework. But I am in doubt whether to go to user testNG or not?.If not using testNG how can I generate the test report? Now I am printing the result in master excel file containing the testcase ID,webdriver actions etc. Any suggestions please

推荐答案

最好使用TestNG,它具有以下优点:

That is better that you use TestNG , It has following advantages :

  1. 它生成日志

  1. It generate logs

您可以进行并行测试

注释有助于轻松设置程序/功能优先级

Annotations helps to set program/function priority easy

允许生成HTML执行报告

Allow to generate HTML report of execution

您可以将测试用例分组

您可以设置测试用例的优先级.

You can set test cases priorities.

您可以进行数据参数化

TestNG确实使自动化测试变得容易.

TestNG really makes automation testing easy.

这仍然取决于您和您的实际需求.如果您不想确定测试的优先级并且不想使用注释,则无需使用TESTNG.

Still it is depends on you and your actual requirement. No need to use TESTNG if you do not want to prioritize your tests and do not want to use annotation.

这篇关于将testNG用于关键字驱动的硒Webdriver框架的优缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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