Giter Club home page Giter Club logo

Comments (9)

rabelenda avatar rabelenda commented on June 30, 2024

Hello @BojteTamasMO,

can you give an example of how you envision such integration?

Regards

from jmeter-java-dsl.

BojteTamasMO avatar BojteTamasMO commented on June 30, 2024

if you have:

public void postCartItem(String payload) {
  TestPlanStats stats =
      testPlan(
              threadGroup(
                  18,
                  10,
                  httpSampler("https")
                      .header("content-type", JSON.toString())
                      .header("Authorization", "Bearer " + getAccessToken())
                      .post(payload, MimeTypes.Type.APPLICATION_JSON)),
              influxDbListener("http://localhost:8086/write?db=jmeter"),
              // this is just to log details of each request stats
              jtlWriter("test.jtl"))
          .run();
  assertThat(stats.overall().elapsedTimePercentile99()).isLessThan(Duration.ofSeconds(5));

can be nice to have a way to add in the request name or the link in the description

from jmeter-java-dsl.

rabelenda avatar rabelenda commented on June 30, 2024

I still don't understand what is what you expect, and how the second comment relates to integrating with rest assured. Can you provide and example of expected jmeter-java-dsl or rest assured code and example of expected result?

from jmeter-java-dsl.

BojteTamasMO avatar BojteTamasMO commented on June 30, 2024

Sorry for being unclear.
The request should be to have the httpSampler method with the type of parameter 'RequestSpecification', and there this library will get everything what it needs.
For example you have :

  private RequestSpecification request(String url) {
    return requestSpecification
        .get()
        .baseUri(url)
        .contentType("application/vnd.api+json")
        .accept(ContentType.JSON);

testPlan(threadGroup( 18, 10, httpSampler(request("url")).run()

from jmeter-java-dsl.

rabelenda avatar rabelenda commented on June 30, 2024

Thank you,

I now understand what you are trying to achieve. Is this just an idea or do you have a specific requirement?

We could implement such feature, but seems to cover a very specific use case, which we will not invest efforts for the time being.

If this issue receives more votes we may consider implementing a jmeter-java-dsl to support this particular feature.

You are more than welcome to submit a pull request for such a feature if you like.

Regards, and thank you again for clarifying and proposing new ideas like this one.

from jmeter-java-dsl.

aabirdaneshyar avatar aabirdaneshyar commented on June 30, 2024

This will be very nice feature to have.

from jmeter-java-dsl.

rabelenda avatar rabelenda commented on June 30, 2024

Hi,

@BojteTamasMO, did you close this issue for any particular reason? Are you no longer interested in this feature? Maybe makes sense to keep the issue open to collect feedback from other potentially interested users and eventually (if there is enough interest), implement requested support.

Regards

from jmeter-java-dsl.

BojteTamasMO avatar BojteTamasMO commented on June 30, 2024

I've thought that you have a lot of work and you don't have time.

from jmeter-java-dsl.

rabelenda avatar rabelenda commented on June 30, 2024

Yes, thank you for your consideration. But, if enough interest arises in this matter I may re prioritize things.

Regards

from jmeter-java-dsl.

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.