mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
test: add mesh basic function test cases
This commit is contained in:
parent
4b91c82cc4
commit
baa0b8547c
@ -1250,6 +1250,12 @@ IT_010_01:
|
||||
- ESP32_IDF
|
||||
- SSC_T5_1
|
||||
|
||||
IT_011_01:
|
||||
<<: *test_template
|
||||
tags:
|
||||
- ESP32_IDF
|
||||
- SSC_T50_1
|
||||
|
||||
IT_501_01:
|
||||
<<: *test_template
|
||||
tags:
|
||||
|
@ -7,6 +7,17 @@
|
||||
- - SSC SSC1 ram
|
||||
- - 'R SSC1 C +FREEHEAP:'
|
||||
|
||||
.MESH_INIT_COND: &MESH_INIT_COND
|
||||
test script: InitCondBase
|
||||
restore post cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 1
|
||||
- - R SSC[1-<node_num>] C MESH_NETWORK
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 3
|
||||
- - R SSC[1-<node_num>] C +MESH_CONFIG:ALL
|
||||
- - SSC SSC[1-<node_num>] ram
|
||||
- - R SSC[1-<node_num>] A <heap_size>:(\d+)
|
||||
|
||||
initial condition:
|
||||
- tag: APM1
|
||||
<<: *SSC_INIT_COND
|
||||
@ -2038,3 +2049,209 @@ initial condition:
|
||||
- - R SSC[1-2] C +BLEADV:OK
|
||||
- - SSC SSC1 ram
|
||||
- - R SSC1 A <heap_size>:(\d+)
|
||||
- tag: ENABLED_1
|
||||
<<: *MESH_INIT_COND
|
||||
initial condition detail: if mesh tree not exist, start one node first, then start others, after mesh network
|
||||
established, root connect server
|
||||
check cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
- - SOC SOC1 LISTEN <test_tcp_port1> <pc_ip>
|
||||
- - R SOC_COM L OK
|
||||
- - SSC MNODE(0) mesh -S -o 0 -i <pc_ip> -t <test_tcp_port1>
|
||||
- - ''
|
||||
- - SOC SOC1 MACCEPT GSOC1
|
||||
- - P MNODE(0) C +CONNECT,OK
|
||||
- R SOC_COM L OK
|
||||
- - SSC SSC[1-<node_num>] mesh -F -o 4 -a 1
|
||||
- - P SSC[1-<node_num>] C +MESHFLAG:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -F -o 5 -a 1
|
||||
- - P SSC[1-<node_num>] C +MESHFLAG:OK
|
||||
restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] reboot
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC1 mesh -T
|
||||
- - P SSC1 C +MESH:START,OK
|
||||
- - DELAY 10
|
||||
- - ''
|
||||
- - SSC SSC[2-<node_num>] mesh -T
|
||||
- - P SSC[2-<node_num>] C +MESH:START,OK
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
- - SSC MNODE(0) mesh -Q -o 1 -t <delay_time>
|
||||
- - R MNODE(0) C NETWORK_TIME:PASS
|
||||
- - SOC SOC1 LISTEN <test_tcp_port1> <pc_ip>
|
||||
- - R SOC_COM L OK
|
||||
- - SSC MNODE(0) mesh -S -o 0 -i <pc_ip> -t <test_tcp_port1>
|
||||
- - ''
|
||||
- - SOC SOC1 MACCEPT GSOC1
|
||||
- - P MNODE(0) C +CONNECT,OK
|
||||
- R SOC_COM L OK
|
||||
- - SSC SSC[1-<node_num>] mesh -F -o 4 -a 1
|
||||
- - P SSC[1-<node_num>] C +MESHFLAG:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -F -o 5 -a 1
|
||||
- - P SSC[1-<node_num>] C +MESHFLAG:OK
|
||||
force restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] restore
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC1 mesh -T
|
||||
- - P SSC1 C +MESH:START,OK
|
||||
- - DELAY 10
|
||||
- - ''
|
||||
- - SSC SSC[2-<node_num>] mesh -T
|
||||
- - P SSC[2-<node_num>] C +MESH:START,OK
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
- - SSC MNODE(0) mesh -Q -o 1 -t <delay_time>
|
||||
- - R MNODE(0) C NETWORK_TIME:PASS
|
||||
- - SOC SOC1 LISTEN <test_tcp_port1> <pc_ip>
|
||||
- - R SOC_COM L OK
|
||||
- - SSC MNODE(0) mesh -S -o 0 -i <pc_ip> -t <test_tcp_port1>
|
||||
- - ''
|
||||
- - SOC SOC1 MACCEPT GSOC1
|
||||
- - P MNODE(0) C +CONNECT,OK
|
||||
- R SOC_COM L OK
|
||||
- - SSC SSC[1-<node_num>] mesh -F -o 4 -a 1
|
||||
- - P SSC[1-<node_num>] C +MESHFLAG:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -F -o 5 -a 1
|
||||
- - P SSC[1-<node_num>] C +MESHFLAG:OK
|
||||
- tag: ENABLED_2
|
||||
<<: *MESH_INIT_COND
|
||||
initial condition detail: if mesh tree not exist, start all nodes together
|
||||
check cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] reboot
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC[1-<node_num>] mesh -T
|
||||
- - P SSC[1-<node_num>] C +MESH:START,OK
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
- - SSC MNODE(0) mesh -Q -o 1 -t <delay_time>
|
||||
- - R MNODE(0) C NETWORK_TIME:PASS
|
||||
force restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] restore
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC[1-<node_num>] mesh -T
|
||||
- - P SSC[1-<node_num>] C +MESH:START,OK
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
- - SSC MNODE(0) mesh -Q -o 1 -t <delay_time>
|
||||
- - R MNODE(0) C NETWORK_TIME:PASS
|
||||
- tag: ENABLED_3
|
||||
<<: *MESH_INIT_COND
|
||||
initial condition detail: all mesh nodes in softap+sta mode, mesh configed but not started
|
||||
check cmd set:
|
||||
- ''
|
||||
restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] reboot
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
force restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] restore
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- tag: DISABLED_1
|
||||
<<: *MESH_INIT_COND
|
||||
initial condition detail: all mesh node in softap+sta mode, disable all mesh node
|
||||
check cmd set:
|
||||
- ''
|
||||
- - ASSERT
|
||||
- - ''
|
||||
restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] reboot
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] op -Q
|
||||
- - P SSC[1-<node_num>] C +CURMODE:3
|
||||
- - SSC SSC[1-<node_num>] sta -D
|
||||
- - P SSC[1-<node_num>] C +QAP:OK
|
||||
force restore cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] restore
|
||||
- - P SSC[1-<node_num>] C !!!ready!!!
|
||||
- - SSC SSC[1-<node_num>] op -S -o 3
|
||||
- - P SSC[1-<node_num>] C +MODE:OK
|
||||
- - SSC SSC[1-<node_num>] sta -D
|
||||
- - P SSC[1-<node_num>] C +QAP:OK
|
178
components/idf_test/integration_test/TC_IT_MESH_COMM.yml
Normal file
178
components/idf_test/integration_test/TC_IT_MESH_COMM.yml
Normal file
@ -0,0 +1,178 @@
|
||||
test cases:
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_COMM_0101
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0) meshsend -S -d <MNODE(0,-1)_mac> -l 1000 -c 20 -b 20 -f 2
|
||||
- - P MNODE(0) C +MESHSEND,OK
|
||||
- P MNODE(0,-1) C +MESHRXPKT:OK
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
initial condition: ENABLED_2
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. root send unicast to leaf
|
||||
sub module: Communication
|
||||
summary: root send unicast to leaf
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: unicast test
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_COMM_0106
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0,-1) meshsend -S -d <MNODE(0)_mac> -l 1000 -c 20 -b 20 -f 2
|
||||
- - P MNODE(0,-1) C +MESHSEND,OK
|
||||
- P MNODE(0) C +MESHRXPKT:OK
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
initial condition: ENABLED_1
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. leaf send unicast to root
|
||||
sub module: Communication
|
||||
summary: leaf send unicast to root
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: unicast test
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_COMM_0116
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0,-1) meshsend -S -d <MNODE(0,1)_mac> -l 1000 -c 100 -f 2
|
||||
- - P MNODE(0,-1) C +MESHTXPKT:OK C +MESHSEND,OK
|
||||
- P MNODE(0,1) C +MESHRXPKT:OK
|
||||
- - DELAY 5
|
||||
- - ''
|
||||
- - SSC MNODE(0,-1) meshsend -S -d <MNODE(0,1)_mac> -l 1000 -c 10 -f 2
|
||||
- - P MNODE(0,-1) C +MESHTXPKT:OK C +MESHSEND,OK
|
||||
- P MNODE(0,1) C +MESHRXPKT:OK
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
initial condition: ENABLED_2
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. root send unicast to others
|
||||
sub module: Communication
|
||||
summary: fluid control test when node send packets upward
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: unicast test
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_COMM_0210
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0) meshsend -S -d <MNODE(0,0)_mac> -l 1460 -c 20 -b 20 -f 4
|
||||
- - P MNODE(0) C +MESHTXPKT:OK C +MESHSEND,OK
|
||||
- P MNODE(0,0) C +MESHRXPKT:OK
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
initial condition: ENABLED_1
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. root send unicast
|
||||
sub module: Communication
|
||||
summary: root send unicast downward with flag=FROMDS
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: meshsend parameter check
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_COMM_0902
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0,0,0) mesh -D -o 0 -g <MNODE(0)_mac>
|
||||
- - P MNODE(0,0,0) C +MESH_ADDR_LIST_ADD
|
||||
- - SSC MNODE(0,0,0) mesh -D -o 0 -g <MNODE(0,0)_mac>
|
||||
- - P MNODE(0,0,0) C +MESH_ADDR_LIST_ADD
|
||||
- - SSC MNODE(0,0,0) meshsend -P -p 0 -t 7 -l 12
|
||||
- - P MNODE(0,0,0) C +MESHSEND:OPTION,1
|
||||
- - SSC MNODE(0,0,0) meshsend -S -w 1 -d 01:00:5E:00:00:00 -c 10 -b 20 -f
|
||||
2
|
||||
- - P MNODE(0,0,0) C +MESHTXPKT:ERROR C +MESHSEND,OK
|
||||
- P MNODE(0,0) NC +MESHRXPKT:OK
|
||||
- - SSC MNODE(0,0,0) meshsend -S -w 1 -d 01:00:5E:00:00:00 -l 0 -c 10 -b 20 -f
|
||||
2
|
||||
- - P MNODE(0,0,0) C +MESHTXPKT:ERROR C +MESHSEND,OK
|
||||
- P MNODE(0,0) NC +MESHRXPKT:OK
|
||||
- - SSC MNODE(0,0,0) meshsend -S -w 1 -d 01:00:5E:00:00:00 -l 1000 -c 10 -b 20 -f
|
||||
2
|
||||
- - P MNODE(0,0,0) C +MESHTXPKT:OK C +MESHSEND,OK
|
||||
- P MNODE(0) C +MESHRXPKT:OK
|
||||
- - SSC MNODE(0,0,0) meshsend -S -w 1 -d 01:00:5E:00:00:00 -l 1460 -c 10 -b 20 -f
|
||||
2
|
||||
- - P MNODE(0,0,0) C +MESHTXPKT:ERROR C +MESHSEND,OK
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
initial condition: ENABLED_1
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. node send multicast with different length
|
||||
sub module: Communication
|
||||
summary: node send multicast with different length
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: meshsend parameter check
|
||||
version: v1 (2017-7-20)
|
217
components/idf_test/integration_test/TC_IT_MESH_EST.yml
Normal file
217
components/idf_test/integration_test/TC_IT_MESH_EST.yml
Normal file
@ -0,0 +1,217 @@
|
||||
test cases:
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_EST_0106
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -A -o 7 -t 25
|
||||
- - P SSC[1-<node_num>] C +MESH_SET_TX_POWER:OK
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n <ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC[1-<node_num>] mesh -T
|
||||
- - P SSC[1-<node_num>] C +MESH:START
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
initial condition: DISABLED_1
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
sub module: Network Establish
|
||||
summary: set node with different tx power, then establish network
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: mesh config
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_EST_0313
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC[1-2] mesh -T
|
||||
- - P SSC[1-2] C +MESH:START
|
||||
- - DELAY 30
|
||||
- - ''
|
||||
- - SSC SSC[1-2] mesh -Q -o 2
|
||||
- - R SSC[1-2] T 2
|
||||
- - MESHTREE
|
||||
- - R PC_COM C MESHTREE:2%20nodes
|
||||
- - SSC MNODE(0) reboot
|
||||
- - P MNODE(0) C !!!ready!!!
|
||||
- P MNODE(0,0) C MESH_EVENT_DISCONNECTED
|
||||
- - DELAY 10
|
||||
- - P MNODE(0,0) C MESH_EVENT_CONNECTED,1
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
initial condition: DISABLED_1
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. switch to sta+softap mode
|
||||
2. mesh init
|
||||
3. mesh config
|
||||
4. mesh start
|
||||
sub module: Network Establish
|
||||
summary: 2 nodes do mesh network establish,then reboot root
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: mesh network establish
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_EST_0317
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC SSC[1-<node_num>] mesh -I
|
||||
- - P SSC[1-<node_num>] C +MESH:INITED
|
||||
- - SSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m 1 -y 15
|
||||
- - P SSC[1-<node_num>] C +MESH:CONFIG,OK
|
||||
- - SSC SSC[1-15] mesh -T
|
||||
- - P SSC[1-15] C +MESH:START
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-15] mesh -Q -o 2
|
||||
- - R SSC[1-15] T 15
|
||||
- - MESHTREE
|
||||
- - R PC_COM C MESHTREE:15%20nodes
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
5. succeed
|
||||
initial condition: DISABLED_1
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. switch to sta+softap mode
|
||||
2. mesh init
|
||||
3. mesh config: set mesh layer=15
|
||||
4. start 15 nodes
|
||||
5. check mesh tree
|
||||
sub module: Network Establish
|
||||
summary: set special mesh tree which layer=15
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: mesh network establish
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_EST_0404
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0) reboot
|
||||
- - P MNODE(0) C !!!ready!!!
|
||||
- - DELAY 2
|
||||
- - ''
|
||||
- - SSC MNODE(0) mesh -I
|
||||
- - P MNODE(0) C +MESH:INITED
|
||||
- - SSC MNODE(0) mesh -A -o 9 -t <auth_mode> -s <map_password>
|
||||
- - P MNODE(0) C +MESH_SET_AP_AUTH_MODE:OK C +MESH_SET_AP_AUTH_PWD:OK
|
||||
- - SSC MNODE(0) mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n
|
||||
<ap_channel> -m <max_connect> -y <max_layer>
|
||||
- - P MNODE(0) C +MESH:CONFIG,OK
|
||||
- - SSC MNODE(0) mesh -T
|
||||
- - P MNODE(0) C +MESH:START
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
5. succeed
|
||||
initial condition: ENABLED_2
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. save value
|
||||
5. all nodes reboot
|
||||
sub module: Network Establish
|
||||
summary: after network is establish, disable root,wait some time, start the root node again
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: mesh network re-establish
|
||||
version: v1 (2017-7-20)
|
||||
- CI ready: 'Yes'
|
||||
ID: MESH_EST_0405
|
||||
SDK: ESP32_IDF
|
||||
Test App: SSC_MESH
|
||||
auto test: 'Yes'
|
||||
category: Function
|
||||
cmd set:
|
||||
- ''
|
||||
- - SSC MNODE(0) reboot
|
||||
- - P MNODE(0) C !!!ready!!!
|
||||
- - DELAY <delay_time>
|
||||
- - ''
|
||||
- - SSC SSC[1-<node_num>] mesh -Q -o 2
|
||||
- - R SSC[1-<node_num>] T <node_num>
|
||||
- - MESHTREE
|
||||
- - R PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num-1>)
|
||||
execution time: 0.0
|
||||
expected result: |-
|
||||
1. succeed
|
||||
2. succeed
|
||||
3. succeed
|
||||
4. succeed
|
||||
5. succeed
|
||||
initial condition: ENABLED_2
|
||||
level: Integration
|
||||
module: Mesh
|
||||
steps: |-
|
||||
1. mesh init
|
||||
2. mesh config
|
||||
3. mesh start
|
||||
4. save value
|
||||
5. all nodes reboot
|
||||
sub module: Network Establish
|
||||
summary: after network is establish, disable root, check mesh network
|
||||
test environment: SSC_T50_1
|
||||
test point 1: basic function
|
||||
test point 2: mesh network re-establish
|
||||
version: v1 (2017-7-20)
|
@ -238,3 +238,11 @@ test environment:
|
||||
PC has 1 wired NIC connected to AP.
|
||||
PC has 1 WiFi NIC.
|
||||
6 SSC target connect with PC by UART.
|
||||
- tag: SSC_T50_1
|
||||
<<: *TEST_ENV
|
||||
Special: Y
|
||||
Target Count: 50
|
||||
test environment detail: |-
|
||||
PC has 1 wired NIC connected to AP.
|
||||
PC has 1 WiFi NIC.
|
||||
50 SSC target connect with PC by UART.
|
||||
|
Loading…
Reference in New Issue
Block a user