*** Settings *** Library RequestsLibrary Library Collections *** Variables *** ${header} {'X-APP-ID':'470236309865238555','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525','Content-Type':'application/json'} ${URL} http://api-ops-ztb-test.qniao.cn *** Test Cases *** get_paperMill_list #获取纸厂列表 Create Session ZTBT ${URL} ${header} ${reps} Get On Session ZTBT recycle-service/admin/paperMill/get/paper-mill-list params=pageNum=1&pageSize=20 log ${reps} get_regions #获取区域 paperMill_logo #上传纸厂logo #${dict} Create Dictionary Content-Type=image/jpeg filename=20210803.jpg #Create Session ZTBT ${URL} ${dict} ${filepath} Evaluate open('E:/lyl/pict/20210803.png','rb') ${image} Evaluate open('E:/lyl/pict/20210803.png','rb') ${file} Create Dictionary filepath=${filepath} image=${image} Create Session ZTBT ${URL} log ${file} ${result} Post On Session ZTBT recycle-user-center/upload/image files=${file} ${pictures} Get From Dictionary ${result.json()} data log ${result.content} Set Global Variable ${pictures} New_paper_mill *** Keywords ***