esp-idf/components/idf_test/integration_test/TC_IT_WIFI_MODE.yml
2020-07-19 14:58:28 +08:00

269 lines
6.9 KiB
YAML

test cases:
- CI ready: 'Yes'
ID: WIFI_MODE_0101
SDK: |-
8266_NonOS
8266_RTOS
ESP32_IDF
Test App: SSC
allow fail: ''
auto test: 'Yes'
category: Function
cmd set:
- ''
- - SSC SSC1 ap -S -s <target_ssid> -p <target_password> -t <target_auth_enum>
- - R SSC1 C +SAP:OK
- - SSC SSC1 op -S -o 1
- - R SSC1 C +MODE:OK
- - SSC SSC1 dhcp -S -o 1
- - R SSC1 C +DHCP:STA,OK
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 RE "\+JAP:CONNECTED,%%s"%%(<ap_ssid>)
- - SSC SSC2 sta -S
- - R SSC2 NP <target_ssid> C +SCANDONE
- - SSC SSC1 sta -D
- - R SSC1 C +QAP:OK
execution time: 0.0
expected result: |-
1.target1下设置ssid 和pwd 、加密方式成功
2.修改target 1的mode 为sta mode
3.target1的dhcp打开
4.target1成功连接上AP
5.target2上不能查询到target_ssid
6.target1断开AP
initial condition: T2O_1
level: Integration
module: WIFI MAC
steps: |-
1.target1下设置ssid 和pwd 加密方式
2.修改target1的mode 为sta mode
3.target1的dhcp打开
4.target1连接AP
5.target2查询target_ssid
6.target1断开AP
sub module: WIFI Mode
summary: mode switch test (sta mode)
test environment: SSC_T2_3
test point 1: basic function
test point 2: wifi mode fucntion
version: v1 (2016-8-15)
- CI ready: 'No'
ID: WIFI_MODE_0102
SDK: |-
8266_NonOS
8266_RTOS
ESP32_IDF
Test App: SSC
allow fail: ''
auto test: 'Yes'
category: Function
cmd set:
- ''
- - SSC SSC1 ap -S -s <target_ssid> -p <target_password> -t <target_auth_enum>
- - R SSC1 C +SAP:OK
- - SSC SSC2 sta -S
- - R SSC2 P <target_ssid>
- R SSC2 C +SCANDONE
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 C +JAP:ERROR
- - SSC SSC1 sta -D
- - R SSC1 C +QAP:ERROR
execution time: 0.0
expected result: |-
1. target1 set AP
2.target 2 上查询到target_ssid
3. target1 can't join AP
4. target1 can't QAP
initial condition: T2O_1
level: Integration
module: WIFI MAC
steps: |-
1.target1下设置ssid 和pwd 加密方式
2.target 2 上查询target_ssid
3.target1 join AP
4.target1 DISCONN AP
sub module: WIFI Mode
summary: mode switch test (AP mode)
test environment: SSC_T2_3
test point 1: basic function
test point 2: wifi mode fucntion
version: v1 (2016-8-15)
- CI ready: 'No'
ID: WIFI_MODE_0103
SDK: |-
8266_NonOS
8266_RTOS
ESP32_IDF
Test App: SSC
allow fail: ''
auto test: 'Yes'
category: Function
cmd set:
- ''
- - SSC SSC1 op -S -o 3
- - R SSC1 C +MODE:OK
- - SSC SSC1 ap -S -s <target_ssid> -p <target_password> -t <target_auth_enum>
- - R SSC1 C +SAP:OK
- - SSC SSC1 dhcp -S -o 1
- - R SSC1 C +DHCP:STA,OK
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 RE "\+JAP:CONNECTED,%%s"%%(<ap_ssid>)
- - SSC SSC2 sta -S
- - R SSC2 P <target_ssid>
- R SSC2 C +SCANDONE
execution time: 0.0
expected result: |-
1.target1 change to AP mode
2.target1 set AP
3.target 1 的dhcp 打开
4.target 1 成功连接上AP
5.target 2 上查询到target_ssid
initial condition: T2O_1
level: Integration
module: WIFI MAC
steps: |-
1.target1 change to AP mode
2.target1下设置ssid 和pwd 加密方式
3.target1 的dhcp 打开
4.target1 连接AP
5.target2 上查询target_ssid
sub module: WIFI Mode
summary: mode switch test (STA+AP mode)
test environment: SSC_T2_3
test point 1: basic function
test point 2: wifi mode fucntion
version: v1 (2016-8-15)
- CI ready: 'No'
ID: WIFI_MODE_0104
SDK: All
Test App: SSC
allow fail: ''
auto test: 'Yes'
category: Function
cmd set:
- ''
- - SSC SSC1 op -S -o 0
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -Q
- - R SSC1 C +CURMODE:0
- R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 1
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -Q
- - R SSC1 C +CURMODE:1
- R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 2
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -Q
- - R SSC1 C +CURMODE:2
- R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 3
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -Q
- - R SSC1 C +CURMODE:3
- R SSC1 C +MODE:OK
execution time: 0.0
expected result: |-
1. set mode suc
2. suc
3. set mode suc
4. suc
5. set mode suc
6. suc
7. set mode suc
8. suc
initial condition: None
level: Integration
module: WIFI MAC
steps: |-
1. set target1 to NULL mode
2. check target1 mode
3. set target1 to sta mode
4. check target1 mode
5. set target1 to soft ap mode
6. check target1 mode
7. set target1 to softap+sta mode
8. check target1 mode
sub module: WIFI Mode
summary: mode switch test
test environment: SSC_T1_6
test point 1: basic function
test point 2: wifi mode fucntion
version: v1 (2016-8-15)
- CI ready: 'No'
ID: WIFI_MODE_0105
SDK: All
Test App: SSC
allow fail: ''
auto test: 'Yes'
category: Function
cmd set:
- ''
- - SSC SSC1 op -W -a stop
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 0
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -W -a start
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 1
- - R SSC1 C +MODE:OK
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 RE "\+JAP:CONNECTED,%%s"%%(<ap_ssid>)
- - SSC SSC1 sta -D
- - R SSC1 C +JAP:DISCONNECTED
- - SSC SSC1 op -S -o 0
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 1
- - R SSC1 C +MODE:OK
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 RE "\+JAP:CONNECTED,%%s"%%(<ap_ssid>)
- - SSC SSC1 sta -D
- - R SSC1 C +JAP:DISCONNECTED
- - SSC SSC1 op -W -a stop
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -S -o 3
- - R SSC1 C +MODE:OK
- - SSC SSC1 op -W -a start
- - R SSC1 C +MODE:OK
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 RE "\+JAP:CONNECTED,%%s"%%(<ap_ssid>)
- - SSC SSC1 sta -D
- - R SSC1 C +JAP:DISCONNECTED
- - SSC SSC1 op -S -o 1
- - R SSC1 C +MODE:OK
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- - R SSC1 RE "\+JAP:CONNECTED,%%s"%%(<ap_ssid>)
execution time: 0.0
expected result: |-
5. connect suc
9. connect suc
14. connect suc
17. connect suc
initial condition: None
level: Integration
module: WIFI MAC
steps: |-
1. target1 WiFi stop
2. set target1 to null mode
3. target1 WiFi start
4. set target1 to sta mode
5. target1 connect ap
6. target1 disconnect with ap
7. set target1 to null mode
8. set target1 to sta mode
9. target1 connect with ap
10. target disconnect with ap
11. target WiFi stop
12. set target1 to sta+softap mode
13. target1 WiFi start
14. target1 connect ap
15. target1 disconnect with ap
16. set target1 to sta mode
17. target connect ap
sub module: WIFI Mode
summary: wifi mode switch check test
test environment: SSC_T1_6
test point 1: wifi mode basic function
test point 2: wifi mode check fucntion
version: v1 (2016-8-15)