Project

General

Profile

action #109891

Updated by szarate about 2 years 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 is using `python/tests/` as default 
 1. A test that uses ssh locally (ssh root@localhost) and runs some commands is written in python 
 1. 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 own testsuite 
 1. Findings are documented in this ticket, with all pull requests related to it 
 1. Above questions answered (during the Sprint review) 

 ### Constraints 

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

 ### Considerations 

 Acceptance criteria can be moved to a separate ticket prior 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 the findings

Back