ZTBT ${url} ${headers} Create Session: create a HTTP session to a server Variable '${headers}' not found. ${repsponse} ZTBT recycle-service/proxy-sell-activity/list params=pageNum=1&pageSize=15 Sends a GET request on a previously created HTTP Session. ${records} ${repsponse.json()["data"]} records Returns a value from the given ``dictionary`` based on the given ``key``. ${item} @{records} ${item} ${activityName} ${item} activityName Returns a value from the given ``dictionary`` based on the given ``key``. ${paperCategoryList} ${item} paperCategoryList Returns a value from the given ``dictionary`` based on the given ``key``. ${paperMillId} ${item} paperMillId Returns a value from the given ``dictionary`` based on the given ``key``. ${activityId} ${item} activityId Returns a value from the given ``dictionary`` based on the given ``key``. '${activityName}'=='无账期活动一次' Stops executing the enclosing for loop if the ``condition`` is true. ${Category_value} random.choice(${paperCategoryList}) random Evaluates the given expression in Python and returns the result. \nvalue: ${Category_value} Logs the given message to the console. ${categoryId} ${Category_value} categoryId Returns a value from the given ``dictionary`` based on the given ``key``. ${categoryName} ${Category_value} categoryName Returns a value from the given ``dictionary`` based on the given ``key``. ${unitPrice} ${Category_value} unitPrice Returns a value from the given ``dictionary`` based on the given ``key``. ${paperMillId} Makes a variable available globally in all tests and suites. ${activityId} Makes a variable available globally in all tests and suites. ${categoryId} Makes a variable available globally in all tests and suites. ${categoryName} Makes a variable available globally in all tests and suites. ${unitPrice} Makes a variable available globally in all tests and suites. Variable '${headers}' not found. get-carinfo ${url} ${headers} Create Session: create a HTTP session to a server Variable '${headers}' not found. ${reps} get-carinfo recycle-service/proxy-sell/get/his-car-info Sends a GET request on a previously created HTTP Session. ${reps.json()} Logs the given message with the given level. ${carNumber} ${reps.json()["data"]} records Returns a value from the given ``dictionary`` based on the given ``key``. ${plateNumber_value} random.sample(${carNumber},1) random Evaluates the given expression in Python and returns the result. \nvalue:${plateNumber_value} Logs the given message to the console. ${plateNumber1} ${plateNumber_value[0]} plateNumber Returns a value from the given ``dictionary`` based on the given ``key``. ${plateNumber1} Makes a variable available globally in all tests and suites. Variable '${headers}' not found. ZTBT ${url} ${headers} Create Session: create a HTTP session to a server Variable '${headers}' not found. ${reps} ZTBT recycle-service/get/paper-mill-paper-category-price-details/${paperMillId} Sends a GET request on a previously created HTTP Session. ${reps.json()} Logs the given message with the given level. Variable '${headers}' not found. ZTBT ${url} ${headers} Create Session: create a HTTP session to a server Variable '${headers}' not found. ${reps} ZTBT recycle-service/proxy-sell/get/relation Sends a GET request on a previously created HTTP Session. ${bizUserId} ${reps.json()["data"]} bizUserId Returns a value from the given ``dictionary`` based on the given ``key``. ${cusormerId} ${reps.json()["data"]} cusormerId Returns a value from the given ``dictionary`` based on the given ``key``. ${customerName} ${reps.json()["data"]} customerName Returns a value from the given ``dictionary`` based on the given ``key``. ${bizUserId} Makes a variable available globally in all tests and suites. ${cusormerId} Makes a variable available globally in all tests and suites. ${customerName} Makes a variable available globally in all tests and suites. Variable '${headers}' not found. ZTBT ${url} ${headers} Create Session: create a HTTP session to a server Variable '${headers}' not found. ${datatime} result_format=%Y-%m-%d Returns current local or UTC time with an optional increment. ${order_data} { \ \ \ \ "paperCategoryId":"${categoryId}", \ \ \ \ "unitPrice":"${unitPrice}", \ \ \ \ "totalEstimatedWeight":30000, \ \ \ \ "activityId":"${activityId}", \ \ \ \ "customerName":"${customerName}", \ \ \ \ "deliveryTime":"${datatime}", \ \ \ \ "carInfos":[ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ "plateNumber":"${plateNumber1}" \ \ \ \ \ \ \ \ } \ \ \ \ ] } Returns the given values which can then be assigned to a variables. ${reps} ZTBT recycle-service/proxy-sell/create/order ${order_data.encode('utf-8')} Sends a POST request on a previously created HTTP Session. ${reps.json()} Logs the given message with the given level. ${orderId} ${reps.json()["data"]} orderId Returns a value from the given ``dictionary`` based on the given ``key``. ${reps.json()["message"]} successful Fails if objects are unequal after converting them to strings. ${orderId} Makes a variable available globally in all tests and suites. ${datatime} Makes a variable available globally in all tests and suites. Variable '${headers}' not found. All Tests 2.2createActiveorder-1 Error in file '/root/ztb-trading-rf-api/ztb-trading-rf-api/1-Client(Test)/2.2createActiveorder-1.robot' on line 8: Setting variable '${headers}' failed: Variable '${gettoken}' not found.