Giter Club home page Giter Club logo

Comments (7)

fshutdown avatar fshutdown commented on July 16, 2024

You are right your approach should work

  1. Response pattern is a regular expression but in you case you could just use this:
"response":"auth"
  1. This is sequantial workflow so the same sampler which sends a authenticationrequest should capture a auth response
  2. Take opponent would be a second sampler; you can set a long response timeout and let the sampler wait for a server response. The response pattern could look like this
"response":"opponentFound"

...and 3rd sampler will respond to opponentFound.

And thanks for sharing your problems, I will keep this in mind when developing the plugin further.

from jmeter-websocketsampler.

gen4sp avatar gen4sp commented on July 16, 2024

Great, thank you for your (quite fast!) answer!

from jmeter-websocketsampler.

gen4sp avatar gen4sp commented on July 16, 2024

Response doesnt work for me (
1st sampler: http://take.ms/JCROS
answer - http://take.ms/1K3Lb
finding works fine, but sampler wait whole response time before fire next sampler, does not fire immediately on response as i expect.

from jmeter-websocketsampler.

fshutdown avatar fshutdown commented on July 16, 2024

Have a look at the View Results Tree -> Sampler Result there should be a detaild breakdown of all actions and how long did it take for the response to arrive.

from jmeter-websocketsampler.

gen4sp avatar gen4sp commented on July 16, 2024

response from the server come immediately, but sampler took all 5sec (or more, depends on response-timeout-section)
looks like it doesn't recognise the pattern.

Now i have one more strange behavior! If i have some samplers, and set in 1st response-pattern this:

"response"

and leave other blank (!), all samplers fired immediately as recived a response from server.

Whats going on?)

from jmeter-websocketsampler.

gen4sp avatar gen4sp commented on July 16, 2024

same behaviour when i leave first sampler blank

from jmeter-websocketsampler.

fshutdown avatar fshutdown commented on July 16, 2024

Could be something to do with regular expression processing. Maybe escaping special characters with \ would help

from jmeter-websocketsampler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.