Comments (4)
Ok I think I understood what needs to be done! Cheers!
from gatling-amqp-plugin.
I made a MR with an example how you could do it. I hope it will be merged and more important helps :-)
from gatling-amqp-plugin.
Thanks for that! Can you elaborate a bit to make sure I understood correctly?
// method is called:
// - for each message which will be sent out
// - for each message which has been received
Would I need to code the logic to extract the value from the headers and return that value for it to match or also code the part to teach it how to match? ie:
Scenario 1:
Request sent on queue 1 - Matcher kicks in and extracts value from header
Response comes in on queue 2 - Matcher kicks in and extracts value from header plugin automatically matches
Scenario 2:
Request sent on queue 1 - Matcher kicks in and extracts value from header and store the value to correlate it later
Response comes in on queue 2 - Matcher kicks in and extracts value from header custom logic to correlate with list
from gatling-amqp-plugin.
In my opinion scenario 1 is correct. Your method calculates the values from messages and the plugin does the rest. You do not have to store the values somewhere.
Attention: If for some reason the method returns the same ID for two different sent-messages and gatling is waiting for the response of those two messages it happens that one message-mapping is not detected. (To see it return always "1" - its diffuclt to explain)
Maybe a small testsetup which starts a rabbitmq container and runs out of the box would be a good benefit.
from gatling-amqp-plugin.
Related Issues (20)
- Include bytesMessage in PublishDslBuilderMessage.java HOT 2
- Known issues for requestReply? HOT 4
- If a messages could not be matched than the test should output failed counter HOT 1
- How do I configure two messageBrokers HOT 1
- AmqpConnectionPool should check whether connection is open HOT 1
- Support for gatling 3.5? HOT 2
- Connecting with an existing queue/exchange? HOT 2
- MessageMatcher.prepareRequest not used
- how to run these tests HOT 1
- Issue while publishing the message to RabbitMQ HOT 4
- Generating timestamps - Json file HOT 1
- Request/Reply : send message in Exchange reply in multi exchange HOT 1
- How to use consume request separately? HOT 1
- Simulation blocked when more than 7 scenarios HOT 3
- SSL connection to Rabbit HOT 1
- Adding support for fanout exchange HOT 4
- Got the following errors when I used PublishExample.scala HOT 4
- Message id matching in request-reply
- Binding Multiple Queues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatling-amqp-plugin.