reportportal / agent-js-nightwatch

Agent to integrate NightwatchJS with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-nightwatch
Apache License 2.0
2 stars 2 forks source link

Reportportal-nightwatch agent throws incompatible status error #52

Open mchundi opened 2 months ago

mchundi commented 2 months ago

Using reportportal version 5.0.2, nightwatch version 2.6.20 Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Value is not allowed for field 'status'.] "}

As a workaround, we are updated the /node_modules/@reportportal/client-javascript/lib/rest.js with these lines: let updatedData = data if(data.status !== undefined) { console.log("Status of test execution is --> " + updatedData.status) if (updatedData.status == 'pass') { updatedData.status = 'Passed' data = updatedData } else if (updatedData.status == 'fail') { updatedData.status = 'Failed' data = updatedData } else { updatedData.status = 'Skipped' data = updatedData } }

Can you please take a look at this error? Is it possible to upgrade the client to use nightwatch 2.6.20?

Pink-Bumblebee commented 2 months ago

@mchundi , are you sure that 5.0.2 is reportportal version, not agent-js-nightwatch version?

Pink-Bumblebee commented 2 months ago

Nightwatch agent is not in our high or even medium priority. So we do not have plans to update it in the near future. But we are open for contribution: https://github.com/reportportal/reportportal/wiki/Contribution