Re: [Sikuli-driver] [Question #663409]: Right click and Drag

2018-01-23 Thread Test App
Question #663409 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663409

Status: Answered => Solved

Test App confirmed that the question is solved:
Thanks Masuo

Your solution worked perfect :)

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #663409]: Right click and Drag

2018-01-22 Thread Test App
New question #663409 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663409

I have a requirement where in holding the right click option i have to drag a 
mouse onto another location

Please let me know , how to perform this action

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660834]: Unable to run script on target machine

2017-11-28 Thread Test App
Question #660834 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660834

Status: Answered => Solved

Test App confirmed that the question is solved:
Solved https://answers.launchpad.net/sikuli/+question/660613

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-28 Thread Test App
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Test App posted a new comment:
I am sorry Raiman

Had a typo in my batch file was supposed to be java -jar (with a space)
Thank you so much , the solution worked :)

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-28 Thread Test App
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Test App posted a new comment:
Hi Raiman,

With reference to question
https://answers.launchpad.net/sikuli/+question/660834,  you have
suggested me to try the above solution

I installed Sikuli 1.2 and was able to generate a script.jar file
After this i created a run.bat file to run my script.jar

java -jar 

Running the run.bat file does not execute my script

However when i click on script.jar i am able to run my script , I could
probably live with this , But to perform certain actions on windows, i
have to run as administrator , So right clicking on run.bat file and
running as administrator would execute my scripts But in this case i
somehow cannot run the bat file

Request your expertise on this


Thanks

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660834]: Unable to run script on target machine

2017-11-27 Thread Test App
Question #660834 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660834

Test App posted a new comment:
Hi Raiman,

Request you to give me a solution

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #660834]: Unable to run script on target machine

2017-11-16 Thread Test App
New question #660834 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660834

Hi , 

I want to run my scripts on different machines without installing sikuli on 
other machines

So with the data present in the forum , I have followed the below approach

1.Create a zip file with Libs folder + sikuli.jar + script.sikuli
2.Copied and Unzipped the folder in the other machine
3.Create a batch script as follows

@echo off
set OLDPATH=%PATH%
set SIKULI_HOME=%~d0%~p0
PATH=%SIKULI_HOME%libs;%ProgramFiles%\Java\jre6\bin;%PATH%
java -jar %SIKULI_HOME%sikuli-script.jar %1
PATH=%OLDPATH%



So when i try to run this batch script , Sikuli IDE is opened but does not run 
my script


What should i do to get my script running , Not sure if i missed something

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660829]: Cannot find my Sikuli libs folder

2017-11-16 Thread Test App
Question #660829 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660829

Status: Open => Solved

Test App confirmed that the question is solved:
Solved

I had to add my Environmental variables

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660829]: Cannot find my Sikuli libs folder

2017-11-16 Thread Test App
Question #660829 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660829

Description changed to:
Hi,

I cannot find Sikuli libs folder in my system

I tried to doubleclick sikulixapi.jar

or run
java -jar sikulixapi.jar

and then cancel the popups

Still cannot see my libs folder

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #660829]: Cannot find my Sikuli libs folder

2017-11-16 Thread Test App
New question #660829 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660829

Hi,

I cannot fing Sikuli libs folder in my system

I tried to doubleclick sikulixapi.jar

or run
java -jar sikulixapi.jar

and then cancel the popups

Still cannot see my libs folder

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660807]: Unable to click Yes button on Install sheild wizard popup

2017-11-15 Thread Test App
Question #660807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660807

Test App posted a new comment:
Yes ndinev

Thanks

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660807]: Unable to click Yes button on Install sheild wizard popup

2017-11-15 Thread Test App
Question #660807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660807

Status: Needs information => Solved

Test App confirmed that the question is solved:
Problem solved

I have tried to change the focus and then clicked on the Enter Key , So
works fine now

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #660807]: Unable to click Yes button on Install sheild wizard popup

2017-11-15 Thread Test App
Question #660807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660807

Description changed to:
Hi ,

I am using Sikuli to install and uninstall my desktop application from Control 
panel
I Navigate to control panel  Click on my application , Click on Uninstall button

On clicking Uninstall button , a window with YES and NO buttons is
displayed . I have tried multiple approaches but none of them seem to
work

Approach 1 :

click (image1)

Sikuli clicks as shown in logs , but in reality nothing happens


Approach 2:
hover(image)
click(image) or click (image - Capture a larger region and apply Target offset)

Nothing happens

Approach 3:

#As the button is already in focus

type(Key.ENTER)

No use


However approach 1 & 2 work fine when i run the script from remote , But  on my 
local i do not understand why i cannot click on the Yes button

