How to integrate the cucumber in testNG?

主宰稳场 提交于 2019-12-20 01:09:12

问题


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?


回答1:


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

You can run the tests from Jenkins with mvn test.

Here you have a basic example:

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



来源:https://stackoverflow.com/questions/31285778/how-to-integrate-the-cucumber-in-testng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!