| 2197 | } |
| 2198 | |
| 2199 | void MainWindow::autotesterLaunch() { |
| 2200 | if (!autotester::configLoaded) { |
| 2201 | autotesterErr(-1); |
| 2202 | return; |
| 2203 | } |
| 2204 | |
| 2205 | if (ui->checkBoxTestReset->isChecked()) { |
| 2206 | resetEmu(); |
| 2207 | guiDelay(4000); |
| 2208 | } |
| 2209 | |
| 2210 | if (ui->checkBoxTestClear->isChecked()) { |
| 2211 | sendEmuKey(CE_KEY_CLEAR); |
| 2212 | } |
| 2213 | |
| 2214 | QStringList filesList; |
| 2215 | for (const auto &file : autotester::config.transfer_files) { |
| 2216 | filesList << QString::fromStdString(file); |
| 2217 | } |
| 2218 | |
| 2219 | sendingHandler->sendFiles(filesList, LINK_FILE); |
| 2220 | equatesRefresh(); |
| 2221 | while (guiSend) { |
| 2222 | guiDelay(10); |
| 2223 | } |
| 2224 | |
| 2225 | // Follow the sequence |
| 2226 | ui->buttonLaunchTest->setEnabled(false); |
| 2227 | emu.test(ui->JSONconfigPath->text(), true); |
| 2228 | } |
| 2229 | |
| 2230 | void MainWindow::autotesterTested(int status) { |
| 2231 | autotesterErr(status); |