And i have run all these tests as Administrator

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #660807]: Unable to click Yes button on Install sheild wizard popup

2017-11-15 Thread Test App
New question #660807 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660807

Hi , 

I am using Sikuli to install and uninstall my desktop application from Control 
panel
I Navigate to control panel  Click on my application , Click on Uninstall button

On clicking Uninstall button , a window with YES and NO buttons is displayed . 
I have tried multiple approaches but none of them seem to work

Approach 1 :

click (image1) 

Sikuli clicks as shown in logs , but in reality nothing happens


Approach 2:
hover(image)
click(image) or click (image - Capture a larger region and apply Target offset)

Nothing happens

Approach 3:

#As the button is already in focus

type(Key.ENTER)

No use


However approach 1 & 2 work fine when i run the script from remote , But  on my 
local i do not understand why i cannot click on the Yes button

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #658485]: NameError: name 'robot' is not defined Error on running my script

2017-09-22 Thread Test App
Question #658485 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658485

Status: Answered => Solved

Test App confirmed that the question is solved:
Thanks Raiman

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #658485]: NameError: name 'robot' is not defined Error on running my script

2017-09-21 Thread Test App
New question #658485 on Sikuli:
https://answers.launchpad.net/sikuli/+question/658485

Hi,


I get the following error when i execute my Sikuli script, Seen this  only for 
few of my scripts , Not sure why.
I used the same robo class syntax used in the script which executed without 
below error 


 
from sikuli import*
runScript("""
robot
*** Variables ***
${USERNAME}   demo
${PASSWORD}   mode
${TESTSITE}   http://test.sikuli.de
*** Settings ***
Library   ./inline/LoginLibrary
Test Setuplaunch application
Test Teardown stop application
*** Test Cases ***
TC-18 :Validate library material transluency shade are disabled for non 
restoration
Create patient 
 
""")

class LoginLibrary(object):
  def launch_application(self):
 #write code to launch dc#


  def stop_application(self):
#write code to stop dc#
popup("stop_dc")



  def Create_patient(self):
#Code to create patient#
  





[error] JythonSupport: exec: returns: Traceback (most recent call last):
File "", line 1, in 
File "C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\__init__.py", line 
40, in 
from robot.rebot import rebot, rebot_cli
File "C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\rebot.py", line 40, 
in 
from robot.conf import RebotSettings
File "C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\conf\__init__.py", 
line 26, in 
from .settings import RobotSettings, RebotSettings
File "C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\conf\settings.py", 
line 21, in 
from robot.output import LOGGER, loggerhelper
File 
"C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\output\__init__.py", 
line 21, in 
from .output import Output
File "C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\output\output.py", 
line 15, in 
from . import pyloggingconf
File "C:\Users\sappikonda\AppData\Roaming

