1/14/2024 0 Comments Stress test api postmanYou have now k6 installed on your machine.Ĭontinuing ahead, now let’s move to the implementation part. npm install -g postman-to-k6Īnd voila, that’s it. Moving on to the installation, open up the terminal and execute the following commands, assuming that you already have npm configured. This is written in javaScript and need npm and nodes js to work smoothly. Just like many other tools, for example, Gatling, k6 is k6 is an open-source load testing tool for testing the performance of APIs, microservices, and websites. Once we have these pre-requisites satisfied, we can proceed with installing k6 on our machine. Since k6 is based on javaScript, it makes sense to have JavaScript run-time environment on our machine. How to use k6 with the Postman? Installtionīefore moving on to the implementation part, the main pre-requisites are listed below. Moving on, let’ see how we can use the k6 library to perform load testing via the postman. I hope, I was successful to apprise you for what I’m trying to explain. In this case, you can measure the actual robustness of your application. The performance of an application can be best measured when you create virtual users who may try to access the application parallel. So in technical terms, this is not pure load testing. In this scenario, you are making a request for each test 100 times sequentially only. Suppose, you are using postman runner to perform load testing by keeping the run iteration to be, say, 100. The only reason for this is parallel execution. On top of that, the postman runner comes by default when we install the postman application, so why do we need to use something else? My answer is, I agree with this rationalization if we overlook one flaw. Load testing with the postman is not something that we usually do and as I mentioned earlier, one may advocate that we already have the postman runner. Now, let’s quickly move to load testing using Postman. It determines how the software application behaves while being accessed by multiple users simultaneously. Load Testing is a non-functional software testing process in which the performance of a software application is tested under a specific expected load. For those, who are new to this concept, let me explain it quickly in a single sentence. I’m pretty sure that most of you already know what load testing is. But this approach has a major flaw in it, we’ll explore it later. You may think that we already have a postman runner and we can run the collections by increasing the iteration. In this short blog, we will explore how we can use our functional postman collections to perform load testing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |