Project

General

Profile

action #34486

Updated by okurz over 6 years ago

## Motivation 

 From time to time a request comes up "how to search for test cases in openQA". In many cases the definition of "test cases" is not clear to the person asking or no clear relation to our [openQA terms](http://open.qa/docs/#concepts) exists. However, we should be able to provide an easy search interface which will simply by default return search results matching any of "testsuites", "scenarios", "test modules", "test steps". 


 ## Acceptance criteria 
 * **AC1:** There is a common way to search for "tests" in openQA as a catch-all however ambiguous the term is understood 
 * **AC2:** The user is asked one and only one question, that is the search term, nothing else 


 ## Suggestion 

 I envision a simple search textfield that queries: 

 * the names in the test suite database 
 * filenames in the test distribution(s), e.g. like https://github.com/os-autoinst/os-autoinst-distri-opensuse/search?q=filename%3Amultipath or `git ls-files "*<search_term>*"` 
   * for multiple distributions, query all or just what is considered the "main" one 
 * search terms within the test distribution files, e.g. like https://github.com/os-autoinst/os-autoinst-distri-opensuse/search?q=multipath or `git grep <search_term>` 
 * Show all of the results, probably a simple table view for all results from the above different queries 

Back