\Sikulix\Lib\robot\output\pyloggingconf.py", line 18, in 
from robot import utils
File "C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\utils\__init__.py", 
line 62, in 
from .robottime import (elapsed_time_to_string, format_time, get_elapsed_time,
File 
"C:\Users\sappikonda\AppData\Roaming\Sikulix\Lib\robot\utils\robottime.py", 
line 15, in 
import datetime
File "C:\Sikuli\sikulix.jar\Lib\sikuli\SikuliImporter.py", line 45, in 
load_module
File "C:\Sikuli\sikulix.jar\Lib\sikuli\SikuliImporter.py", line 27, in 
_load_module
ImportError: datetime.sikuli has no datetime.py

[error] JythonSupport: exec: returns: Traceback (most recent call last):
File "", line 1, in 
NameError: name 'robot' is not defined

All theese days , all my sikuli scripts run great . not sure why this error is 
caused.

Please Help.

Thanks in advance

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #658471]: "IOError: [Errno 13] Permission denied " - I see this error when trying to capture image using shutill

2017-09-21 Thread Test App
Question #658471 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658471

Status: Needs information => Solved

Test App confirmed that the question is solved:
Thank you Manfred

Your solution worked perfect

I can save the image with date and time stamp , No error seen

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #658471]: "IOError: [Errno 13] Permission denied " - I see this error when trying to capture image using shutill

2017-09-21 Thread Test App
New question #658471 on Sikuli:
https://answers.launchpad.net/sikuli/+question/658471

Hi,

I am using the below code to append time stamp to my file name

import shutil 
stime = time.strftime("%x,%X")
print stime
img = Screen(0).capture(11,30,1888,995).getFile()
shutil.move(img, 'C:\Sikuli\ManApp scripts\Imagelogs\MI' + stime + '.png')


When i execute the above code i get the following error :

[error] IOError ( [Errno 13] Permission denied: 'C:\\Sikuli\\ManApp 
scripts\\Imagelogs\\MI09/21/17,10:48:28.png' )
[error] --- Traceback --- error source first line: module ( function ) 
statement 71: shutil ( copyfile ) IOError: [Errno 13] Permission denied: 
'C:\\Sikuli\\ManApp scripts\\Imagelogs\\MI09/21/17,10:48:28.png'
301: shutil ( move ) File "C:\Sikuli\sikulix.jar\Lib\shutil.py", line 130, in 
copy2
[error] --- Traceback --- end --



I have tried using this which works , but  need a better format for date and 
time so used the above method:

shutil.move(img, '/Users/Log/img_' + str(time.time()) + '.png')


Please help.
Thanks in advance

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #655742]: Traceback --- error seen when trying to capture and store image using shutil

2017-08-11 Thread Test App
Question #655742 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/655742

Status: Answered => Solved

Test App confirmed that the question is solved:
Thanks masuo, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #655742]: Traceback --- error seen when trying to capture and store image using shutil

2017-08-10 Thread Test App
New question #655742 on Sikuli:
https://answers.launchpad.net/sikuli/+question/655742

Hi  

I have used the below code to capture and store an Image

img = Screen(0).capture(27,170,963,159)
import shutil
shutil.move(img,"C:\\Sikuli\\test1.png")
import os.path
shutil.move(img,os.path.join(getBundlePath()),"test.png")


And this is the error i get

TypeError ( coercing to Unicode: need string, org.sikuli.script.ScreenImage 
type found )
[error] --- Traceback --- error source first line: module ( function ) 
statement 293: shutil ( move ) File "C:\Sikuli\sikulix.jar\Lib\shutil.py", line 
293, in move


Please tell me what to do to remove this erroe



-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #634573]: How to call same image multiple times

2017-06-01 Thread Test App
Question #634573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/634573

Status: Answered => Solved

Test App confirmed that the question is solved:
Hi ,

Thanks masuo, Roman and JayG for the reply

@Roman  : Your solution solved my question . Thank you

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #634573]: How to call same image multiple times

2017-06-01 Thread Test App
Question #634573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/634573

Test App confirmed that the question is solved:
Thanks Roman Podolyan, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #637031]: Unable to run sikuli script with robo class from main script

2017-05-31 Thread Test App
Question #637031 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/637031

Test App confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #637031]: Unable to run sikuli script with robo class from main script

2017-05-31 Thread Test App
Question #637031 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/637031

Status: Answered => Solved

Test App confirmed that the question is solved:
Hi RaiMan,

Thank you so much . I am sorry i was careless earlier :( .

I am able to run scripts one after the other by giving the following
command in cmd

runsikulix.cmd -r sikuli.com:scripts/Sample1 ./Sample2

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #638118]: Fatal error System.out is broken is displayed when i try to run my sikuli script from the Command prompt or batch file

2017-05-31 Thread Test App
New question #638118 on Sikuli:
https://answers.launchpad.net/sikuli/+question/638118

Hi,

I get the following error when i run my scripts from the command prompt or 
batch file

"System.out is broken(console output)! You will not see any messages 
anymore!Save your work and restart the IDE!"
OK button


Unless i click the OK button , my second script in the batch file is not 
executed . Please help me on how to remove this error.

I want to run my scripts overnight , so with this pop up all my scripts cannot 
be executed one after the other

Please help.
Thanks in Advance!

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #637031]: Unable to run sikuli script with robo class from main script

2017-05-31 Thread Test App
Question #637031 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/637031

Status: Answered => Open

Test App is still having a problem:
Hi RaiMain,

Thank you for the reply.

I tried executing the below command from command prompt , But nothing
happens. Sikuli is not initalised

Commands execute on Command prompt to run Multiple scripts:


C:\Sikuli\Scripts>sikulix.jar -r Sample1./Sample2


So is this correct to run multiple scripts

When i ran 
C:\Sikuli\Scripts>sikulix.jar -r Sample1

My Sample1 executed just fine , but when i try to run Sample 2 after Sample 1
I cannot to do it with C:\Sikuli\Scripts>sikulix.jar -r Sample1./Sample2


I am new to Sikuli and learning how to use it .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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #637031]: Unable to run sikuli script with robo class from main script

2017-05-31 Thread Test App
Question #637031 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/637031

Status: Answered => Open

Test App is still having a problem:
Hi Masuo ,

Thank you for the reply .
What i mean by Main script is the script which contains the test names of all 
the other scripts.
Say i want to run multiple scripts one after the other i use the following code

### Main script code###

import Script1
import Script2
import Script3

###End of main script###

When i run this main script all my test cases should be executed one
after the other.This is what is expected . But my code throws an error
saying  Unable to find keywords .So how do i call multiple robo scripts
in my main script without any errors

###Below is my Script 1 code###

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")

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #637031]: Unable to run sikuli script with robo class from main script

2017-05-30 Thread Test App
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 Setuplaunch 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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #634530]: How to run a sikuli script which has spaces in the script name

2017-05-29 Thread Test App
Question #634530 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/634530

Status: Answered => Solved

Test App confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #634530]: How to run a sikuli script which has spaces in the script name

2017-05-25 Thread Test App
New question #634530 on Sikuli:
https://answers.launchpad.net/sikuli/+question/634530

Hi Rai Man,

I am trying to run my sikuli scripts from the main script.

#This is my main script

import Script Workflow 1
import Script Workflow 2

My script names have spaces and so sikuli is not able to execute my main script.

My scripts run if i remove spaces from the file name (Ex: If the script is 
written as shown below they run)

#This is my main script

import ScriptWorkflow1
import ScriptWorkflow2



Please let me know how to run scripts which have spaces in their name 

Please help Raiman

Thanks.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #632251]: How to create new Keywords on Roboframework integrated with Sikuli

2017-05-18 Thread Test App
Question #632251 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/632251

Status: Answered => Solved

Test App confirmed that the question is solved:
Hi RaiMan and Masuo,


Thank you so much
I am now able to generate a proper html report with new Keywords name and 
Library name 

Thank you for all the patience

Regards,
Saketha

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #632251]: How to create new Keywords on Roboframework integrated with Sikuli

2017-05-18 Thread Test App
Question #632251 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/632251

Status: Answered => Open

Test App is still having a problem:
Hi RaiMan,

Thank you for the reply .My script works much better now with less
errors . But my major issue is the html report says " Test case contains
no keywords. " and the following errors below

"ERROR
Error in file 'C:\Users\E4D 
User\Documents\LoginLibrary.sikuli.robot\LoginLibrary.robot': Non-existing 
setting 'Library C:/Users/E4D 
User/Documents/LoginLibrary.sikuli.robot/LoginLibrary.py'.

20170518 11:40:30.674 
WARN
Multiple test cases with name 'start App' executed in test suite 'LoginLibrary'.

20170518 11:40:30.674 
WARN
Multiple test cases with name 'verify App' executed in test suite 
'LoginLibrary'.


So this is my setup :

JRE 8
 Installed SikuliX 1.1.1
Jython 2.7.0
---Python 2.7.13


Since you said robot is bundled with sikuli i did not download and install robo 
jar.I have executed the below script .
But my robo report always fails .Please let me know hot to execute this script 
with a sucessfull report

runScript("""
robot
***Settings***
Library ./inline/LoginLibrary

***Test Cases***
Verify that 2 + 2 = 4
 start App
 verify App

Verify that 2 + 2 = 5
 start App
 verify App
""")

class LoginLibrary(object):
def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)

def start_App(self):
calcApp = App("Calculator")
if not calcApp.window():
App.open("calc.exe");
wait(2)
calcApp.focus();
wait(1)
def verify_App(self):
if exists ("CalcApp.png"):
print("Calc window appeared")
else:
print("No Calc window")


Please help Raiman

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #632251]: How to create new Keywords on Roboframework integrated with Sikuli

2017-05-18 Thread Test App
Question #632251 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/632251

Status: Answered => Open

Test App is still having a problem:
Hi Masuo,

I have corrected the code as below and tried to run it . I get the same error 
saying "No keyword with name 'Start App' found"
Please tell me if i have to add something else.


runScript("""
robot
***Settings***
Library ./inline/LoginLibrary

***Test Cases***
Verify that 2 + 2 = 4
start App
verify App


Verify that 2 + 2 = 5
start App
verify App
""")


class LoginLibrary(object):

def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)

def start_App(self):
calcApp = App("Calculator")
if not calcApp.window():
App.open("calc.exe");
   wait(2)
   calcApp.focus();
wait(1)

def verify_App(self):
if exists ("CalcApp.png"):
print("Calc window appeared")
else:
print("No Calc window")

def runTest(self):
self.start_App()
self.verify_App()
if __name__ == "__main__":
calc = LoginLibrary()
calc.runTest()

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #632251]: How to create new Keywords on Roboframework integrated with Sikuli

2017-05-17 Thread Test App
Question #632251 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/632251

Status: Answered => Open

Test App is still having a problem:
Hi ,

Thankyou Masuo and Roman

Yes, i did read a lot of docs and also tried understandig the tabular
syntax of Robo framework.

I am trying to create my own library and have my own keywords,

I have executed the following script :


runScript("""
robot
***Settings***
Library  calc.LoginLibrary  WITH NAME  Calculator

***Test Cases***
Verify that 2 + 2 = 4
Start App
Verify App


Verify that 2 + 2 = 5
Start App
Verify App
""")


class LoginLibrary(object):

def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)

