Comments (6)
Response assertion with same pattern attached to 2nd sampler successfully matches the response, btw
from jmeter-websocketsampler.
This is because regexp patterns are forwarded to analyzer in socket only once at the moment of connection creation and then those patterns are not reset by next samplers using the same connection.
I've done a small change to overwrite this behavior. If you are interested, here is the piece of code to be added.
ServiceSocket class (add three rows below at the end of initialize method):
public void initialize(WebSocketSampler _parent) {
logMessage = new StringBuffer();
logMessage.append("\n\n[Execution Flow]\n");
logMessage.append(" - Reusing exising connection\n");
error = 0;
this.closeLatch = new CountDownLatch(1);
this.responsePattern = new CompoundVariable(_parent.getResponsePattern()).execute();
this.disconnectPattern = new CompoundVariable(_parent.getCloseConncectionPattern()).execute();
initializePatterns();
}
In WebSocketSampler socket.initialize() call should be modified:
if (connectionList.containsKey(connectionId)) {
socket = connectionList.get(connectionId);
socket.initialize(this);
return socket;
}
from jmeter-websocketsampler.
i also came across this bug
from jmeter-websocketsampler.
Same problem as well.
from jmeter-websocketsampler.
Same bug. Hope it will be fixed soon.
from jmeter-websocketsampler.
Hello, I also came across this bug. Is there any fix for this ?
from jmeter-websocketsampler.
Related Issues (20)
- Websocket testing JMeter Configuration
- extract().response() not working for REST assured. Getting error as "The method extract() is undefined for the type"
- How to identify disabled elements in dropdown in selenium with java? HOT 1
- WebSocket can't connect to remote server HOT 1
- Failing under heavy load HOT 4
- HTTP Header Manager parameters not passed
- Creating more threads on server than specified.
- can't receive expected response message for expected sampler
- Unable to create new connections per iteration- websocket sampler HOT 1
- Cannot get all data for frame
- excuse me?
- Unexpected error: null when run multiple threads
- WebSocket Sampler hangs on for 5000ms HOT 1
- Only the response pattern from first sampler is used
- java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
- weird resizing of config window HOT 3
- WebSocket Connection "Got unexpected status 503"
- issue that i can't explain, on websocket sampler, the jmeter screen keeps on getting wider and wider HOT 4
- Able to connect to socket, but only getting sids and not message I expect
- unable send subprotocols in ws request
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 jmeter-websocketsampler.