Comments (9)
Hello @BojteTamasMO,
can you give an example of how you envision such integration?
Regards
from jmeter-java-dsl.
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.
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.
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.
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.
This will be very nice feature to have.
from jmeter-java-dsl.
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.
I've thought that you have a lot of work and you don't have time.
from jmeter-java-dsl.
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)
- jmdsl fails to convert a test plan with JDBC request where query is read via a csvdataset config using the variable of csvdataset HOT 1
- JMeter 5.6 upgrade HOT 5
- Add support to jmeter-influxdb2-listener-plugin HOT 4
- Add support for the User Parameters preprocessor HOT 3
- Header inheritance fails if encounters JSR223 sampler with SamplerScript class HOT 3
- Support both a number of iterations and Duration HOT 3
- Provide support to read files from directory like Directory Listing Config HOT 3
- Add graphite in BackendListener like InfluxDbBackendListener HOT 3
- Add support for saving variables between different threads HOT 3
- Add support for lambdas in azure HOT 4
- Add support to Stepping Thread Group HOT 3
- Flow control action HOT 8
- RpsThreadgroup - IllegalArgumentException (Host may not be blank) HOT 11
- Support for Prometheus Listener for generating Grafana dashboard HOT 12
- getting socket connection closed when using rpsThreadGroup HOT 2
- Add support HTTP2 & gRCP HOT 2
- InfluxDB listener HOT 3
- Want to use in python projects HOT 3
- Remote Testing java.lang.NoSuchMethodException: DistributedJmeterEngine$1.<init>() HOT 1
- IllegalArgumentException: URI is not hierarchical HOT 2
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-java-dsl.