1

I had created two features file but there is one feature file being execute and the second feture file is not get executed. Why is like this?

@CucumberOptions(
        features = {"src/test/resources/Features/"},
        glue = {"com.nicholas.StepsDef"},
        plugin = {"pretty", "com.nicholas.Manager.GlobalHooksManager",
                "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"}

)

There are two features file located at src/test/resources/Features/. One is login and another is add product. The add product is never executed. Please help. A billion thanks for your help.

enter image description here

Why is like this? Source Code: https://drive.google.com/file/d/1zgXCxSzoQj70FEVCWQf65n8iQWIcfPxm/view?usp=sharing

enter image description here

nicholas
  • 2,581
  • 14
  • 66
  • 104
  • I found out the root cause is related to extent report. When i comment out th extent report, it will run two features file. – nicholas Jul 04 '21 at 12:17

1 Answers1

0

I found out the root cause is related to extent report. When i comment out th extent report, it will run two features file. What is your solutions?

When enable this, /*"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"

it will throw IllegalArgumentException: Test name must not be null or empty

How to solve this?

nicholas
  • 2,581
  • 14
  • 66
  • 104