def startApp(self):
calcApp = App("Calculator")
if not calcApp.window():
App.open("calc.exe");
wait(2)
calcApp.focus();
wait(1)

def verifyApp(self):
if exists ("CalcApp.png"):
print("Calc window appeared")
else:
print("No Calc window")

def runTest(self):
self.startApp()
self.verifyApp()
if __name__ == "__main__":
calc = LoginLibrary()
calc.runTest()



In the html report it says  "No keyword with name 'Start App' found"

How do i create my own library and keyword? 
Can you please give me a sample script on how to create my own  library and 
keywords and in which folder do i place theese scripts 


I tried reading a lot of documentation but still need help.
Please help


Thank you

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #632251]: How to create new Keywords on Roboframework integrated with Sikuli

2017-05-12 Thread Test App
New question #632251 on Sikuli:
https://answers.launchpad.net/sikuli/+question/632251

Hi RaiMan,

I am new to SikuliX and learning to write scripts in Sikuli integrated with 
Robo famework.I have read your doc on using Robot framework with Sikuli 
.(http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframework)

I have executed the example you have given and it works great and i can 
generate the report. I am trying to implement the same on excuting my test 
cases.

Buy when i try to run my case it says "Non-existing setting 'Library " and 
"Test case contains no Keywords" . From your doc it has been mentioned that 
except for setting up Sikulix we do not have to do anything else for 
Roboframework integration.

