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

[Bug] [Frontend] TH Test run UI TC mismatch #292

Open
rquidute opened this issue Jun 20, 2024 · 4 comments
Open

[Bug] [Frontend] TH Test run UI TC mismatch #292

rquidute opened this issue Jun 20, 2024 · 4 comments
Assignees

Comments

@rquidute
Copy link
Contributor

rquidute commented Jun 20, 2024

Describe the bug

The test run UI in the left panel shows a Test Case that is not the same that is running according to log panel in the right
Screenshot 2024-06-20 at 11 03 32

Important: TH UI shows the tests in the left panel according to the order presented at test selection screen, but backend returns a specific test list order in the following endpoint responses: POST /api/v1/test_run_executions/ and POST /api/v1/test_run_executions/{id}/start.

In addition, the endpoint /{id}/applicable_test_cases, is also returning the test cases in a different order than the displayed in Test selection screen.

Steps to reproduce the behavior

  • Select project
  • Click + Add Test
  • Click Start

Expected behavior

Test Run UI in the left panel must reflect the log panel in the right, so it should consider the backend response for POST /api/v1/test_run_executions/{id}/start and also POST /api/v1/test_run_executions/{id}/repeat

Log files

No response

PICS file

No response

Screenshots

No response

Environment

No response

Additional Information

No response

@hiltonlima hiltonlima added Bug Something isn't working Frontend labels Jun 21, 2024
@raju-apple raju-apple added v1.4 Issues found in 1.4 timeframe target_for_1_4_release_sve labels Aug 16, 2024
@raul-marquez-csa
Copy link
Contributor

raul-marquez-csa commented Aug 30, 2024

@rquidute

From trying to reproduce the issue I noticed that the scenario in the screenshot can happen if we expand one of the upcoming tests (tests not in execution yet) making it appear like a mismatch.

You can notice from the screenshot that the left hand side isn't displaying a test starting or in execution (there are not icons indicating status or progress).

When there's a test under execution it shows the progress icons to the left.

Might this be a false positive?

If not can you please provide a short video or more details showing the behavior described?

Or might this be a regression? was this not happening on earlier versions of the TH?

@rquidute
Copy link
Contributor Author

Hi @raul-marquez-csa, We are right, the test under execution is not displayed in the screenshot and there is only one progress icons that is present for the current test in progress.
I think, since the first test displayed in the left panel is not the first to be executed, might lead user to think it is the wrong test case. The mandatories test cases should be the first ones to be executed.

I'm attaching a video where you can see the whole process. Please also notice the screen right before the test execution (The screen where you are able to select the test cases), the right panel shows the test case in the same order as the execution screen.

Issue.292-720p.mov

@raul-marquez-csa
Copy link
Contributor

PRs in progress
Frontend
Backend

@raul-marquez-csa raul-marquez-csa added Blocked and removed On Track target_for_1_4_release_sve v1.4 Issues found in 1.4 timeframe labels Oct 30, 2024
@raul-marquez-csa
Copy link
Contributor

Blocked for now

High complexity, many moving parts, and potential major re-design/refactor of both frontend and backend, deeper discussion needed.

I see no easy or straightforward way to fix this, latest progress and attempts are in my previous comment (PR links).

Any other approach or pointers in the correct direction appreciated.

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

No branches or pull requests

4 participants