Project

General

Profile

action #109891

Updated by ph03nix over 1 year ago

For a while now, it is possible to write tests in openQA using [python](https://github.com/os-autoinst/os-autoinst-distri-openQA/pull/68), 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 
 1. How difficult is to write the test (1 to 10) 
 1. Could it be that in the future, as a follow up, we can look into pytest? 
 1. What could be a proposed structure from an object-oriented perspective? 
 1. Conclusions after the experiment 

 ## Acceptance Criteria 
 1. loadtests mechanism uses `python/tests/$squad` as default 
 1. library should be self contained to `python/lib` when possible 
 1. **Optional:** A test that uses ssh locally (ssh root@localhost) and runs some commands are written in python 
 1. **Optional:** Write a test for [Open Broadcaster Software](https://obsproject.com/) (boot installed system, install obs, open obs, check app starts, close, shutdown the machine) on Tumbleweed, schedule in its testsuite. 
 1. Findings are documented in this ticket, with all pull requests related to it 
 1. 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.

Back