blob: c56f7e107ed3d3a4c3feaa0d8be984f3bf6bcb00 [file] [log] [blame]
marekpl503647c2018-10-24 14:33:25 +02001*** Settings ***
2Documentation HV-VES 'Sunny Scenario' Robot Framwork test - message is sent to the collector and Kafka topic is checked if the message has been published.
3Default Tags HVVES
4Test Timeout 3 minute
5Resource ${EXECDIR}/robot/resources/global_properties.robot
6Resource ${EXECDIR}/robot/resources/test_templates/hvves_template.robot
7Suite Teardown Reset Rammbock
8
9*** Variables ***
10
11*** Test Cases ***
12HV-VES test case
13 ${msg_number_initial}= Check Number Of Messages On Topic ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic}
14 Define WTP Protocol
15 Start HV-VES TCP Client And Send Message ${GLOBAL_DNS_HV_VES_NAME} ${GLOBAL_HV_VES_SERVER_PORT}
16 ${msg_number_after}= Check Number Of Messages On Topic ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic}
17 Should Not Be Equal As Integers ${msg_number_initial} ${msg_number_after}
18 Download VesEvent Proto File ${EXECDIR}
19 ${msg_decoded}= Decode Last Message From Topic ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic} ${EXECDIR}
20 ${msg_decoded_template}= Get File ${EXECDIR}/robot/assets/templates/hvves/hvves_decoded_msg.template
21 Should Be Equal As Strings ${msg_decoded} ${msg_decoded_template}