Wlan L2 Test 02 - Connect to a WPA2 PSK AES AP (strict)

This automated test creates a wireless profile that uses the values that are provided in the two parameters and connects to that network.

Test details

Windows 10 Mobile (x86)
Windows 10 Client (x86)
Windows 10 Client (x64)
Windows 10 Mobile (ARM)
Windows 10 Mobile (ARM64)
Expected run time (in minutes)3
Timeout (in minutes)0
Requires rebootfalse
Requires special configurationtrue


Running the test

Before you run the test, complete the test setup as described in the test requirements: Wireless LAN (802.11) Testing Prerequisites. Make sure that device has been enabled, drivers are properly installed, and the device is properly inserted.

The test does the following:

  • Connect to the specified wireless network by using the created profile.

  • If the driver does not return a connection success message in four seconds, the test fails.

  • If there is a connection failure, the test fails.

  • Wait for up to 45 seconds for the Windows NLM to return network connected status (this waits for DHCP assignment).

  • Choose a target IPv4 address from either the DHCP server on the network or the default gateway (the DHCP server has priority).

  • Send an ICMP message to the target IPv4 address and expect success.

  • Connect to port 80 of the target address and expect either a HTTP 401 challenge or HTTP 200 success.

  • Failure to ping target address or connect to port 80 of target address results in a test failure.


For troubleshooting information, see Troubleshooting Wireless LAN (802.11) Tests.

Make sure that the following are true:

  • The specified SSID is within range of the device

  • The specified password is correct.

  • The target IP address can be pinged.

  • The target IP address is running a web server.

Most home routers (including routers that are specified in the Windows Hardware Certification Kit (Windows HCK) WLAN setup) will satisfy these requirements.

More information

Command syntax



The SSID of a WPA2_PSK_AES network to connect to.


The password for the WPA2_PSK network.



Parameter nameParameter description
DQSDEL Device Query
queryTestDeviceIDDevice id of device under test
WPA2_PSK_PasswordPassword for WPA2_PSK network
WPA2_PSK_AES_SSIDSSID of a WPA2_PSK_AES network to connect to (MUST be WPA2 PSK AES)