N. Sinha
N. Sinha

Reputation: 11

Can we use Jmeter with Rest Assurred framework?

I need to know if we can implement Jmeter script with the RestAssured framework?

Upvotes: 0

Views: 2077

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

Theoretically yes, given you copy RestAssured .jar file along with dependencies to JMeter Classpath you should be able to use its methods from JSR223 Test Elements or reuse your existing tests via JUnit Request Sampler

However it would be much better to use JMeter's HTTP Request samplers as in this case you will be able to access networking metrics such as Connect Time and Latency, automatic failures on HTTP Status Codes above 399, Cookies, Headers, and Authorization management, etc.

See REST API Testing - How to Do it Right article to learn how to build an API test plan using JMeter

Upvotes: 1

Related Questions