Test Suite and Special Character

Asked by Rafael

1) I need automate a very system complex and I realized that there is no test suite in Sikuli. what better way to build a test suite with Sikuli (to run several tests in sequence) ?

2) How insert @ in a field? I've tried, but error appears

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
RaiMan (raimund-hocke) said :
#1

-- at 1:
when using the Jython layer (Sikuli script) you have Python's unittest
when using Java: use TestNG

-- at 2:
use paste instead of type (see faq 933)

Revision history for this message
HAL-9000 (coldlogic) said :
#2

Hey Raphael,

I use Jython/unittest with my own XML test runner for reporting. There are however test runners publicly available for aggregating data from unittest for reporting (poke around the intertubes, you'll find many).

In regards to your special character issue (@) are you using Java or Jython? Again I use Jython and am entering email addresses all the time using the @ character with type() and have no problems.

Revision history for this message
Rafael (rafael-qi) said :
#3

Thanks for the replies, friends!

In the true, I'm beginner in the sikuli, so..i'm using only python. How can I find examples of Sikuli with jython?

About the question of special character, I used type() and nevertheless appears error.

Att,
Rafael

Revision history for this message
HAL-9000 (coldlogic) said :
#4

Hey Rafael,

You're using Jython if you're using Sikuli. Jython is just Python in Java, so in Sikuli-land the names are interchangeable.
In the case of special characters you need to encapsulate them in quotes so Sikuli knows its a character.

Try type("@") and that should work.

Happy scripting!

Revision history for this message
Rafael (rafael-qi) said :
#5

To program the Sikuli, I must use Jython or can I just use python? also I'm newbie in the programming, and would not want to use a mixed language (Jython).

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

Jython is the same on the language level as Python 2.5, but Jython stands for the java based interpreter used with Sikuli.

So Sikuli scripts are Python language scripts.

In any case, you need some basic scripting/programming skills (if/else, loops, functions, modularisation, usage of test suites) if you want to do more than just some find()s and click()s (as it seems to be in your case: ... I need automate a very system complex ...

But the Sikuli IDE ames it rather easy to just jump in with basic workflows and then this forum and the net has many topics, that might help in more complex situations.

all the best.

Can you help with this problem?

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

To post a message you must log in.