<s> from locust import HttpLocust , TaskSet , task <EOL> class WebsiteTasks ( TaskSet ) : <EOL> def on_start ( self ) : <EOL> self . client . post ( "<STR_LIT>" , { <EOL> "<STR_LIT:username>" : "<STR_LIT>" , <EOL> "<STR_LIT:password>" : "<STR_LIT>" <EOL> } ) <EOL> @ task <EOL> def index ( self ) : <EOL> self . client . get ( "<STR_LIT:/>" ) <EOL> @ task <EOL> def about ( self ) : <EOL> self . client . get ( "<STR_LIT>" ) <EOL> class WebsiteUser ( HttpLocust ) : <EOL> task_set = WebsiteTasks <EOL> min_wait = <NUM_LIT:100> <EOL> max_wait = <NUM_LIT> </s>
