SvenskaSpel / har2locust

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

Have an option to generate with HttpUser not FastHttpUser #8

Open arthurzenika opened 7 months ago

arthurzenika commented 7 months ago

I'm having some segfaults with FastHttpUser, and to fast track to a working version I'm switching the generated file to HttpUser for it not to segfault.

I then need to replace all self.rest( with self.client.request( for the locustfile to work.

Would it be possible to have an option for this ? I know this can probably be done with a template, but this might interest some other users.

(oh and by the way, I ♥ har2locust, it's really awesome for my use case! )

cyberw commented 6 months ago

The rest part is easy (even though rest should work for HttpUser too in more recent locust versions?). Just add --disable-plugin rest.py to your command line.

It would be interesting to see your segfaults too (or rather, your environment. if you have a locally built geventhttpclient then maybe try installing a binary one)