← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #176537]: Organizing Sikuli scripts, that represent tests

 

Question #176537 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/176537

    Status: Open => Answered

RaiMan proposed the following answer:
--- Hope this make sense

Not really, because it might be a reaction on the current "file" structure and the way how the IDE handles it, with all its lacking features to support the philosophy behind:
A Sikuli script is a compound resource containing code AND resources (like images currently, might be others in the future).

*** What is really missing:

- a file type, that hides the folder character of a Sikuli script (like
on Mac with the bundles and like many modern apps have it (MS Office the
docx, xlsx, pptx, ...) or the .jar files for Java based apps). The
developers once started with the .skl format (zipped version of a
.sikuli folder), but this file format is currently one way only (create
and run) and cannot be edited again with the IDE as is. And it was not
developed further.

- some resource handling support for a sikuli bundle (e.g. for ini-like
files or other file based resources like templates)

- a preview feature based on the created .html

*** organization features currently on the Python level

- put all test cases as .sikuli in one folder. You might have all the
scripts open in the IDE in parallel during development/debugging. Here
we currently have a major drawback, since the IDE does not reset the
imports on rerun - you have to do that yourself)

- create a main script, that imports and runs the tests. Runnable tests
have to be packed in def()'s. Run it from command line to be able to
give parameters to the main, to control the process.

This optimally supports other testing frameworks like e.g.
RobotFramework.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.