fix following test case bugs:

1. (^)TCPIP_DHCP_0101, (^)TCPIP_DHCP_0301: IDF set IP 0.0.0.0 may return error, don't check the result of setting IP to 0.0.0.0;
2. rename (^)TCPIP_DHCP_0102 to (^)TCPIP_DHCP_0212 as it's a DHCP server test case;
3. (^)TCPIP_TCP_0204,(^)TCPIP_TCP_0210,(^)TCPIP_UDP_0201,(^)TCPIP_UDP_0202: recv thread can't be deleted, change case to not create recv thread when create socket ;
4. (^)TCPIP_TCP_0206,(^)TCPIP_TCP_0212:  query TCP server status format changed.
5. WIFI_SCAN_0301: check command error and test environment not correct
6. WIFI_SCAN_0302, WIFI_SCAN_0303, WIFI_SCAN_0304: test environment not correct
This commit is contained in:
Yinling 2016-10-19 15:16:47 +08:00
parent 3f521c4afa
commit de7b2f5a09

View file

@ -87,7 +87,7 @@ test cases:
- - SSC SSC1 dhcp -E -o 1
- ['R SSC1 C +DHCP:STA,OK']
- - SSC SSC1 ip -S -i 0.0.0.0
- ['R SSC1 C +IP:OK']
- [R SSC1 C +IP]
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- ['']
- - DELAY 20
@ -121,54 +121,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: DHCP client function test
version: v1 (2016-8-15)
- CI ready: 'Yes'
ID: TCPIP_DHCP_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 SSC1 dhcp -E -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['']
- - DELAY 20
- [P PC_COM C +DELAYDONE, 'P SSC2 NC +JAP:CONNECTED']
- - SSC SSC1 dhcp -S -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['R SSC2 C +JAP:CONNECTED']
comment: ''
execution time: 0.0
expected result: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target\
\ 1,FAIL \n4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
initial condition: T2_1
initial condition description (auto): target 1 as SoftAP, target 2 as STA, will
autogen a TC with initial condition T2_2
level: Integration
module: TCPIP
steps: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target 1,FAIL \n\
4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
sub module: DHCP
summary: dhcp server function test
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
2 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: DHCP client function test
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_DHCP_0103
SDK: '8266_NonOS
@ -967,6 +920,53 @@ test cases:
test point 1: basic function
test point 2: DHCP server function test
version: v1 (2016-8-15)
- CI ready: 'Yes'
ID: TCPIP_DHCP_0212
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 dhcp -E -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['']
- - DELAY 20
- [P PC_COM C +DELAYDONE, 'P SSC2 NC +JAP:CONNECTED']
- - SSC SSC1 dhcp -S -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['R SSC2 C +JAP:CONNECTED']
comment: ''
execution time: 0.0
expected result: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target\
\ 1,FAIL \n4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
initial condition: T2_1
initial condition description (auto): target 1 as SoftAP, target 2 as STA, will
autogen a TC with initial condition T2_2
level: Integration
module: TCPIP
steps: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target 1,FAIL \n\
4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
sub module: DHCP
summary: dhcp server function test
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
2 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: DHCP server function test
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_DHCP_0301
SDK: '8266_NonOS
@ -987,7 +987,7 @@ test cases:
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- ['R SSC1 C +JAP:CONNECTED']
- - SSC SSC1 ip -S -i 0.0.0.0 -o 1
- ['R SSC1 C +IP:OK']
- [R SSC1 C +IP]
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- ['']
- - DELAY 10
@ -1027,7 +1027,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: interaction
test point 2: static IP and DHCP interaction test
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_DHCP_0302
SDK: '8266_NonOS
@ -3189,14 +3189,12 @@ test cases:
- ''
- - SOC SOC1 LISTEN <test_tcp_port1>
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t TCP
- - SSC SSC1 soc -B -t TCP -w 0
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -C -s <sock1> -i <pc_ip> -p <test_tcp_port1>
- ['R SSC1 RE CONNECT:\d+,OK']
- - SOC SOC1 ACCEPT SOC2
- [R SOC_COM L OK]
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC2 SEND 146000
- [P SOC_COM R *]
- - SSC SSC1 soc -W -s <sock1> -o 1
@ -3246,7 +3244,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: use TCP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_TCP_0206
SDK: '8266_NonOS
@ -3280,7 +3278,7 @@ test cases:
- ['R SSC1 A <sock4>:ACCEPT:(\d+),\d+,.+,\d+']
- - SSC SSC1 soc -I
- ['P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(<sock1>,<target_ip>,<pc_ip>,<test_tcp_port1>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d,.+,\d+"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,%%s,%%d,%%s,\d+"%%(<sock4>,<target_ip>,<random_port>,<pc_ip>)']
comment: ''
execution time: 0.0
@ -3531,14 +3529,12 @@ test cases:
- ''
- - SOC SOC1 LISTEN <test_tcp_port1> <pc_ip_wifi>
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t TCP
- - SSC SSC1 soc -B -t TCP -w 0
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -C -s <sock1> -i <pc_ip_wifi> -p <test_tcp_port1>
- ['R SSC1 RE CONNECT:\d+,OK']
- - SOC SOC1 ACCEPT SOC2
- [R SOC_COM L OK]
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC2 SEND 146000
- [P SOC_COM R *]
- - SSC SSC1 soc -W -s <sock1> -o 1
@ -3586,7 +3582,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: use TCP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_TCP_0212
SDK: '8266_NonOS
@ -3620,7 +3616,7 @@ test cases:
- ['R SSC1 A <sock4>:ACCEPT:(\d+),\d+,.+,\d+']
- - SSC SSC1 soc -I
- ['P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(<sock1>,<target_ap_ip>,<pc_ip_wifi>,<test_tcp_port1>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d,.+,\d+"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,%%s,%%d,%%s,\d+"%%(<sock4>,<target_ap_ip>,<random_port>,<pc_ip_wifi>)']
comment: ''
execution time: 0.0
@ -5119,10 +5115,8 @@ test cases:
- ''
- - SOC SOC1 BIND <test_udp_port1> <pc_ip>
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
- - SSC SSC1 soc -B -t UDP -p <test_udp_port1> -w 0
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ip>
- ['']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ip>
@ -5180,7 +5174,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: abnormal/special use
test point 2: use UDP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_UDP_0202
SDK: '8266_NonOS
@ -5198,8 +5192,8 @@ test cases:
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ap_ip>
- ['']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ap_ip>
- ['']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ap_ip>
@ -5257,7 +5251,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: abnormal/special use
test point 2: use UDP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: TCPIP_UDP_0301
SDK: '8266_NonOS
@ -7915,7 +7909,7 @@ test cases:
- - SSC SSC1 sta -S
- ['']
- - SSC SSC1 sta -S
- [P SSC1 C +SCANFAIL, 'P SSC1 P +SCAN:', R SSC1 C +SCANDONE]
- [P SSC1 C +SCANFAIL, 'P SSC1 C +SCAN:', R SSC1 C +SCANDONE]
comment: ''
execution time: 0.0
expected result: '1. second scan failed
@ -7931,14 +7925,12 @@ test cases:
2. do scan before scan finished'
sub module: WIFI Scan
summary: reject scan request before scan finished
test environment: SSC_T2_PhyMode
test environment description (auto): '2 SSC target connect with PC by UART.
test environment: SSC_T1_1
test environment description (auto): 'PC has 2 wired NIC connected to AP.
PC has one WiFi NIC support capture wlan packet using libpcap.
PC has 1 WiFi NIC.
Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
Put 4 APs near SSC targets.'
1 SSC target connect with PC by UART.'
test point 1: interaction
test point 2: Scan interact with other WiFi operation
version: v1 (2015-8-15)
@ -7987,14 +7979,12 @@ test cases:
3. target 2 scan in AP channel in 11b.g,n,ht40 mode'
sub module: WIFI Scan
summary: scan in congest channel
test environment: SSC_T2_PhyMode
test environment description (auto): '2 SSC target connect with PC by UART.
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has one WiFi NIC support capture wlan packet using libpcap.
PC has 1 WiFi NIC.
Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
Put 4 APs near SSC targets.'
2 SSC target connect with PC by UART.'
test point 1: interaction
test point 2: Scan interact with other WiFi operation
version: v1 (2015-8-15)
@ -8022,8 +8012,9 @@ test cases:
expected result: '2. scan succeed, JAP succeed
5. JAP succeed, scan succeed'
initial condition: T2_2
initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
initial condition: STAM1
initial condition description (auto): sta mode, quit AP, DHCP on, will autogen a
TC with initial condition STAAP1
level: Integration
module: WIFI MAC
steps: '1. target 1 STA join AP
@ -8037,14 +8028,12 @@ test cases:
5. target 1 JAP before scan succeed'
sub module: WIFI Scan
summary: scan during JAP
test environment: SSC_T2_PhyMode
test environment description (auto): '2 SSC target connect with PC by UART.
test environment: SSC_T1_1
test environment description (auto): 'PC has 2 wired NIC connected to AP.
PC has one WiFi NIC support capture wlan packet using libpcap.
PC has 1 WiFi NIC.
Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
Put 4 APs near SSC targets.'
1 SSC target connect with PC by UART.'
test point 1: interaction
test point 2: Scan interact with other WiFi operation
version: v1 (2015-8-15)
@ -8087,14 +8076,12 @@ test cases:
5. target 2 STA JAP before target 1 STA scan succeed'
sub module: WIFI Scan
summary: scan during ext STA join SoftAP
test environment: SSC_T2_PhyMode
test environment description (auto): '2 SSC target connect with PC by UART.
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has one WiFi NIC support capture wlan packet using libpcap.
PC has 1 WiFi NIC.
Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
Put 4 APs near SSC targets.'
2 SSC target connect with PC by UART.'
test point 1: interaction
test point 2: Scan interact with other WiFi operation
version: v1 (2015-8-15)
@ -8114,7 +8101,7 @@ test cases:
- - SSC SSC1 dhcp -E -o 1
- ['R SSC1 C +DHCP:STA,OK']
- - SSC SSC1 ip -S -i 0.0.0.0
- ['R SSC1 C +IP:OK']
- [R SSC1 C +IP]
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- ['']
- - DELAY 20
@ -8148,53 +8135,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: DHCP client function test
version: v1 (2016-8-15)
- CI ready: 'Yes'
ID: ^TCPIP_DHCP_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 SSC1 dhcp -E -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['']
- - DELAY 20
- [P PC_COM C +DELAYDONE, 'P SSC2 NC +JAP:CONNECTED']
- - SSC SSC1 dhcp -S -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['R SSC2 C +JAP:CONNECTED']
comment: ''
execution time: 0.0
expected result: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target\
\ 1,FAIL \n4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
initial condition: T2_2
initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
level: Integration
module: TCPIP
steps: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target 1,FAIL \n\
4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
sub module: DHCP
summary: dhcp server function test
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
2 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: DHCP client function test
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_DHCP_0103
SDK: '8266_NonOS
@ -8982,6 +8923,52 @@ test cases:
test point 1: basic function
test point 2: DHCP server function test
version: v1 (2016-8-15)
- CI ready: 'Yes'
ID: ^TCPIP_DHCP_0212
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 dhcp -E -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['']
- - DELAY 20
- [P PC_COM C +DELAYDONE, 'P SSC2 NC +JAP:CONNECTED']
- - SSC SSC1 dhcp -S -o 2
- ['R SSC1 C +DHCP:AP,OK']
- - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
- ['R SSC2 C +JAP:CONNECTED']
comment: ''
execution time: 0.0
expected result: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target\
\ 1,FAIL \n4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
initial condition: T2_2
initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
level: Integration
module: TCPIP
steps: "1.target1 set AP OK \n2.target1 关闭DHCP OK\n3.target2 jap target 1,FAIL \n\
4.target1 打开DHCP OK\n5.target2 jap target 1,ok"
sub module: DHCP
summary: dhcp server function test
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
2 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: DHCP server function test
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_DHCP_0301
SDK: '8266_NonOS
@ -9002,7 +8989,7 @@ test cases:
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- ['R SSC1 C +JAP:CONNECTED']
- - SSC SSC1 ip -S -i 0.0.0.0 -o 1
- ['R SSC1 C +IP:OK']
- [R SSC1 C +IP]
- - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
- ['']
- - DELAY 10
@ -9042,7 +9029,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: interaction
test point 2: static IP and DHCP interaction test
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_DHCP_0302
SDK: '8266_NonOS
@ -11199,14 +11186,12 @@ test cases:
- ''
- - SOC SOC1 LISTEN <test_tcp_port1>
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t TCP
- - SSC SSC1 soc -B -t TCP -w 0
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -C -s <sock1> -i <pc_ip> -p <test_tcp_port1>
- ['R SSC1 RE CONNECT:\d+,OK']
- - SOC SOC1 ACCEPT SOC2
- [R SOC_COM L OK]
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC2 SEND 146000
- [P SOC_COM R *]
- - SSC SSC1 soc -W -s <sock1> -o 1
@ -11254,7 +11239,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: use TCP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_TCP_0206
SDK: '8266_NonOS
@ -11288,7 +11273,7 @@ test cases:
- ['R SSC1 A <sock4>:ACCEPT:(\d+),\d+,.+,\d+']
- - SSC SSC1 soc -I
- ['P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(<sock1>,<target_ip>,<pc_ip>,<test_tcp_port1>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d,.+,\d+"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,%%s,%%d,%%s,\d+"%%(<sock4>,<target_ip>,<random_port>,<pc_ip>)']
comment: ''
execution time: 0.0
@ -11539,14 +11524,12 @@ test cases:
- ''
- - SOC SOC1 LISTEN <test_tcp_port1> <pc_ip_wifi>
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t TCP
- - SSC SSC1 soc -B -t TCP -w 0
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -C -s <sock1> -i <pc_ip_wifi> -p <test_tcp_port1>
- ['R SSC1 RE CONNECT:\d+,OK']
- - SOC SOC1 ACCEPT SOC2
- [R SOC_COM L OK]
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC2 SEND 146000
- [P SOC_COM R *]
- - SSC SSC1 soc -W -s <sock1> -o 1
@ -11592,7 +11575,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: use TCP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_TCP_0212
SDK: '8266_NonOS
@ -11626,7 +11609,7 @@ test cases:
- ['R SSC1 A <sock4>:ACCEPT:(\d+),\d+,.+,\d+']
- - SSC SSC1 soc -I
- ['P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(<sock1>,<target_ap_ip>,<pc_ip_wifi>,<test_tcp_port1>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d,.+,\d+"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,.+,\d+,.+,\d+"%%(<sock2>)', 'P SSC1 RE "SOCINFO:%%s,82,.+,%%d"%%(<sock3>,<random_port>)',
'P SSC1 RE "SOCINFO:%%s,2,%%s,%%d,%%s,\d+"%%(<sock4>,<target_ap_ip>,<random_port>,<pc_ip_wifi>)']
comment: ''
execution time: 0.0
@ -12981,10 +12964,8 @@ test cases:
- ''
- - SOC SOC1 BIND <test_udp_port1> <pc_ip>
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
- - SSC SSC1 soc -B -t UDP -p <test_udp_port1> -w 0
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ip>
- ['']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ip>
@ -13042,7 +13023,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: abnormal/special use
test point 2: use UDP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_UDP_0202
SDK: '8266_NonOS
@ -13060,8 +13041,8 @@ test cases:
- [R SOC_COM L OK]
- - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
- ['R SSC1 A <sock1>:BIND:(\d+),OK']
- - SSC SSC1 soc -W -s <sock1> -o 0
- ['R SSC1 RE WORKTHREAD:\d+,OK']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ap_ip>
- ['']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ap_ip>
- ['']
- - SOC SOC1 SENDTO 1472 <test_udp_port1> <target_ap_ip>
@ -13119,7 +13100,7 @@ test cases:
1 SSC target connect with PC by UART.'
test point 1: abnormal/special use
test point 2: use UDP SAP (socket/espconn API) in different state
version: v1 (2016-8-15)
version: v2 (2016-10-19)
- CI ready: 'Yes'
ID: ^TCPIP_UDP_0301
SDK: '8266_NonOS
@ -14652,67 +14633,3 @@ test cases:
test point 1: basic function
test point 2: scan with different config
version: v1 (2016-8-15)
- CI ready: 'Yes'
ID: ^WIFI_SCAN_0105
SDK: '8266_NonOS
8266_RTOS
ESP32_IDF'
Test App: SSC
allow fail: ''
auto test: 'Yes'
category: Function
cmd set:
- ''
- - SSC SSC1 sta -D
- ['R SSC1 C +QAP:']
- - SSC SSC1 ap -S -s <target_tmp_ssid> -p 123456789 -t 3 -h 0 -n 11
- ['R SSC1 C +SAP:OK']
- - SSC SSC2 sta -S -s <target_tmp_ssid> -b <target_ap_mac> -n 11
- [R SSC2 P <target_tmp_ssid> C +SCANDONE]
- - SSC SSC2 sta -S -s <target_ssid> -b <target_ap_mac> -n 11
- [R SSC2 NP <target_tmp_ssid> C +SCANDONE]
- - SSC SSC2 sta -S -s <target_tmp_ssid> -b ff:ff:ff:ff:ff:11 -n 11
- [R SSC2 P <target_tmp_ssid>, R SSC2 NP <target_tmp_ssid> C +SCANDONE]
- - SSC SSC2 sta -S -s <target_tmp_ssid> -b <target_ap_mac> -n 10
- [R SSC2 P <target_tmp_ssid>, R SSC2 NP <target_tmp_ssid> C +SCANDONE]
comment: ''
execution time: 0.0
expected result: '1.target1 QAP
2. target1 set AP,set ssid broad cast,set channel 11
3.target2 上查询到<target_tmp_ssid>
4.target2 上查询不到<target_tmp_ssid>
5.target2 上查询不到<target_tmp_ssid>
6.target2 上查询不到<target_tmp_ssid>'
initial condition: T2_2
initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
level: Integration
module: WIFI MAC
steps: '1.target1 QAP
2. target1 set AP,set ssid broad cast,set channel 11
3.target2 上查询到<target_tmp_ssid>
4.target2 上查询不到<target_tmp_ssid>
5.target2 上查询不到<target_tmp_ssid>
6.target2 上查询不到<target_tmp_ssid>'
sub module: WIFI Scan
summary: scan with several configs
test environment: SSC_T2_1
test environment description (auto): 'PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
2 SSC target connect with PC by UART.'
test point 1: basic function
test point 2: scan with different config
version: v1 (2016-8-15)