specRepo = cf._greenpeppergp.getAllSpecificationRepositories()[6];
sut = cfgp._greenpepper.getSystemUnderTestsOfProject('GREENPEPPERDEMO')[4];
doctree = cf._greenpeppergp.getSpecificationHierarchy(specRepo, sut);
# How do we visit this result ?
def visit(node):
yield node[0],node[1]
for child in node[3].values():
for name, executable in visit(child):
yield name, executable
i=0
for pageName, executable in visit(doctree):
# I want only the executable ones
if executable == True:
i+=1
print "[%s][%s] %s "% (i,executable,pageName) |