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

Teardown not properly executing #58

Open
supersilverlemonhaze opened this issue Jan 24, 2025 · 3 comments
Open

Teardown not properly executing #58

supersilverlemonhaze opened this issue Jan 24, 2025 · 3 comments

Comments

@supersilverlemonhaze
Copy link

Running the testsuite for a single test case. 3 devices are claimed, one for practitioner and two clients. After the test passes and the teardown happens only 1 device is unclaimed, where it should be 3. Please investigate this issue and make sure unclaims, leaveRooms etc. are all executed as intended.

@Beff42
Copy link

Beff42 commented Jan 24, 2025

Hey there,

for which tests does this happen? It is a continuos issue or sporadic? How can I reproduce this?

Sometimes when severe errors occur during tests executions, we are not able to exit cleanly. This means some resources cannot be deleted/unclaimed. For this reason we do a 'cleanUp call' before every test (see

). You can utilise this internally to delete every remaining resources and unclaim left over devices.
Once the tests are more stable you will see less of this issues. I still highly recommend to implement a cleanUp on your side, since left over resources can affect following tests negatively. Especially when running the full test set, a severe issue in an early test can make test analysis very cumbersome, due to this potential follow-up fails.

@supersilverlemonhaze
Copy link
Author

The issue seems to be sporadic. We have only a selected number of test cases enabled from the feature files 0,3,4,5,7 (altogether 13). Cleanup method in DefaultApi is already implemented, but i dont see it being executed anywhere anywhere in the logs, neither it is called from within the testsuite

@Beff42
Copy link

Beff42 commented Jan 24, 2025

The cleanUp call is done with curl. You will see curl calls in the log (look for INFO d.g.t.t.g.a.t.CurlInterceptor - PARALLEL cURL command:) and when you check the RebelLog you will also see the POST calls to /. (the Serenity report itself will not pick them up, because they are executed before the actual test).

Find the RebelLog at the end of the report:

Image

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