Purpose¶
The purpose of this guide is to describe how the k6 scripts used for automated testing in KaaS can be used.
Prerequisites¶
- Access to relevant k6 scripts
- Access to relevant parameter values, including security credentials
Step-by-step¶
- Locate the GIT repo that contains the script you want to run, and download it as Zip
- Show in folder, righ-click and select 'properties' and make sure unblock is selected in the general tab
- Extract the folder to C:\TEMP
- Go to the folder, click on the Windows Explorer's location bar, type cmd and hit enter
- Modify and run below script
k6.exe run -e MAP_BASE_URL=
-e MAP_CLIENT_ID= -e MAP_CLIENT_SECRET= -e KAAS_REST_PROXY_BASE_URL= -e KAAS_REST_PROXY_API_KEY= -e KAAS_REST_PROXY_API_SECRET= ./integration/integration-test.js
- Open the folder, go to test > integration > reports and open the HTML file to see the report