← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #166618]: Run multiple scripts in single go

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- This is a generalized main script, that runs the given scripts one
after another.

import os
dir = "absolute-path-to-directory-containing-the-scripts"
scripts = ["script1", "script2", "script3", "script4", "script5"]
isPassAll = {}

for script in scripts:
    isPass = False
    scriptPath = os.path.join(dir, script+".sikuli")
    setBundlePath(scriptPath)
    execfile(os.path.join(scriptPath, script+".py")
    isPassAll[script] = isPass
print isPassAll

--- to get the feedback from each step, inside the script set isPass to
True, if the test step passed, otherwise the preset of False will be
registered

hope it helps

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.