Executing test sequences with a csv file

Asked by Rares Pasca on 2019-01-08

Hello, is it possible to achieve this in sikuli?

"Add a way to specify a file through the command line which contains a sequence of tests to execute ; the feature is defined as follows:
If nothing is specified, execute the tests as usual
Example of a typical call without specific test (meaning it will run all the tests): c:\Sikulix\runsikulix.cmd -r C:\Sikulix\Arobs\HagercadTestRunner.sikuli
If a file is given, execute the test sequence contained in that file:
c:\Sikulix\runsikulix.cmd -r C:\Sikulix\Arobs\HagercadTestRunner.sikuli --args testsuite.csv
In this case, testsuite.csv would contain a series of tests that need to be run one after the other
Example of file content (two lines in a CSV):
Each line represents a sequence of tests to execute
The reporting system must show the result under the name of the test that is the lowest down in the sequence; example: Test1,Test2,Test3 means that in fact, Test3 is the actual element that is being tested, so the report must show test3 in its header.
Before running a sequence, the Sikulix test must make sure that every single test that makes up the sequence actually exists; if one or more do not, then the sequence must be ignored, and a log message must appear specifically for that case"

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
Rares Pasca (asheru93) said : #1

unittest and html test runner are used with sikuli

RaiMan (raimund-hocke) said : #2

Not a feature for SikuliX, you have to script your own workflow:

- read the csv file
- configure/setup the respective unittest settings
- run the suite

Rares Pasca (asheru93) said : #3

Thanks, so basically i have to re-organize my code . Read the csv file and then run the suite with the help of unittest + html test runner

RaiMan (raimund-hocke) said : #4

yes ;-)

Can you help with this problem?

Provide an answer of your own, or ask Rares Pasca for more information if necessary.

To post a message you must log in.