This simple script converts .har files to Artillery yml script. You can use it to simulate a stress test on your website.
Clone this repository in your local machine
Install python requirements
- Open your target website on chrome
- Press f12 to open chrome dev tools and go to the Network tab
- Refresh your page and navigate through your website
- When you are done, click in Export Har button
- With that .har file run this script. For this example, we will use a .har from Hackernews I generated in my machine
- Now you can run artillery on that script
- You can also customize the generated scenario phases according to artillery docs.
In config.py
you can customize the script to ignore certain requests by the url parts(IGNORE_EXT
). It has some defaults to ignore sockets and static files.
You can also change the CONVERT_THINK
option. When this option is true, the delays between requests is converted to think
operations for artillery, adding delays between requests.