This function add the passed test cases in list i.e. TextTestResult.passed :param self:TextTestResult class :type self: TextTestResult object :param test: test case :type test: test case object :return: None
(self, test)
| 1109 | |
| 1110 | # This method is overridden to catch passed test cases |
| 1111 | def add_success(self, test): |
| 1112 | """ |
| 1113 | This function add the passed test cases in list i.e. TextTestResult.passed |
| 1114 | :param self:TextTestResult class |
| 1115 | :type self: TextTestResult object |
| 1116 | :param test: test case |
| 1117 | :type test: test case object |
| 1118 | :return: None |
| 1119 | """ |
| 1120 | if self.showAll: |
| 1121 | self.passed.append((test, "Passed")) |
| 1122 | self.stream.writeln("ok") |
| 1123 | elif self.dots: |
| 1124 | self.stream.write('.') |
| 1125 | self.stream.flush() |
| 1126 | |
| 1127 | |
| 1128 | def get_scenario_name(cases): |