* feat: add autoqa * chore: add auto start computer_server * chore: add ci autoqa windows * chore: add ci support for both windows and linux * chore: add ci support for macos * chore: refactor auto qa * chore: refactor autoqa workflow * chore: fix upload turn
32 lines
949 B
PowerShell
32 lines
949 B
PowerShell
#!/usr/bin/env pwsh
|
|
# Windows test runner script
|
|
|
|
param(
|
|
[string]$JanAppPath,
|
|
[string]$ProcessName,
|
|
[string]$RpToken
|
|
)
|
|
|
|
Write-Host "Starting Auto QA Tests..."
|
|
|
|
Write-Host "Jan app path: $JanAppPath"
|
|
Write-Host "Process name: $ProcessName"
|
|
Write-Host "Current working directory: $(Get-Location)"
|
|
Write-Host "Contents of current directory:"
|
|
Get-ChildItem
|
|
Write-Host "Contents of trajectories directory (if exists):"
|
|
if (Test-Path "trajectories") {
|
|
Get-ChildItem "trajectories"
|
|
} else {
|
|
Write-Host "trajectories directory not found"
|
|
}
|
|
|
|
# Run the main test with proper arguments
|
|
if ($JanAppPath -and $ProcessName) {
|
|
python main.py --enable-reportportal --rp-token "$RpToken" --jan-app-path "$JanAppPath" --jan-process-name "$ProcessName"
|
|
} elseif ($JanAppPath) {
|
|
python main.py --enable-reportportal --rp-token "$RpToken" --jan-app-path "$JanAppPath"
|
|
} else {
|
|
python main.py --enable-reportportal --rp-token "$RpToken"
|
|
}
|