reportportal / agent-java-cucumber4

Cucumber JVM version [4.0.0; 5.0.0) adapter
Apache License 2.0
6 stars 9 forks source link

Not able to load test cases that are executed using Cucumber in REPORTPORTAL #48

Closed TestMyCode12345 closed 4 years ago

TestMyCode12345 commented 4 years ago

Hi Team,

I have created one project using cucumber. I am able to run the restNg.xml and all test cases got executed based on feature file within.

Reportportal is up and running. I successfully load test cases that are executed using below link in reportportal

https://github.com/reportportal/example-java-TestNG

But I am not able to launch test cases done in cucumber prject.

Steps followed:

  1. pom.xml - added cucumber dependency. (attached screenshot)

  2. testing.xml - Added listener.

  3. TestRunner.java - Added ScenarioReporter.

  4. Reportportal.properties.

image

image

image

image

Could you please advice me.

I am new to cucumber.

HardNorth commented 4 years ago

Please take a look on this example: https://github.com/reportportal/examples-java/tree/master/example-cucumber4 Or this (using cucumber-testng): https://github.com/reportportal/examples-java/tree/cucumber4-jackson-no-method/example-cucumber4

TestMyCode12345 commented 4 years ago

Please take a look on this example: https://github.com/reportportal/examples-java/tree/master/example-cucumber4 Or this (using cucumber-testng): https://github.com/reportportal/examples-java/tree/cucumber4-jackson-no-method/example-cucumber4

Thanks @HardNorth I am able to see the test cases loaded into the reportportal with agent-java-cucumber.

I need one more clarification. I have existing project in selenium + cucumber . we are generating report and send report across team with extend report. We have a data in TDM sheet (excel).

Created TestRunner java file to set plugins and feature file. Now reportportal launch the test cases.But test cases are skipped. Bcoz stepdefinition is not called. It is saying "No match found for the given, when, then". Do you have any example how to integrate existing selenium project in reportportal.

![Uploading Capture.JPG…]()

TestMyCode12345 commented 4 years ago

Capture

TestMyCode12345 commented 4 years ago

Any reason to transfer this issue from reportportal???

HardNorth commented 4 years ago

@TestMyCode12345 Because the issue is related to the agent only.