Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST results in JSON format #2872

Closed
asfimport opened this issue Aug 7, 2012 · 4 comments
Closed

POST results in JSON format #2872

asfimport opened this issue Aug 7, 2012 · 4 comments

Comments

@asfimport
Copy link
Collaborator

Ian Bisset (Bug 53668):
Hi!

I've been using JMeter recently for my client in London and have just implemented a web based front-end for displaying the test results.

As such I've written a component that extends the ResultCollector class and posts the results at run-time to a RESTful web service in JSON format.

I would like to give this to the JMeter community so that its available for general use (see zip attached)

As I am new to JMeter development it would be fantastic if an experienced JMeter developer could review my code and integrate it into the next release.

Please don't hesitate to contact me, and I'd be very happy to help improve/further develop the code :)

Best,
Ian Bisset

Created attachment ocp-jmeter-component.zip: JMeter component source code - Result Uploader (listener)

OS: All

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
Thank you for your patch.

A question I have is the usage expected for this component.
From my understanding it posts results to a JSON talking server which handles these.
So unless I misunderstand, to be useful we should have the server part.

Another question is , aren't you afraid that this listener impacts badly Test behaviour :

  • network impact from it sending the results
  • CPU, memory impact on JMeter instance which would slow down what is injected on server

Regards
Philippe

@asfimport
Copy link
Collaborator Author

Ian Bisset (migrated from Bugzilla):
Web app for receiving JSON POSTs from JMeter (used with the Result Uploader component).

Created attachment ocp-jmeter-service.zip: Web app for receiving JSON POSTs from JMeter

@asfimport
Copy link
Collaborator Author

Ian Bisset (migrated from Bugzilla):
Hi Philippe,

You are correct, see zip attached. This is the web app that receives the json requests and submits the data to a database (db connection string defined in src/main/resources/WebResource.properties, and db tables defined in db/create-tables.sql).

It has been really useful to my client (BSkyB) and several teams are now using this JMeter framework instead of LoadRunner because of the quality of the UI. I can provide screen shots if this helps along with further explanations. I also have the js/php front-end code if you need that?

Regarding your concerns on resources, CPU is affected of course but there hasn't been any noticeable impact on test timing. On each result the data is pushed onto a Queue, so it is only this action that will inhibit the test running (negligible). The json post is handled by a background Timer thread that does not inhibit the running test.

If you think this will be of use I will of course be more than happy to help develop further if need be :)

Kind regards
Ian

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
A BackendListener client implementation would be now better suited since 2.13.
Closing as WONTFIX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant