How to integrate the cucumber in testNG?

2019-02-24 09:49发布

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条回答
Ridiculous、
2楼-- · 2019-02-24 09:55

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/

查看更多
登录 后发表回答