Online Training: Web test automation with CodeceptJS. Sign up now!

Report Portal throws error related to status code when using RP V5

What are you trying to achieve?

Trying to run tests and push output to Reportportal V5.

What do you get instead?

(node:35244) UnhandledPromiseRejectionWarning: Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Value is not allowed for field 'status'.] "}
    at /Users/****/***************/**********************************************/node_modules/reportportal-client/lib/rest.js:27:23
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Details

  • CodeceptJS version: 2.3.5
  • NodeJS Version: 12.11.0
  • Operating System: MacOS Catalina 10.15
  • WebDriverIO: 5.15.2
  • Configuration file:

NOTE

  • The issue does not affect the tests or test runtime
  • The issue caused is inside ReportPortal where the tests don’t know when they ended thus the test run duration is inaccurate and it forces the user to manually stop the test sessions inside reportportal Launches section.

@unreal2frag do you use @peterngtr https://github.com/PeterNgTr/codeceptjs-rphelper ? I think it is not tested with RP v5 yet, or?

@paulb v5 was not born by the time I wrote that helper :stuck_out_tongue:

2 Likes

so @paulb I just had a chance to test my helper against v5. It works great! Also I updated something to make it better. More info could be seen in here https://github.com/PeterNgTr/codeceptjs-rphelper/blob/master/.github/CHANGELOG.md :slight_smile:

2 Likes