sikulix robot framework

Asked by Thuraisingam on 2019-05-15

hi,

i try to use sikuli with robot framework with windows, i tried this tuto :

https://github.com/rainmanwy/robotframework-SikuliLibrary

pip install robotframework-SikuliLibrary = ok

java -jar SikuliLibrary.jar 3000 = ok \\ i have this result https://www.noelshack.com/2019-20-3-1557929305-nouvelle-image-bitmap-2.png

but after i don't know how to do for have a report

thanks for your answer

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-05-15
Last reply:
2019-05-17
Thuraisingam (glardz98) said : #1

but after i don't know how to do for have a repport

Thuraisingam (glardz98) said : #3

do you have an idea to use sikuli with robot framework ?

Thuraisingam (glardz98) said : #5

in this case, i don't use java only python

RaiMan (raimund-hocke) said : #6

The mentioned solution works in the SikuliX IDE and has nothing to do with Java (besides the fact, that SikuliX itself is implemented in Java).

Everything is Python scripting and RFW.

see my discussions with Melvin here:
https://answers.launchpad.net/~fribian

Thuraisingam (glardz98) said : #7

i tested this code and i have a repport :

runScript("""
robot
*** Variables ***
${USERNAME} demo
${PASSWORD} mode
${TESTSITE} http://test.sikuli.de
#(charge library and initialise function, see below _
*** Settings ***
Library ./inline/LoginLibrary
Test Setup start firefox and goto testsite ${TESTSITE}
Test Teardown stop firefox
#(name of each test)
*** Test Cases ***
User can log in with correct user and password
Attempt to Login with Credentials ${USERNAME} ${PASSWORD}
Status Should Be Accepted
""")
class LoginLibrary(object):
  def start_firefox_and_goto_testsite(self, page):
    popup("start_firefox_and_goto_testsite")
  def stop_firefox(self):
    popup("gofireftiti")

i want now test if click is on firefox work doubleClick("firefox_icone.png")

RaiMan (raimund-hocke) said : #8

sorry, but writing code is your job ;-)

you should first try the snippets in an extra IDE tab and the make it functions in the class area and add them to the RFW stuff.

Can you help with this problem?

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

To post a message you must log in.