doc:user:results:testsuitechecker
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:user:results:testsuitechecker [2013/07/12 18:47] – created joris | doc:user:results:testsuitechecker [2018/08/29 13:57] (current) – [TestSuiteChecker] laruelle | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== TestSuiteChecker ====== | ||
+ | L' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | Les sorties '' | ||
+ | |||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | ===== Classe PythonTestCheck ===== | ||
+ | |||
+ | Il est possible de faire appel à des fonctions matlab de post-traitement à la fin de l' | ||
+ | |||
+ | Exemple : | ||
+ | < | ||
+ | class ReadMatlabLog(PythonTestCheck): | ||
+ | def __init__(self): | ||
+ | PythonTestCheck.__init__(self) | ||
+ | def __del__(self): | ||
+ | print " | ||
+ | print " | ||
+ | raw_input('' | ||
+ | exit(1) | ||
+ | def eval(self): | ||
+ | inirep = os.getcwd() | ||
+ | moutfile = os.path.abspath(os.path.join(" | ||
+ | | ||
+ | fm = open(moutfile,' | ||
+ | lines = fm.readlines() | ||
+ | for i in lines: | ||
+ | if (' | ||
+ | print i | ||
+ | fm.close() | ||
+ | </ | ||
+ | |||
+ | Pour faire appel à **ReadMatlabLog** a la fin de l' | ||
+ | |||
+ | testSuite = metafor.getTestSuiteChecker() | ||
+ | testSuite.checkPythonTestCheck(ReadMatlabLog()) | ||
+ | | ||
+ | On trouvera plus d' |