• Class rename: MobilePreTest → MobileTests

• New method added: RunFinalTestAsync() - Performs final mobile tests including SSH verification of setup files
• Calls SSH.MobiletxtCheck() to verify /home/mav/Mobile-Setup-configuration-marker.txt exists on device
• Updates UI with "MobileSetup.sh" pass/fail status
• Mobile Tests/Mobile API.cs (New File Created)
New Method Added: MobiletxtCheck(string IPAddress) - Boolean method to verify setup marker file
• Checks if /home/mav/Mobile-Setup-configuration-marker.txt exists on device via SSH
• Returns exit status 0 (true) if file exists, false otherwise
• Used in RunFinalTestAsync() for setup verification
This commit is contained in:
2026-01-14 11:49:32 +00:00
parent a4c51b0af0
commit 4c74e237c2
3 changed files with 37 additions and 8 deletions

View File

@@ -201,7 +201,7 @@ namespace AiQ_GUI
}
else if (CbBxCamType.Text == "Mobile")
{
await PreTestPassed();
await MobileTests.RunFinalTestAsync();
}
}
@@ -218,7 +218,7 @@ namespace AiQ_GUI
}
else if (CbBxCamType.Text == "Mobile")
{
await MobilePreTest.RunPreTestAsync();
await MobileTests.RunPreTestAsync();
await PreTestPassed();
}
}
@@ -1452,13 +1452,14 @@ namespace AiQ_GUI
//StatsExcel excelExporter = new();
//excelExporter.ExportDatabaseToExcel();
//await MobilePreTest.CheckFirmwareAsync();
FlexiAPI.GetVersions(CamOnTest.IP).Wait();
//await MobileTests.CheckFirmwareAsync();
//FlexiAPI.GetVersions(CamOnTest.IP).Wait();
//VLC.Play(VidView);
//await Task.Delay(5000);
//VLC.TakeSnapshot(VidView);
SSH.MobiletxtCheck("100.118.196.113");
// await MobileAPI.SetDayModeAsync();
// await MobileAPI.SetDayModeAsync();
AddToActionsList("RunTime " + stopWatchTest.Elapsed.ToString(@"hh\:mm\:ss\.ff"), Level.LOG);
}