+
+
+
+
+
+ = $languageService->translate('test_capture') ?>
+
+
+captureCmds as $index => $command) {
+ // Set filename for each test command
+ $test->fileName = sprintf('test-%d.jpg', $index + 1);
+ $test->tmpFile = $test->tmpFolder . DIRECTORY_SEPARATOR . $test->fileName;
+
+ $test->addLog('debug', 'Executing Command #' . ($index + 1), ['command' => $command]);
+
+ // Execute the command
+ $test->executeCmd($command);
+
+ foreach ($test->logData as $log) {
+ $level = htmlspecialchars($log['level']);
+ $message = htmlspecialchars($log['message']);
+ $context = htmlspecialchars(json_encode($log['context'], JSON_PRETTY_PRINT));
+
+ echo '
+
' . strtoupper($level) . '
+
' . $message . '
+
+
';
+ }
+ echo '
';
+ $test->logData = [];
+}
+
+?>
+