Ask a Question

MQTT - how connect using environment specific URL

SOLVED
vikititor
Contributor

MQTT - how connect using environment specific URL

 In my tests, I use project properties like host, port to connect to the app uder test.. 

Now is problem to do the same with MQTT.. I have on each environment differend port and host name.. 

 

HOW I can use per environment other connection?

 

IOW: how I can use project properties? in connection URL definition? this is impossible.

 

When the URL is in string.. without port number.. all works.. 

WHY???? common????? I can not set the port number? why???

2 REPLIES 2
mattb
Staff

Hi,

The environment manager allows you to set the URL you are using. You could declare ports within that URL or add them as parameters.

https://support.smartbear.com/readyapi/docs/testing/environments/index.html

 

True works.. once I need to explicitly the protocol "tcp" .. 

 

Here how we can parametrize the MQTT test case:

 

cancel
Showing results for 
Search instead for 
Did you mean: