SvenskaSpel / har2locust

Convert HTTP Archive (.har file) to a Locust script
Other
149 stars 22 forks source link

Invlid generated class name #14

Closed ivanpuchalka closed 4 months ago

ivanpuchalka commented 4 months ago

HAR file names with invalid characters for an identifier (parentheses, brackets, etc.) generate invalid class names (and code).

Currently the only characters being replaced are "-" and ".":

name = har_path.stem.replace("-", "_").replace(".", "_")
cyberw commented 4 months ago

PR welcome :)