prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
131 stars 38 forks source link

No data send to ReportPortal #291

Closed ansonliao closed 2 years ago

ansonliao commented 3 years ago

Hi Ram, I would like to send the testing data to the ReportPortal, the tests are completed, but no data send to the ReportPortal. By the sam configuration of reportportal.properties in others projects can send the data to the ReportPortal.

The reportportal.properties is:

rp.endpoint = https://demo.reportportal.io

#rp.uuid = uuid_v4

rp.apitoken = uuid_v4

rp.project = ansonliao_personal

rp.launch = ansonliao_TEST_EXAMPLE

Could you help to advise how to solve the problem?

Thanks.

prashant-ramcharan commented 3 years ago

Hi @ansonliao

Are you trying to send data to the demo report portal server or is it one of your own (hosted) report portal servers?

You should see error messages in the console. Try searching the console for Courgette Report Portal Service

ansonliao commented 3 years ago

Hi @prashant-ramcharan , I tried to bot of demo report portal server and my company's private report portal service (so I can't display it public).

Actually, the Intellij console has no error output with the Courgette Report Portal Service, that's my confusing issue, otherwise I can provide some error log here to check.

prashant-ramcharan commented 3 years ago

I assume you already have this in your Courgette runner and the spelling of reportportal is correct?

@CourgetteOptions(
      ...  
      plugin = { "reportportal" },
      cucumberOptions = @CucumberOptions(
      // cucumber options here
      )
)
prashant-ramcharan commented 3 years ago

And the data is sent fine to your companies report portal server?

ansonliao commented 3 years ago

Hi @prashant-ramcharan

  1. My Courgette runner snippet as below, I added the report portal plugin to the @CourgetteOptions.
  2. No data send to my company's private report portal service as well.

image

prashant-ramcharan commented 3 years ago

@ansonliao Just tried on https://demo.reportportal.io and it worked.

Screenshot 2021-09-08 at 20 14 40 Screenshot 2021-09-08 at 20 17 38
prashant-ramcharan commented 3 years ago

What version of Courgette are you using?

ansonliao commented 3 years ago

Hi @prashant-ramcharan

  1. My Courgette version is 5.12.0 implementation('io.github.prashant-ramcharan:courgette-jvm:5.12.0')

  2. For my another JS testing project also can send the data to https://demo.reportportal.io, the snippet of the reportportal.properties is:

    token: process.env.RP_TOKEN || "{RP_ACCESS_TOKEN}",
    endpoint: process.env.RP_ENDPOINT || "https://demo.reportportal.io/api/v1",
    launchName: "xxxxxx",
    projectName: "xxxxxx",
prashant-ramcharan commented 3 years ago

@ansonliao I suggest try adding your reportportal.properties to src/test/resources in the example project: https://github.com/prashant-ramcharan/courgette-jvm-example

Please provide a Github link or project if you want me to look into this further for you as I cannot replicate the issue with sending data to report portal (https://demo.reportportal.io)

ansonliao commented 3 years ago

Hi @prashant-ramcharan , I will update you when I upload my project to GitHub. Thanks.

ansonliao commented 2 years ago

Hi @prashant-ramcharan I tried the same code in another Mac machine without any code change (just updated the UUID of reportportal.properties), it's working to send the data to the report portal (I am now using the https://demo.reporportal.io), I will try the machine which keep out of work before and keep the update to you.