Performance and load test for an API by java code project

15 views
Skip to first unread message

Lora Shimshon

unread,
Aug 3, 2023, 11:38:25 AM8/3/23
to BlazeMeter Forum
Hi,
I am new to Blazemeter, I want to  implement load and performance tests in our java project without interacting the  Blazemeter  GUI. 
I want to test the performance of an API with load 100 users for example, My somebody write me a sample code to how to attach the
configuration parameters (number of users, project id, the API URL I want to test, expected response time.. ) and how do i relate it to  Blazemeter  (in order to see the report at the end)?
thank you

Dmitri T

unread,
Aug 3, 2023, 11:47:31 AM8/3/23
to BlazeMeter Forum
There is BlazeMeter API for performance tests.

The "sample code" can be generated from BlazeMeter's swagger.json

Lora Shimshon

unread,
Aug 3, 2023, 5:55:49 PM8/3/23
to Dmitri T, BlazeMeter Forum
thank you 
I went over the docs, for creating a test a JMX/YAML file is required. However, I can't find an example of this file. 
I also tried to extract this file for an existing test in Blazemeter's GUI, but i couldn't find it

‫בתאריך יום ה׳, 3 באוג׳ 2023 ב-18:47 מאת ‪Dmitri T‬‏ <‪gli...@gmail.com‬‏>:‬
--
You received this message because you are subscribed to a topic in the Google Groups "BlazeMeter Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blazemeter-forum/--CQeWoTUfc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blazemeter-for...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blazemeter-forum/46263be0-3774-4ddc-b822-464d91c55d70n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dmitri T

unread,
Aug 4, 2023, 2:14:23 AM8/4/23
to BlazeMeter Forum
Yes, the file with the test you need to create somehow.

If you're looking for an YAML file example - check Taurus tool documentation, the minimal one would be something like:

execution:
- concurrency: 100
  ramp-up: 1m
  hold-for: 5m
  scenario: quick-test

scenarios:
  quick-test:
    requests:
    - http://blazedemo.com

JMX files belong to Apache JMeter 

BlazeMeter supports both.

The easiest way of creating a test plan is just recording it using BlazeMeter Chrome Extension.

Once you have the test script you can upload it and use the relevant API endpoints for running the test.
Reply all
Reply to author
Forward
0 new messages