Tinkoff / gatling-amqp-plugin

Plugin for support performance testing with AMQP in Gatling (3.7.x)
Apache License 2.0
33 stars 20 forks source link

Can you help me with AMQPS? #6

Closed decado87 closed 3 years ago

decado87 commented 4 years ago

Hellou, Im new in Gatling and Scala at all. Can you please show me how to create connectionFactory to AMQPS? Now I got error Connection reset Many thanks

my code: val amqpConf: AmqpProtocolBuilder = amqp .connectionFactory( rabbitmq .host("mq.xxx.xxx.com") .port(5671) .vhost("/") .username("someUsername") .password("somePassword") ) .usePersistentDeliveryMode

red-bashmak commented 4 years ago

Hello, I think you need to check that your amqp server is up and running. In your code I not seeing explicit errors

seanyu4296 commented 3 years ago

i have faced the same problem what i ended up doing is @decado87

  val cf = new ConnectionFactory()
  cf.setUri("amqps://username:password@yourrabbitmq.com")
  val amqpConf: AmqpProtocolBuilder = amqp
    .connectionFactory(cf)