A simple python script, which will consume the Gatling Logs to give a html page, which will have scenario based graphs.
- Python 3 or up
- Pandas Library
- Bokeh Library
If you are newbie, then please refer to section - Setup from Scratch
If you are running for the first time or have no clue how to setup, then follow these steps:
- Setting up on Windows Machine:
- Download latest release of Python.
- Install Pandas.
- Install Bokeh:
pip install bokeh
python create_gatling_scenario_graphs.py -i <location of Gatling Log Files separated by ,> -o <output location of the Graph HTML Page> -p <percentile> -t <timezone +/- hrs>
Eg:
python create_gatling_scenario_graphs.py -i C:\Logs\simulation_log1.log,C:\Logs\simulation_log2.log -o C:\Graphs\LoadTest_run1.html -p 99 -t 10.5
Arguments o, p and t are optional. Default value of:
- o is same folder as that of script.
- p is 95 percentile
- t is 'O' (zero) - means it will take the same time as in Gatling Logs
More on Timezone Argument Eg: If your timezone is UTC(GMT) + 10.5, then 't' will be 10.5
Note: Log Files, should be given without any spaces
If successful, you should see something like below:
A sample graph looks like this. Please find below some sample screenshots.
95th vs RPS (Requests Per Second)
Graph can be explored by using following tools:
These tools can be found in the toolbar present under every plot. Toolbar looks like: