MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / autotesterLaunch

Method autotesterLaunch

gui/qt/mainwindow.cpp:2199–2228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2197}
2198
2199void 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
2230void MainWindow::autotesterTested(int status) {
2231 autotesterErr(status);

Callers

nothing calls this directly

Calls 3

guiDelayFunction · 0.85
testMethod · 0.80
sendFilesMethod · 0.45

Tested by

no test coverage detected