blob: 200a496617aa7143bf7861fe7df9a256474adfdc [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Library OperatingSystem
Stanislav Chlebec050ef542018-10-03 08:45:16 +02003Library String
Gary Wu9abb61c2018-09-27 10:38:50 -07004
5*** Test Cases ***
6APPC Netstat
7 [Documentation] Checking the active ports
Stanislav Chlebec050ef542018-10-03 08:45:16 +02008 ${output}= Run netstat -a | grep -E ":8282 " | grep LISTEN
Gary Wu9abb61c2018-09-27 10:38:50 -07009 Log To Console ${output}
Stanislav Chlebec050ef542018-10-03 08:45:16 +020010 ${line_count}= Get Line Count ${output}
11 Should Be Equal As Strings ${line_count} 1