Convert Locust to k6
locust_to_k6Convert a Locust Python load test to k6 JavaScript. Handles HttpUser tasks, wait times, on_start/on_stop, and task weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| test_type | No | Target k6 test type | load |
| project_id | No | Project to save converted script to | |
| target_url | No | Override target URL | |
| locust_code | Yes | Locust Python test code |