cancel
Showing results for 
Search instead for 
Did you mean: 

Can not get Properties to work with MQ connection of AMQP plugin

SOLVED
Occasional Contributor

Can not get Properties to work with MQ connection of AMQP plugin

Hi SmartBear,

 

ReadyAPI v2.8 Pro.

 

We have not succeed in getting Properties to work with AMQP plugin MQ configuration.

 

The issue we see is with Properties:

  1. Cannot get project properties to work with AMQP plugin connection configuration. We create a project property called “ourProperty” and inserted ${#Project#ourProperty} as Host value in AMQP plugin connection configuration. When running AMQP step we get message “Unable to declare exchange due to the following error: Unable to create AMQP connection due to the following error: ${#Project#ourProperty } ${#Project#ourProperty}”.

 

Could you please point to an example of Properties that work with plugin AMQP MQ connection configuration?

 

Regards
Keld

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Can not get Properties to work with AMQP plugin

Hi @FPKELD2019 

 

I can't help with your AMQP issue (point 1 of  your post) as I don't have an AMQP MQ to test against - but regarding point 2 of your post - you said you're publishing json payloads via the Queue and you're using a the DataGen test step to do it?

I don't bother with that - when I need a unique GUID created dynamically in my payloads I just hardcode the following dynamic script snippet into the json's GUI attribute value as follows:

 

{
"GUIDAttribute" : "${=java.util.UUID.randomUUID()}"
}

In regards to point 1 - if you're sure you're tried the normal property handling  - then I'd raise a ticket with Smartbear - link as follows: https://community.smartbear.com

 

I know hasn't helped with point1, but this might help with point2 and if you use this it will get you around the AMQP property issue.

 

Cheers,

 

rich

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: Can not get Properties to work with AMQP plugin

Hi @FPKELD2019 

 

I can't help with your AMQP issue (point 1 of  your post) as I don't have an AMQP MQ to test against - but regarding point 2 of your post - you said you're publishing json payloads via the Queue and you're using a the DataGen test step to do it?

I don't bother with that - when I need a unique GUID created dynamically in my payloads I just hardcode the following dynamic script snippet into the json's GUI attribute value as follows:

 

{
"GUIDAttribute" : "${=java.util.UUID.randomUUID()}"
}

In regards to point 1 - if you're sure you're tried the normal property handling  - then I'd raise a ticket with Smartbear - link as follows: https://community.smartbear.com

 

I know hasn't helped with point1, but this might help with point2 and if you use this it will get you around the AMQP property issue.

 

Cheers,

 

rich

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

Occasional Contributor

Re: Can not get Properties to work with AMQP plugin

Hej Rich,

 

Your solution makes it possible to insert GUID’s in JSON. Thanks.

 

Have a (minor?) extra challenge, need to insert the same GUID twice into the JSON message in step AMQP Publish. Not sure how to solve.

 

Regards

Keld

Community Manager

Re: Can not get Properties to work with AMQP plugin

richie great job as always! 

 

@FPKELD2019 as for the ‘extra challenge’ of yours, could you create a new topic for this part? It would be much easier to locate in the Community then!

 

In the meantime, I'll mark richie's reply as a solution in this thread.



Sonya Mihaljova
Community and Education Specialist
Enroll at the SmartBear Academy today and learn our products via exclusive video courses.