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

"Failed to finish test. Error: timeout of 30000ms exceeded." and "Cannot set properties of undefined (setting 'realId') #51

Closed
MichalFidor opened this issue Jun 8, 2022 · 7 comments · Fixed by #65 or #66

Comments

@MichalFidor
Copy link

Hi,

On the newest version of agent-js-playwright (5.0.4) and @playwright/[email protected] following errors are thrown during execution:
error2
errors

In both cases - with 'includeTestSteps': true, and without it...

@AmsterGet
Copy link
Member

AmsterGet commented Jul 5, 2022

Hello @MichalFidor !
As I understand the timeout error breaks the item creation and leads to another error that you mentioned

Cannot set properties of undefined (setting 'realId')

Such timeout error can be thrown due to ours rest client default timeout 30*1000ms for requests (see client-javascript).
Please try to follow the configuration guide and increase the timeout or turn off it if you like.
Let me know if this helps you!

@MichalFidor
Copy link
Author

I've extended this time and in deed these errors are not longer visible in the console. But it's not the end of this issue, cause while the tests ends on the CI or my local computer - on RP the build is still running and waiting for the action to be completed. Most of the time, one particular action from Playwright itself. I need to force finish the job...

@AmsterGet
Copy link
Member

@MichalFidor
It would be nice if you could create a constantly reproducible sample with this issue.
Looking forward for your reply.

@tr1ble
Copy link
Contributor

tr1ble commented Aug 8, 2022

Hi,

On the newest version of agent-js-playwright (5.0.4) and @playwright/[email protected] following errors are thrown during execution: error2 errors

In both cases - with 'includeTestSteps': true, and without it...

Hello @MichalFidor !
Couldn't reproduce the bug with same steps. Can you give more details or reproducible sample ?

@MichalFidor
Copy link
Author

Sorry guys, I was on holidays and a lot of different things were around my head. Anyway, on the newest released version it looks okay!

There is another issue, which starts to appear in case where test runs in two pages in scope of one test. This is the output:

1663Failed to start nested step. Error: Launch "1xh68437ccl88su7uq" is already finished, you can not add an item to it
1664    at RPClient.startTestItem (/home/travis/build/node_modules/@reportportal/client-javascript/lib/report-portal-client.js:410:19)
1665    at RPReporter.onStepBegin (/home/travis/build/node_modules/@reportportal/agent-js-playwright/src/reporter.ts:396:45)
1666    at /home/travis/build/node_modules/@playwright/test/lib/reporters/multiplexer.js:101:121
1667    at wrap (/home/travis/build/node_modules/@playwright/test/lib/reporters/multiplexer.js:119:5)
1668    at Multiplexer.onStepBegin (/home/travis/build/node_modules/@playwright/test/lib/reporters/multiplexer.js:98:45)
1669    at Worker.onStepBegin (/home/travis/build/node_modules/@playwright/test/lib/dispatcher.js:279:159)
1670    at Worker.emit (events.js:315:20)
1671    at ChildProcess.<anonymous> (/home/travis/build/node_modules/@playwright/test/lib/dispatcher.js:633:12)
1672    at ChildProcess.emit (events.js:315:20)
1673    at emit (internal/child_process.js:903:12)
1674    at processTicksAndRejections (internal/process/task_queues.js:81:21)

But I'll need to investigate it and I'll maybe open another issue on GH if I'll manage to do some reproducible sample

@PodarDelia
Copy link

Sorry guys, I was on holidays and a lot of different things were around my head. Anyway, on the newest released version it looks okay!

There is another issue, which starts to appear in case where test runs in two pages in scope of one test. This is the output:

1663Failed to start nested step. Error: Launch "1xh68437ccl88su7uq" is already finished, you can not add an item to it
1664    at RPClient.startTestItem (/home/travis/build/node_modules/@reportportal/client-javascript/lib/report-portal-client.js:410:19)
1665    at RPReporter.onStepBegin (/home/travis/build/node_modules/@reportportal/agent-js-playwright/src/reporter.ts:396:45)
1666    at /home/travis/build/node_modules/@playwright/test/lib/reporters/multiplexer.js:101:121
1667    at wrap (/home/travis/build/node_modules/@playwright/test/lib/reporters/multiplexer.js:119:5)
1668    at Multiplexer.onStepBegin (/home/travis/build/node_modules/@playwright/test/lib/reporters/multiplexer.js:98:45)
1669    at Worker.onStepBegin (/home/travis/build/node_modules/@playwright/test/lib/dispatcher.js:279:159)
1670    at Worker.emit (events.js:315:20)
1671    at ChildProcess.<anonymous> (/home/travis/build/node_modules/@playwright/test/lib/dispatcher.js:633:12)
1672    at ChildProcess.emit (events.js:315:20)
1673    at emit (internal/child_process.js:903:12)
1674    at processTicksAndRejections (internal/process/task_queues.js:81:21)

But I'll need to investigate it and I'll maybe open another issue on GH if I'll manage to do some reproducible sample

@MichalFidor did you find the solution for this problem?

@MichalFidor
Copy link
Author

@PodarDelia I didn't. In newest versions of Playwright and RP client I don't have this issue anymore

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