New question #637031 on Sikuli:
https://answers.launchpad.net/sikuli/+question/637031

Hi


I have created some automation scripts with robo class and then i am trying to 
call theese scripts from the main script . But Sikuli gives an error saying 
Unable to find keywords

########This is my main script#####

import Script 1

########This is my Sikuli script with robo class#########

from sikuli import*
runScript("""
robot
*** Variables ***
${USERNAME}               demo
${PASSWORD}               mode
${TESTSITE}               http://test.sikuli.de
*** Settings ***
Library           ./inline/LoginLibrary
Test Setup        launch application    
Test Teardown     stop application
*** Test Cases ***
TC-18 :Validate  tab for a new case
    Create patient

""")

class LoginLibrary(object):
  def launch_application(self):
      #write code to launch app
     doubleClick("1495488947167.png")
     wait(10)
     if exists ("home.png"):
          print("PASS:App launch sucessfull")
     else:
          print("FAIL:App launch unsucessfull")

    def Create_patient(self):
    click("1495488977291.png")
    wait(5)
    if exists("namefield.png"):
        print("PASS:Enter name of new patient")
        type("")
    else:
        print("FAIL:field is not available")

However this test case runs file when i run it as a standalone without caling 
it from the main script

But i want to run multiple cases one after the other . Hence i want to create a 
main script and run that main script

Please help

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to