| Package | Description |
|---|---|
| us.abstracta.jmeter.javadsl | |
| us.abstracta.jmeter.javadsl.http |
| Modifier and Type | Method and Description |
|---|---|
static DslHttpSampler |
JmeterDsl.httpSampler(Class<? extends PropertyScriptBuilder.PropertyScript<String>> urlSolverClass)
Same as
JmeterDsl.httpSampler(Function) but with support for running at scale in a remote
engine. |
static DslHttpSampler |
JmeterDsl.httpSampler(Function<DslJsr223PreProcessor.PreProcessorVars,String> urlSupplier)
Builds an HTTP Request sampler to sample HTTP requests with a dynamically calculated URL.
|
static DslHttpSampler |
JmeterDsl.httpSampler(String url)
Builds an HTTP Request sampler to sample HTTP requests.
|
static DslHttpSampler |
JmeterDsl.httpSampler(String name,
Class<? extends PropertyScriptBuilder.PropertyScript<String>> urlSolverClass)
Same as
JmeterDsl.httpSampler(Class) but allowing to set a name to the HTTP Request sampler. |
static DslHttpSampler |
JmeterDsl.httpSampler(String name,
Function<DslJsr223PreProcessor.PreProcessorVars,String> urlSupplier)
Same as
JmeterDsl.httpSampler(Function) but allowing to set a name to the HTTP Request sampler. |
static DslHttpSampler |
JmeterDsl.httpSampler(String name,
String url)
Same as
JmeterDsl.httpSampler(String) but allowing to set a name to the HTTP Request sampler. |
| Modifier and Type | Method and Description |
|---|---|
DslHttpSampler |
DslHttpSampler.body(Class<? extends PropertyScriptBuilder.PropertyScript<String>> bodySolverClass)
Same as
body(Function) but with support for running at scale in a remote engine. |
DslHttpSampler |
DslHttpSampler.body(Function<DslJsr223PreProcessor.PreProcessorVars,String> bodySupplier)
Same as
body(String) but allows using dynamically calculated HTTP request body. |
DslHttpSampler |
DslHttpSampler.body(String body)
Specifies the body to be sent in the HTTP request generated by the sampler.
|
DslHttpSampler |
DslHttpSampler.bodyFile(String filePath)
Specifies a file to be sent as body of the request.
|
DslHttpSampler |
DslHttpSampler.bodyFilePart(String name,
String filePath,
org.apache.http.entity.ContentType contentType)
Specifies a file to be sent in a multipart form body.
|
DslHttpSampler |
DslHttpSampler.bodyPart(String name,
String value,
org.apache.http.entity.ContentType contentType)
Specifies a part of a multipart form body.
|
DslHttpSampler |
DslHttpSampler.clientImpl(DslHttpSampler.HttpClientImpl clientImpl)
Allows specifying the HTTP client implementation to use for this particular sampler.
|
DslHttpSampler |
DslHttpSampler.downloadEmbeddedResources()
Allows enabling automatic download of HTML embedded resources (images, iframes, etc).
|
DslHttpSampler |
DslHttpSampler.downloadEmbeddedResources(boolean enable)
Same as
downloadEmbeddedResources() but allowing to enable or disable the setting. |
DslHttpSampler |
DslHttpSampler.downloadEmbeddedResourcesMatching(String urlRegex)
Same as
downloadEmbeddedResources() but allowing to specify which embedded resources
to actually download. |
DslHttpSampler |
DslHttpSampler.downloadEmbeddedResourcesNotMatching(String urlRegex)
Same as
downloadEmbeddedResources() but allowing to ignore embedded resources with URL
matching a given regular expression. |
DslHttpSampler |
DslHttpSampler.encoding(Charset encoding)
Specifies the charset to be used to encode URLs and request contents.
|
DslHttpSampler |
DslHttpSampler.followRedirects(boolean followRedirects)
Allows enabling/disabling automatic request for redirects.
|
DslHttpSampler |
DslHttpSampler.method(String method)
Specifies the HTTP method to be used in the HTTP request generated by the sampler.
|
DslHttpSampler |
DslHttpSampler.param(String name,
String value)
Allows specifying a query parameter or url encoded form body parameter.
|
DslHttpSampler |
DslHttpSampler.post(Class<? extends PropertyScriptBuilder.PropertyScript<String>> bodySolverClass,
org.apache.http.entity.ContentType contentType)
Same as
post(Function, ContentType) but with support for running at scale in a remote
engine. |
DslHttpSampler |
DslHttpSampler.post(Function<DslJsr223PreProcessor.PreProcessorVars,String> bodySupplier,
org.apache.http.entity.ContentType contentType)
Same as
post(String, ContentType) but allowing to use a dynamically calculated body. |
DslHttpSampler |
DslHttpSampler.post(String body,
org.apache.http.entity.ContentType contentType)
Specifies that the sampler should send an HTTP POST to defined URL.
|
DslHttpSampler |
DslHttpSampler.rawParam(String name,
String value)
Same as
param(String, String) but param name and value will be sent with no additional
encoding. |
Copyright © 2024. All rights reserved.