Forum Discussion

adrianc's avatar
adrianc
New Contributor
8 years ago

Force "Receive MQTT message" test step as always PASSED

Hi,

 

Assume the following basic setup in order to test some MQTT application: I have one publisher (tcp://localhost:8883) and two receivers, respectively tcp://localhost:1883 and tcp://localhost:1884

When some message is published on a given topic, one of the receivers will get the message. But this is decided by some balancing mechanism, so you never know which one gets it.

 

I have created three test cases which are ran in parallel, i.e. TC1 and TC2 for receivers, TC3 for publisher.

Since either one of TC1 or TC2 will fail because it won't retrieve any message, the whole suite will be failed.

Is there any way to force these "receive mqtt" to pass, regardless if any message was received or not?

 

Thanks and regards,

/Adrian

No RepliesBe the first to reply