zlorb / locust.replay

Record and playback Locust.io tests with MITMproxy
58 stars 16 forks source link

Locust "EOL while scanning string literal" #10

Closed ZukkyBaig closed 6 years ago

ZukkyBaig commented 6 years ago

Hi,

I managed to run the locust script in mitmproxy using linux subsystem in Windows perfectly. I used: locust.code.clip "~d hosturl.com" and it brought back the locust script. However, the 'data' variable in the Locustfile is like this:

data = '''b'{"pageName":"getStarted","initialPageLoad":5050,"finishedLoadTime":2120}''''

When I run the locustfile.py, an error is outputted:

Syntax Error: EOL while scanning string literal

Which then points to the abovementioned code line. I have tried different variations to get this to read correctly, if you have faced this issue before, what would you suggest to use?

zlorb commented 6 years ago

Can you please share python, mitmproxy, and locust versions, as well as the command line used to run the locus file?

zlorb commented 6 years ago

Issue should be fixed now.