← Back to team overview

sikuli-driver team mailing list archive

[Question #657828]: SikuliX test report name with Timestamp

 

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

How to save SikuliX Test Report file as "Filename+TimeStamp" using HtmlTestRunner. I want filename of report with name and timestamp. Which code shall I write in SikuliX script?

I have written following code but not working:
------------------------------------------------------------------------------------------------------------------------------------------------
#Gets the timestamp as an argument to the sikuli via batch and suffixes to the test report

datearg = ""
parms = sys.argv [1:]
print parms
for i in range (len(parms)):
       datearg = parms[i]
fp = file(os.path.join(dir, "testReport_"+datearg+".html"), "wb") #output HTML file
------------------------------------------------------------------------------------------------------------------------------------------------


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