由于ride不支持python3,改为使用RED管理robot framework的编辑器
1.直接下载RED即可使用
2.查关键词使用alt+/组合键
3.会出现python session problem问题,需要修改red.xml
kafka测试脚本
*** Settings ***
library KafkaLibrary
*** Variable ***
${result}
${aa}
*** Test Cases ***
one
KafkaLibrary.Connect To Kafka 192.168.124.115:9092
${result} KafkaLibrary.Get Kafka Topics
${aa} BuiltIn.Set Variable "gogo"
BuiltIn.Log ${aa}
BuiltIn.Run Keyword If ${aa} in ${result} BuiltIn.Log pass
... ELSE IF ${aa} not in ${result} BuiltIn.Log fail