← Back to team overview

sikuli-driver team mailing list archive

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

 

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

    Status: Open => Answered

dinev proposed the following answer:
import datetime

timeStamp = datetime.datetime.now().strftime("%m%d%H%M%S")

fp = file(os.path.join(dir, "testReport_" + timeStamp +".html"), "wb")
#output HTML file

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