Gatling JMS test doesn't seem to terminate

92 views
Skip to first unread message

atul verma

unread,
Apr 16, 2021, 8:41:04 AM4/16/21
to Gatling User Group
test never seems to terminate and I always get the following console print:
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=0      KO=0     )


---- JMS  test -----------------------------------------------------------------
[--------------------------------------------------------------------------]  0%
          waiting: 0      / active: 1      / done: 0
================================================================================

Please Have a look on below piece of code ...am i missing anything in configuration
import javax.jms._
import io.gatling.core.Predef._
import io.gatling.jms.Predef._

class BasicSimulation extends Simulation {
val sendQueueName = "xyz"
val receiveQName="pqr
val username = "abc"
val password = "xxxxxxxx"
val jndiConnectionFactoryName = "abc-pq-00"
val connectionUrl="xyz"

val msg  = "abc"


val connFactory = jmsJndiConnectionFactory
      .connectionFactoryName(jndiConnectionFactoryName)
      .url(connectionUrl)
      .credentials(username, password)
      .contextFactory("com.tibco.tibjms.naming.TibjmsInitialContextFactory")



     val jmsConfig = jms
         .connectionFactory(connFactory)
         .credentials(username, password)
         .usePersistentDeliveryMode


  val scn = scenario("JMS zbn test").repeat(1){

  exec(jms("req reply testing").requestReply
   .queue(receiveQName)
   .textMessage(msg)
   .property("ATULUUID", "123456789")
   .jmsType("test_jms_type")
   .check(simpleCheck(checkBodyTextCorrect)))
  
}


setUp(scn.inject(atOnceUsers(1))).protocols(jmsConfig)
def checkBodyTextCorrect(m: Message) = {
  
  m match {
case tm: TextMessage => tm.getText == "abc"
case _               => true


  }
}
}

Stéphane LANDELLE

unread,
Apr 17, 2021, 5:13:51 PM4/17/21
to gat...@googlegroups.com
No idea what your problem is, and can't guess without a reproducer, sorry.

Please make sure you're using the latest version of Gatling (3.5.1 as of now).

Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io




--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/0da92e30-437c-41ee-998d-3accac652e66n%40googlegroups.com.

atul verma

unread,
Apr 19, 2021, 6:47:14 AM4/19/21
to Gatling User Group
Hello Stéphane,

I am using Gatling 3.5.1 latest version only .
I am trying to write a simulation script on Gatling JMS , while developing script I taken reference from https://gatling.io/docs/current/jms/  .
Problem I am facing is when I am running script it is not terminating ,means it is not keep on running , it is not generating report .log and my code  I already shared with you in this  
conversation , can you please look once on my code ,please suggest me if I am missing any configuration.


Thanks
Atul


Stéphane LANDELLE

unread,
Apr 19, 2021, 11:41:39 AM4/19/21
to gat...@googlegroups.com
Are you sure you're not confusing queues and are publishing in the response queue?


Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io



atul verma

unread,
Apr 20, 2021, 5:05:07 AM4/20/21
to Gatling User Group
no I am very very clear on queues, I am using requestReply method rather than using send(fire and forget) method-
one high level flow diagram I am sharing with you please find attachment-



Thanks
Atul
DFD.JPG

atul verma

unread,
Apr 21, 2021, 5:27:57 AM4/21/21
to gat...@googlegroups.com
Hello Stephane, 
Kindly help me, the problem I am facing is when I am using requestReply, test is not stopping, continuously running, not generating report also. But when I am using send method instead of requestReply then it's working fine but replyQueue we can not configure with send method. 
I want to check response also received in replyQueue so requestReply method I have to use. 
Have a look on attached flow diagram for better understanding.


Thanks 
Atul

Stéphane LANDELLE

unread,
Apr 21, 2021, 5:38:11 AM4/21/21
to gat...@googlegroups.com
Please provide a sample (including a JMS app) we can fully run on our side and that exhibits the same behavior as what you're describing.
This is explained in this group's terms:
  • Provide a Short, Self Contained, Correct (Compilable), Example (see http://sscce.org/)


Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io



atul verma

unread,
Apr 21, 2021, 7:51:43 AM4/21/21
to gat...@googlegroups.com
Complete runnable code I already shared with you on first Day in the same mail trail ,I can not share with you jms configuration details like password etc due to security reasons.
Please look  once again complete runnable class. Kindly help me. 
If possible send me meeting invite to look for the same. 


Thanks 
Atul 

Stéphane LANDELLE

unread,
Apr 21, 2021, 8:05:46 AM4/21/21
to gat...@googlegroups.com
> Complete runnable code I already shared with you on first Day in the same mail trail

The client side is useless without its server counterpart.

> I can not share with you jms configuration details like password etc due to security reasons

Then, you can build a sample app based on some OSS JMS broker.

> Please look  once again complete runnable class. Kindly help me. 
> If possible send me meeting invite to look for the same. 

This would be consulting, not free assistance you can get on a community mailing list.
If that's what you're looking for, please let us know and a sales person will get in touch with you.
Otherwise, please provide a full actionable sample as requested.

Regards,

Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io



Reply all
Reply to author
Forward
0 new messages