Test-AllWiFiAnalyzer.ps1
|
# WiFiAnalyzer Automated Function Test Script # This script tests all manifest-listed functions and aliases for basic execution and output Import-Module "$PSScriptRoot\WiFiAnalyzer.psm1" -Force Write-Host "=== WiFiAnalyzer Function Test ===" -ForegroundColor Cyan # Aliases Write-Host "Testing Aliases..." -ForegroundColor Yellow Scan-WiFi Show-WiFiAnalyzerGUI WiFi-Analyzer # Functions Write-Host "Testing Functions..." -ForegroundColor Yellow Export-WiFiAnalyzerCSVReport -FilePath "$PSScriptRoot\test.csv" -networks @() Export-WiFiAnalyzerFullReport -OutputFormat 'CSV' -OutputPath "$PSScriptRoot\test_full.csv" -networks @() Export-WiFiAnalyzerHTMLReport -FilePath "$PSScriptRoot\test.html" -networks @() -mac "00:00:00:00:00:00" -recommendedChannels @{} -computerName "TestPC" -ipAddress "127.0.0.1" -userInfo @{} -connectedSSID "TestSSID" -connectedBSSID "00:00:00:00:00:00" -speedTest @{} -congestionData @{} Get-ConnectedSSID Get-MACAddress Get-MainWiFiAnalyzerForm Get-UserPreference Get-WiFiAdapterDetails Get-WiFiScan Set-UserPreference -preference "TestPref" Show-StartupChoiceDialog Show-WiFiReportInfoForm Start-GuidedSetup Start-QuickStart Start-WiFiAnalyzer Start-WiFiAnalyzerAll Start-WiFiAnalyzerDirect Test-ChannelCongestion -networks @() Write-Host "All manifest-listed functions and aliases tested. Check for errors above." -ForegroundColor Green |