sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45403
[Question #662882]: how to create .bat file to run sikuli script , program language is python
New question #662882 on Sikuli:
https://answers.launchpad.net/sikuli/+question/662882
hi ,all
here is my code:
def subMain(self):
fName = 'proc'
#print detailed error log information
logMsg = 'Class[%(cName)s] Function[%(fName)s] is start.' %{'cName': self.CNAME, 'fName': fName}
self.mylog.write_log("subMain start")
#execute function
SikuliBaseClass.stepExecute(self, self.getParameter)
SikuliBaseClass.stepExecute(self, self.copyWorkFile)
SikuliBaseClass.stepExecute(self, self.renameFile)
SikuliBaseClass.stepExecute(self, self.updTime)
SikuliBaseClass.stepExecute(self, self.openSAP)
SikuliBaseClass.stepExecute(self, self.sMICM)
SikuliBaseClass.stepExecute(self, self.dbADmin)
#print detailed error log information
logMsg = 'Class[%(cName)s] Function[%(fName)s] is end.' %{'cName': self.CNAME, 'fName': fName}
self.mylog.write_log("subMain end")
# 終了関数
#fixed code
def end(self):
fName = 'end'
#print detailed error log information
logMsg = 'Class[%(cName)s] Function[%(fName)s] is start.' %{'cName': self.CNAME, 'fName': fName}
self.mylog.write_log(logMsg)
#print detailed error log information
logMsg = 'Class[%(cName)s] Function[%(fName)s] is end.' %{'cName': self.CNAME, 'fName': fName}
self.mylog.write_log(logMsg)
task = testforNWP()
task.subMain()
now i want to run this script in bat, could you please tell me how to do it ?
thank you so much
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.