Project

General

Profile

Actions

action #48035

closed

[functional][y] execute SUT setup steps only once per test scenario

Added by okurz over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
SUSE QA - Milestone 24
Start date:
2019-02-06
Due date:
2019-04-23
% Done:

0%

Estimated time:
Difficulty:

Description

Motivation

Whenever we activate terminals we set PS1, ensure proper permissions, disable packagekit, etc. . This is ok when we do it once for the system however in case of xterm we do it every single time we open a new xterm. This wastes quite some time.

E.g. see the minute it took from https://openqa.suse.de/tests/2470038#step/glxgears/3 till https://openqa.suse.de/tests/2470038#step/glxgears/11

We have this issue, as instead of performing these steps in the separate modules, we do it in x11_start_program instead of dedicated module x11_setup.
Other issue that if we execute both x11 tests and console tests, we will run steps multiple times.

Acceptance criteria

  1. Setup steps are executed once in separate test module for x11 tests

Suggestions

  1. We can use the flag to indicate that setup steps were executed
  2. We still have an issue that we don't share state of the job which has created the job, we might consider getting this feature first
  3. As this code is used everywhere, we should limit scope of our change, aiming yast2_gui test suite at first place.

Related issues 1 (0 open1 closed)

Blocks openQA Tests - coordination #47192: [sle][functional][y][epic] some openQA tests in staging take more than 50 minutesResolvedriafarov2019-02-062019-06-04

Actions
Actions

Also available in: Atom PDF