VB挂测

1。对TF卡进行挂测

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"",
        "checkdone":"ROUTER:~#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"df | grep mmcblk0p1 | wc -l",
        "checkdone":"1","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"dd if=/dev/zero of=/mnt/mmcblk0p1/gaga bs=8 count=1000000 &",
        "checkdone":"mmcblk0p1","duration":3,
		"checkmethod":"contains",
		"sleep":15,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":~# ","duration":500,
        "loop":1
    }
    
]

  2。对Lora的挂测

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"",
        "checkdone":"root@ROUTER:/mnt/mmcblk0p1/root#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"checkmethod":"contains",
		"msleep":60000,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"msleep":60000,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"msleep":60000,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":/mnt/mmcblk0p1/root#","duration":500,
        "loop":1
    }
    
]

  3。对蜂窝的移远模块的识别挂测

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"",
        "checkdone":"ROUTER:~#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"ls /dev | grep ttyUSB | wc -l",
        "checkdone":"4","duration":3,
		"checkmethod":"contains",
		"msleep":60000,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":~#","duration":500,
        "loop":1
    }
    
]

  4。接口的识别

[
    {
        "cmd":"open relay",
        "checkdone":"I2C",
        "checkmethod":"contains",
        "duration":10000,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
	{
        "cmd":"",
        "checkdone":"ROUTER login:","duration":300,
		"checkmethod":"contains",
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"root",
        "checkdone":"Password","duration":300,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"LoRaWAN@2018",
        "checkdone":"root@ROUTER:/mnt/mmcblk0p1/root#","duration":300,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep ho",
        "checkdone":"hostapd.conf","duration":300,
		"checkmethod":"contains",
		"sleep":60,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ifconfig",
        "checkdone":"wlan0","duration":300,
		"checkmethod":"contains",
		"sleep":60,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep ho",
        "checkdone":"hostapd.conf","duration":300,
		"checkmethod":"contains",
		"sleep":60,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ls /mnt |wc -l",
        "checkdone":"1","duration":300,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":"kernel","duration":500,
        "loop":1
    }
    
]

  

 

 

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"",
        "checkdone":"root@ROUTER:/mnt/mmcblk0p1/root#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ls /dev/ttyUSB* | wc -l",
        "checkdone":"4","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ping -c 10 192.168.54.1",
        "checkdone":"10 packets received","duration":17,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":/mnt/mmcblk0p1/root#","duration":500,
        "loop":1
    }
    
]

  

posted @ 2020-01-08 21:28  陈晓猛  阅读(277)  评论(0编辑  收藏  举报