Please let me know 

1. How to set up  new Keywords
2.Do i have to download Robot IDE or anything else.

I Know this is a very basic question , but i am unable to find an answer and 
overcome the Issue

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #631831]: Unable to run sikuli script from command line

2017-05-09 Thread Test App
Question #631831 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/631831

Status: Open => Solved

Test App confirmed that the question is solved:
Hi RaiMan,


It Worked fine. I typed it wrong.

Thank you.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #631831]: Unable to run sikuli script from command line

2017-05-09 Thread Test App
Question #631831 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/631831

Status: Needs information => Open

Test App gave more information on the question:

SikuliX Version : 1.1.1

Windows : 10

Java : 8

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #631831]: Unable to run sikuli script from command line

2017-05-09 Thread Test App
Question #631831 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/631831

Status: Answered => Open

Test App is still having a problem:
Okay Thank you RaiMan

So i ran this with spaces

C:\Sikuli\runsikulix.cmd -r C:\Sikuli\Calc.sikuli

and now it shows no error , My Sikuli IDE opens but the script does not
run

This is same as C:\Sikuli\runsikulix.cmd

What should i do to make my script run from command promt

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #631831]: Unable to run sikuli script from command line

2017-05-09 Thread Test App
New question #631831 on Sikuli:
https://answers.launchpad.net/sikuli/+question/631831

Hi,

I am new to Sikuli. I am facing an issue with running a Sikuli script from 
command prompt.

In Command prompt i type C:\Sikuli\runsikulix.cmd , the Sikuli Ide opens up

But when i try to run a script from the command line with the below command

C:\Sikuli\runsikulix.cmd-rC:\Sikuli\Calc.sikuli

It says The filename,directory name or volume label syntax is incorrect

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #629665]: Sikuli does no detect app icons

2017-04-28 Thread Test App
Question #629665 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/629665

Test App confirmed that the question is solved:
Thanks masuo, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #629665]: Sikuli does no detect app icons

2017-04-28 Thread Test App
Question #629665 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/629665

Status: Answered => Solved

Test App confirmed that the question is solved:
Hi Masuo ,

Your idea worked out great . I accessed my application through a remote desktop 
and then executed all the Sikuli actions on the remote screen and it worked 
like magic
Thank you so much

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #629665]: Sikuli does no detect app icons

2017-04-27 Thread Test App
New question #629665 on Sikuli:
https://answers.launchpad.net/sikuli/+question/629665

Hi,

I am trying to automate my desktop app using sikuli . The app takes over the 
entire screen once it gets started ,there is no taskbar,i have no option to  
minimize or maximum.The mouse icon also changes as the app is launched

I am only able to launch the app using sikuli but unable to click anything on 
the app

Please help

Thanks

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp