Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reportportal-nightwatch agent throws incompatible status error #52

Open
mchundi opened this issue Jun 11, 2024 · 2 comments
Open

Reportportal-nightwatch agent throws incompatible status error #52

mchundi opened this issue Jun 11, 2024 · 2 comments

Comments

@mchundi
Copy link

mchundi commented Jun 11, 2024

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
Copy link

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

@Pink-Bumblebee
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants