Project

General

Profile

Actions

action #109891

closed

coordination #109783: [epic][qe-core] Using Robot Framework in openQA

[qe-core] Writing openQA tests with python

Added by szarate about 2 years ago. Updated 6 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Spike/Research
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Sprint:
QE-Core: June Sprint 23 (Jun 14 - Jun 28)

Description

For a while now, it is possible to write tests in openQA using python, which makes it more attractive for test engineers, as Perl might not be everybody's cup of tea.

As a Test developer I would like to write tests for openQA in python, so that I can write tests with a language that might be more readable for a newcomer.

Now while this is a whole topic, there are questions we need to be able to answer, to see if this is really worth the effort.

  1. Can we import Perl libraries? or do we have to start from scratch and do everything, like ensure_unlocked desktop
  2. How difficult is to write the test (1 to 10)
  3. Could it be that in the future, as a follow up, we can look into pytest?
  4. What could be a proposed structure from an object-oriented perspective?
  5. Conclusions after the experiment

Acceptance Criteria

  1. loadtests mechanism uses python/tests/$squad as default
  2. library should be self contained to python/lib when possible
  3. Optional: A test that uses ssh locally (ssh root@localhost) and runs some commands are written in python
  4. Optional: Write a test for Open Broadcaster Software (boot installed system, install obs, open obs, check app starts, close, shutdown the machine) on Tumbleweed, schedule in its testsuite.
  5. Findings are documented in this ticket, with all pull requests related to it
  6. Above questions were answered (during the Sprint review)

Constraints

Do not refactor at this stage or create unnecessary libraries beyond what is needed to complete the tasks.

Considerations

Acceptance criteria can be moved to a separate ticket before the agreement with the PO if they are deemed too big (or if two persons want to work on the ticket, splitting the task further) except for the findings.


Related issues 4 (2 open2 closed)

Related to openQA Tests - coordination #138596: [epic][qe-core] Using Avocado Framework wrapperNewszarate2022-04-13

Actions
Related to openQA Project - coordination #90758: [epic] python bindings for openQAResolvedokurz2021-04-07

Actions
Blocked by openQA Tests - action #126590: [qe-core] loading tests in Python is broken when using YAMLResolvedmgrifalconi2023-03-24

Actions
Copied to openQA Tests - action #109894: [qe-core][spike] Using Robot Framework in openQA - Writing openQA tests using Robot frameworkNew2022-04-13

Actions
Actions

Also available in: Atom PDF