| 162 | } |
| 163 | |
| 164 | void TestController::startAutoTest() |
| 165 | { |
| 166 | if (_stopAutoTest) |
| 167 | { |
| 168 | _stopAutoTest = false; |
| 169 | _logIndentation = ""; |
| 170 | |
| 171 | _autoTestRunner = Node::create(); |
| 172 | _director->setNotificationNode(_autoTestRunner); |
| 173 | |
| 174 | auto action = ActionCoroutine::create(std::bind(&TestController::traverseTestList, this, _rootTestList)); |
| 175 | |
| 176 | _autoTestRunner->runAction(action); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void TestController::stopAutoTest() |
| 181 | { |