Project

General

Profile

Actions

action #106936

closed

Update ui-framework-documentation.md.

Added by JRivrain about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2022-02-16
Due date:
% Done:

0%

Estimated time:

Description

The current version of ui-framework-documentation.md reflects the way we were doing things last year: we were using external test data wherever we could to pass variables to the tests. Now, we try instead to use simple and specific modules for each specific situation, instead of complex modules that can be used in different situations, but are more complex. We could include a paragraph in the doc to explain the pros and cons of the different approaches:

  • Complex modules with a lot of if-else conditions (the most ancient way, to be avoided).
  • Variables passed from yaml schedules (test data) more simple but still complex, a compromise to have modules that can work in various cases and avoid spaghetti code.
  • Very simple modules doing only one specific task, with schedules adapted for each case. Variables (test data) are passed from the test module to some libraries if needed. The name of the module reflects exactly what it does and the schedule is used to deal with the various situations instead of conditions in the code.

AC1: Include a new paragraph in ui-framework-documentation.md to explain pros and cons of older vs newer approach.
AC2: If logic requires it, update the parts of the doc about external test data.

Historical background: the first approch existed before we implement yaml scheduling: test suites were defined by two gigantic scripts that are still used in some cases, main.pm and main_common.pm. Second approach came with yaml schedule, as a compromise to avoid code repetition, get rid of main.pm and avoid spaghetti-code, in times when we were testing pretty different products in parallel (Sle 12 and 15, TW, leap). Then we realized this was making the test suites not so readable, and that the schedule could be used to deal with the various situations.

Actions #1

Updated by JRivrain about 2 years ago

  • Subject changed from Think about our test design strategy and Update ui-framework-documentation.md. to Update ui-framework-documentation.md.
Actions #2

Updated by JRivrain about 2 years ago

  • Description updated (diff)
Actions #3

Updated by JRivrain about 2 years ago

  • Description updated (diff)
Actions #4

Updated by JERiveraMoya about 2 years ago

  • Tags deleted (qe-yast-refinement)
  • Status changed from New to Workable
Actions #5

Updated by amanzini over 1 year ago

  • Status changed from Workable to In Progress
  • Assignee set to amanzini
Actions #7

Updated by JERiveraMoya over 1 year ago

  • Target version set to Current
Actions #8

Updated by amanzini over 1 year ago

  • Status changed from In Progress to Feedback
Actions #9

Updated by JERiveraMoya over 1 year ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF