edgexfoundry / edgex-taf

Apache License 2.0
11 stars 25 forks source link

Support test Integration. #853

Closed SavantEVO closed 1 year ago

SavantEVO commented 1 year ago

Hello everyone, I have a problem and would appreciate it if you could give me a solution. I want to run a custom test integration with docker: sh run-tests.sh x86_64 false integration-test mqtt if I add a new folder and file test robot framework. How to run just this file? Thank you!

image
cherrycl commented 1 year ago

If you only run this suite for mqtt-bus, just add the tags MessageQueue=MQTT on the file. See example.

SavantEVO commented 1 year ago

@cherrycl Can I change MessageQueue=MQTT is different like MessageQueue=iot. and then run sh run-tests.sh x86_64 false integration-test iot. Because I don't know the flow of commands to run the integration. Can you explain for me custom this command?

cherrycl commented 1 year ago

@SavantEVO If you use MessageQueue=iot as a tag on the file, and run sh run-tests.sh x86_64 false integration-test iot. That means only tests on the file will be executed. For current TAF script, we used tag MessageQueue=MQTT to recognize the tests is only run on mqtt-bus.

For tag usage, please reference https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tagging-test-cases

cherrycl commented 1 year ago

Close this issue due to no activity.