简体   繁体   中英

How to load testing an application that calling external service APIs using Jmeter?

I currently want to perform a load testing an application using Jmeter but some functions need to call an external service APIs.

So I want to know how do I test those APIs without the app calling the actual external API service.

For example, I want to test an application that calling Google Maps Platform Directions API to get a direction from point A to B.

There is a concept of Mock Object , you can configure your application to point to your own external API implementation instead of Directions API which will return static or random or pre-defined response.

One of possible options is using ie Wiremock for this, you can interact with Wiremock REST API using JMeter's HTTP Request samplers to create/amend mock responses on the fly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM