Executing test sequences with a csv file

Asked by Asheru

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:
Example
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):
Test1,Test2,Test3
SecondSequenceTest1,SecondSequenceTest2
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

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Asheru (asheru93) said :
#1

unittest and html test runner are used with sikuli

Revision history for this message
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

Revision history for this message
Asheru (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

Revision history for this message
RaiMan (raimund-hocke) said :
#4

yes ;-)

Can you help with this problem?

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

To post a message you must log in.