36 @param executorClass class implementing the test framework executor |
36 @param executorClass class implementing the test framework executor |
37 @type UTExecutorBase |
37 @type UTExecutorBase |
38 """ |
38 """ |
39 self.__frameworks[executorClass.name] = executorClass |
39 self.__frameworks[executorClass.name] = executorClass |
40 |
40 |
41 def createExecutor(self, framework, widget, logfile=None): |
41 def createExecutor(self, framework, widget): |
42 """ |
42 """ |
43 Public method to create a test framework executor. |
43 Public method to create a test framework executor. |
44 |
44 |
45 Note: The executor classes have to be registered first. |
45 Note: The executor classes have to be registered first. |
46 |
46 |
47 @param framework name of the test framework |
47 @param framework name of the test framework |
48 @type str |
48 @type str |
49 @param widget reference to the unit test widget |
49 @param widget reference to the unit test widget |
50 @type UnittestWidget |
50 @type UnittestWidget |
51 @param logfile file name to log test results to (defaults to None) |
|
52 @type str (optional) |
|
53 @return test framework executor object |
51 @return test framework executor object |
|
52 @rtype UTExecutorBase |
54 """ |
53 """ |
55 cls = self.__frameworks[framework] |
54 cls = self.__frameworks[framework] |
56 return cls(widget, logfile=logfile) |
55 return cls(widget) |
57 |
56 |
58 def getFrameworks(self): |
57 def getFrameworks(self): |
59 """ |
58 """ |
60 Public method to get a copy of the registered frameworks. |
59 Public method to get a copy of the registered frameworks. |
61 |
60 |