# Test-case # Before running test case, python should be installed on host machine. STEP 1 - - create sender.py file to send message with below contents import pika credentials = pika.PlainCredentials('rabbitmq', 'rabbitmq') # Replace '5672' with the correct port number if RabbitMQ is using a different port. connection = pika.BlockingConnection(pika.ConnectionParameters('10.105.202.189', 5672, '/', credentials)) channel = connection.channel() channel.queue_declare(queue='test_queue') channel.basic_publish(exchange='', routing_key='test_queue', body='Hello, RabbitMQ!') print("Message Sent") connection.close() - create receiver.py file to recieve message with below contents import pika def callback(ch, method, properties, body): print("Received:", body) credentials = pika.PlainCredentials('rabbitmq', 'rabbitmq') # Replace '5672' with the correct port number if RabbitMQ is using a different port. connection = pika.BlockingConnection(pika.ConnectionParameters('10.105.202.189', 5672, '/', credentials)) channel = connection.channel() channel.queue_declare(queue='test_queue') channel.basic_consume(queue='test_queue', on_message_callback=callback, auto_ack=True) print('Waiting for messages. To exit press CTRL+C') channel.start_consuming() STEP 2 - update below line with correct details in both files credentials = pika.PlainCredentials('', '') # Replace '5672' with the correct port number if RabbitMQ is using a different port. connection = pika.BlockingConnection(pika.ConnectionParameters('', , '/', credentials)) STEP 3 - open two terminals side by side, and run both scripts in separate terminal with below commands python 3 sender.py ---------(on left side terminal) pythin 3 receiver.py -------(on right side terminal) STEP 4 - you will get message on left terminal as below $python3 reciever.py Waiting for messages. To exit press CTRL+C Received: b'Hello, RabbitMQ!'