GRPC automation test example with NodeJS (as Server) and K6 by Grafana Labs (as Client)
-
Clone this repository
-
Build GRPC Dummy Server with
Dockerfile
(file provided)- execute
docker build -t <your_image_tag> <path/to/Dockerfile>
- start the server
docker run --name <"your_container_name"> -p 50051:50051 -d <your_image>
- execute
-
Install K6 and run it with command
k6 run -e IPaddress=localhost ./client/tests/run_test.js