sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30841
[Question #263170]: /sikuli-ide.exe -r Not Running script as expected
New question #263170 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263170
Please I really need assistance with this, I am going to try my best to explain what is happening when I execute my script from command line.
I am including a snippet from my code so that it is an most accurate description of the issue.
results = ("Null")
title = "Calling Home"
def exeCmd(title, cmd):
App.open('CMD /k start \"'+title+'\" '+cmd)
cnt =0
try:
type(Key.WIN)
sleep(1)
type("firefox ***URL to Citrix Portal")
sleep(1)
type(Key.ENTER)
sleep(8)
# Need to put this to a wait command.
wait(Pattern("1424293137861.png").similar(0.50),60)
click("1424293425193.png")
type("Username")
type(Key.TAB)
type("Password")
type(Key.ENTER)
wait(Pattern("1424293565384.png").similar(0.60),40)
cnt = 1
click(Pattern("1425405793453.png").similar(0.60))
wait(Pattern("1424293956426.png").similar(0.60),45)
cnt = 2
sleep(2)
except:
sleep(2)
print("End Posting Results")
if cnt == 0:
print("Failed to Run")
results = ("Failed at WebPortal Login")
elif cnt == 1:
print("Login worked, failed at application selection")
results = ("Login worked, failed at application selection")
elif cnt == 2:
print("Application Failed at Last Lines")
results =("Login and application test corrected")
else:
print("It has Failed Jim")
dir="C:\\users\\****\\output_"
f = open(dir+'results.txt','w')
f.write(results) # python will convert \n to os.linesep
f.close()
#
if cnt < 2:
exeCmd("Email Push Of Results", "C:\\Users\\****\\send\\email.bat")
print("An email with the Results have been Sent to the Zendesk Portal")
else:
print(results)
print("Results have not been sent to view results file if you feel an error has taken place.")
#Application Close out
exeCmd("Email Push Of Results", "C:\\Users\\eabraham2\\send\\reset.bat")
C:\Program Files (x86)\Sikuli X>Sikuli-IDE.bat -r "C:\Users\*****\Desktop\Sc
ript\**** Citrix login.sikuli"
The system cannot find the path specified.
C:\Program Files (x86)\Sikuli X>"C:\Program Files (x86)\Sikuli X\Sikuli-IDE.exe"
-r"C:\Users\*****\Desktop\Script\***** Citrix login.sikuli"
When I run this from the command line it just fails to try any of the command after try it just fails and calls the bat file to report a failure.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.