/sikuli-ide.exe -r Not Running script as expected
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(
click(
type(
type(Key.TAB)
type(
type(Key.ENTER)
wait(
cnt = 1
click(
wait(
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(
results =("Login and application test corrected")
else:
print("It has Failed Jim")
dir="C:
f = open(dir+
f.write(results) # python will convert \n to os.linesep
f.close()
#
if cnt < 2:
exeCmd("Email Push Of Results", "C:\\Users\
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\
C:\Program Files (x86)\Sikuli X>Sikuli-IDE.bat -r "C:\Users\
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:\
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.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Easley Abraham for more information if necessary.