-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
500 Error when creating a test run / adding a test case to a run #1978
Comments
We're seeing the errors reported in Sentry and currently investigating. Will update with more info. |
Using these steps to reproduce on our own private tenant I was able to create a new TR.
Note: the tracebacks I'm seeing in Sentry all refer to TP-6 which includes a single test case, TC-1: User is able to log in with valid credentials. There are 0 TestRuns created on your tenant. If there are 0 test runs then accessing There are historical versions for TR-6 and TR-5. Both test runs have been deleted since. There are historical TestExecution records only for TR-1 and TR-2, both for TC-1 which have been deleted since. So it looks like at some point creating a new test run was possible. @avishnyak can you provide us with more detailed steps to reproduce? Ideally record a short video so we can see what are you doing and send it over to the support email address. |
Note. I see you've also removed the following TestExecutionStatus objects: Deleted “ERROR.” Creation of a new TestRun page is looking for the IDLE status, more precisely an ID of 1 which didn't exist and it failed. I've added back the IDLE status with an ID=1 and will leave this open b/c the underlying code needs to be refactored a bit. Also by deleting some of the statuses you've removed all statuses with weight=0, that is neutral ones, e.g. not positive, nor negative: this is also something that the backend should be aware of. |
Implementation notes: for TestRun.add_case_run:
The status=1 default value is wrong. It should be |
Thank you. This fixed my issue. |
because statuses can be customized and deleted!
because statuses can be customized and deleted!
check that we have at least 1 left before deleting!
because statuses can be customized and deleted!
…#1978 check that we have at least 1 left before deleting!
HINT: try to reproduce bugs and errors at https://public.tenant.kiwitcms.org!
This is always running the latest version and will automatically submit
traceback and debugging information to us!
Description of problem
I get a 500 error whenever I attempt to create a test run or add a test case to an existing test run.
Version or commit hash (if applicable)
8.7-Enterprise (hosted)
Steps to Reproduce
Actual results
500 Error
Expected results
Navigate to the Run page and be able to execute test cases.
Additional info (Python traceback, logs, etc.)
When attempting to add test cases to the run manually after the fact, I still get a 500 error when updating the Run.
See: https://atlaslifttech.tenant.kiwitcms.org/runs/5/assigncase/
The text was updated successfully, but these errors were encountered: