2020-08-11 19:15:25 +08:00
|
|
|
*** Settings ***
|
2020-08-27 11:41:27 +08:00
|
|
|
Documentation b_Dnat_Tests需和b_Dnat_Tests_1同时执行
|
2020-08-11 19:15:25 +08:00
|
|
|
Library OperatingSystem
|
|
|
|
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
|
|
|
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
|
|
|
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
|
|
|
|
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
2020-08-18 09:32:49 +08:00
|
|
|
Library Custometest
|
2020-08-11 19:15:25 +08:00
|
|
|
|
2020-08-10 19:07:01 +08:00
|
|
|
*** Test Cases ***
|
2020-08-11 19:15:25 +08:00
|
|
|
wan_nat-dnat-00001
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/wan_nat_dant_00001.bat
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Welcome to nginx HTTP!
|
|
|
|
|
... ELSE Create List Welcome to nginx HTTP!
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
wan_nat-dnat-00002
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/wan_nat_dant_00002.bat
|
|
|
|
|
... ELSE set variable curl 220.194.214.86
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Welcome to nginx HTTP!
|
|
|
|
|
... ELSE Create List Welcome to nginx HTTP!
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
wan_nat-dnat-00003
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/wan_nat_dant_00003.bat
|
|
|
|
|
... ELSE set variable curl 182.92.25.74
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Welcome to nginx HTTP!
|
|
|
|
|
... ELSE Create List Welcome to nginx HTTP!
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
wan_nat-dnat-00004
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/wan_nat_dant_00004.bat
|
|
|
|
|
... ELSE set variable curl 112.81.159.16
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Welcome to nginx HTTP!
|
|
|
|
|
... ELSE Create List Welcome to nginx HTTP!
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|