Test-WiFiAnalyzer.ps1
|
# WiFiAnalyzer Module Test Script # This script tests key functions and aliases of the WiFiAnalyzer module Write-Host "=== WiFiAnalyzer Module Test ===" -ForegroundColor Cyan # Import the module (assumes local path) Import-Module "$PSScriptRoot\WiFiAnalyzer.psm1" -Force # Test: List available commands Write-Host "Available commands:" -ForegroundColor Yellow Get-Command -Module WiFiAnalyzer | Format-Table Name, CommandType # Test: List available aliases Write-Host "Available aliases:" -ForegroundColor Yellow Get-Alias | Where-Object { $_.Definition -like '*WiFiAnalyzer*' } | Format-Table Name, Definition # Test: Run main GUI alias Write-Host "Testing Show-WiFiAnalyzerGUI (should launch GUI)..." -ForegroundColor Green Show-WiFiAnalyzerGUI # Test: Run main entry point Write-Host "Testing Start-WiFiAnalyzer (should launch GUI)..." -ForegroundColor Green Start-WiFiAnalyzer # Test: Scan WiFi networks Write-Host "Testing Get-WiFiScan..." -ForegroundColor Green $networks = Get-WiFiScan Write-Host "Networks found: $($networks.Count)" $networks | Format-Table SSID, Signal, Channel, Security # Test: Get MAC address Write-Host "Testing Get-MACAddress..." -ForegroundColor Green $mac = Get-MACAddress Write-Host "MAC Address: $mac" # Test: Get connected SSID Write-Host "Testing Get-ConnectedSSID..." -ForegroundColor Green $connected = Get-ConnectedSSID Write-Host "Connected SSID: $($connected.SSID)" Write-Host "Connected BSSID: $($connected.BSSID)" Write-Host "=== WiFiAnalyzer Module Test Complete ===" -ForegroundColor Cyan |