Project

General

Profile

Actions

action #44249

closed

developer mode: "Stop timeout" - like in the old interactive mode :)

Added by okurz about 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2018-11-22
Due date:
% Done:

0%

Estimated time:

Description

User Story

As a test developer or bug investigator I would like to pause the test execution in the developer mode to not need to wait for the big assert_screen/check_screen timeout to time out

Actions #1

Updated by coolo about 6 years ago

  • Target version set to Ready

Basically have 'Open Needle Editor' available whenever there is a check_screen/assert_screen running, which will timeout the check_screen immediately

Actions #2

Updated by mkittler about 6 years ago

So you want to skip the assert_screen/check_screen timeout if you know it is going to fail anyways. That makes sense.

I would add a button "Skip current assert_screen timeout" which would be shown if an assert_screen is ongoing. It only affects the current assert_screen (and not subsequent ones). After clicking the button, the same happens as on a regular timeout. The button itself would disappear and 'Open needle editor' would appear as soon as the latest screenshot has been uploaded.

Actions #3

Updated by mkittler about 6 years ago

  • Assignee set to mkittler
Actions #4

Updated by okurz about 6 years ago

It's not only to skip the waiting time on an assert_screen which you just expect to fail. I am not arguing with you about the code quality of the old interactive mode but what it promised was what many people including myself here still would like to see. In this case: I just want to pause the test execution as soon as possible after I requested it. One use case is to create a needle from the current screen, e.g. to prevent further waiting or to catch exactly the screen at the time before it changes again, e.g. because of screenlock or a dialog that times out. Another use case is that I want to interact with the system outside the context of openQA, e.g. VNC remote control, at this time, not later, e.g. while the installation is currently running.

Actions #5

Updated by mkittler about 6 years ago

I just want to pause the test execution as soon as possible after I requested it.

Pausing as soon as possible in general is another feature but shouldn't be hard to implement. Emphasis on "as soon as possible" which would be in general on the next command.

Actions #6

Updated by okurz about 6 years ago

mkittler wrote:

Emphasis on "as soon as possible" which would be in general on the next command.

That's too late, it should be "abort the currently running timeout".

Actions #7

Updated by mkittler about 6 years ago

@okurz I was talking about the general case, e. g. we might not be able to interrupt an assert_script_run. Of course the timeout for assert/check_screen can be reduced to zero and that is also part of this specific issue.

Actions #9

Updated by mkittler about 6 years ago

  • Target version changed from Ready to Current Sprint
Actions #10

Updated by okurz about 6 years ago

  • Copied to action #45191: developer mode: error message just when clicking "Cancel job" added
Actions #11

Updated by mkittler about 6 years ago

  • Copied to deleted (action #45191: developer mode: error message just when clicking "Cancel job")
Actions #12

Updated by mkittler almost 6 years ago

  • Status changed from In Progress to Resolved

PRs have been merged

Actions

Also available in: Atom PDF