如何将黄瓜集成到testNG中? [英] How to integrate the cucumber in testNG?

查看:36
本文介绍了如何将黄瓜集成到testNG中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于由核心 JAVA+TestNG 创建的框架.框架遵循TDD模型,POM是我们的构建管理工具.有人可以告诉我是否有可能使用黄瓜将框架从 TDD 更新为 BDD.但我仍然想对这个要求做最小的改变,比如不改变任何现有的技术(核心语言、TestNG、Maven sys.).我的目标是如何在 Eclipse 中使用 testNG.xml/TestNG 插件运行黄瓜 TC.是否可以在 Jenkins CI 服务器中以最少的更改实现代码?

I have a framework which is used to created by core JAVA+TestNG. And the framework is followed by TDD model, and POM is our build management tool. Can somebody tell me is there any possible to update the framework from TDD to BDD using cucumber. But still I would like to do minimum changes for this requirement, like not changing any existing technologies(Core language,TestNG, Maven sys.,). My objective is how to run the cucumber TC's using testNG.xml/TestNG plugins in eclipse. Is it possible to implement the code in Jenkin CI server with minimum changes?

有人可以分享我的基本示例吗?

Can somebody share me the basic example?

推荐答案

是的,你可以让 CucumberJVM 与 TestNG、Selenium 和 Maven 集成.

Yes, you can have CucumberJVM integrated with TestNG, Selenium and Maven.

您可以使用 mvn test 从 Jenkins 运行测试.

You can run the tests from Jenkins with mvn test.

这里有一个基本示例:

http://automatictester.co.uk/2015/06/11/basic-cucumberjvm-selenium-webdriver-test-automation-framework/

这篇关于如何将黄瓜集成到testNG中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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