from locust import HttpLocust, TaskSet, task


class UserBehavior(TaskSet):
    tasks = []

    def on_start(self):
        pass

    @task
    def index(self):
        self.client.get("/")

    @task
    def move_map(self):
        self.client.get("")

    @task
    def select_scene(self):
        # Get url


        self.client.get()

        @task
        def render_preview(self):
            self.client.get()

        @task
        def render_full(self):
            self.client.get()


class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 1000
    max_wait = 5000

@@ -38,16 +38,89 @@
 t, task%0A
+from bs4 import BeautifulSoup%0Afrom requests import Session%0Aimport random%0A
 %0A%0Aclass 
@@ -146,24 +146,8 @@
 t):%0A
-    tasks = %5B%5D%0A%0A
     
@@ -267,32 +267,224 @@
 move_map(self):%0A
+        lat = random.uniform(-1, 1)%0A        lon = random.uniform(-1, 1)%0A        response = self.client.post(%0A            url=%22/ajax%22,%0A            data=%7B'lat': lat, 'lng': lng,%7D%0A            )%0A%0A
         self.cli
@@ -492,32 +492,36 @@
 nt.get(%22%22)%0A%0A    
+ 
+   
 @task%0A    def se
@@ -510,24 +510,28 @@
   @task%0A    
+ 
+   
 def select_s
@@ -550,16 +550,20 @@
         
+    
 # Get ur
@@ -564,18 +564,76 @@
 Get url%0A
-%0A%0A
+            soup = BeautifulSoup(self.client.get(%22%22))%0A%0A%0A    
         
@@ -651,32 +651,36 @@
 .get()%0A%0A        
+    
 @task%0A        de
@@ -669,32 +669,36 @@
   @task%0A        
+   
+ 
 def render_previ
@@ -711,32 +711,36 @@
 f):%0A            
+    
 self.client.get(
@@ -734,32 +734,36 @@
 f.client.get()%0A%0A
+    
         @task%0A  
@@ -760,32 +760,36 @@
   @task%0A        
+    
 def render_full(
@@ -787,32 +787,36 @@
 der_full(self):%0A
+    
             self

Add random functionality to map move.