← Back to team overview

sikuli-driver team mailing list archive

[Question #185017]: Testsuite creation for executing test case at a time

 

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

Hi 

I used the below code to run the test case serially . However when i use this code it says syntax error .Please let me know why it is giving syntax error.

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                                         # syntax error is showing here #
print isPassAll 

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