测试常用数据

/ 默认分类 / 0 条评论 / 401浏览

 ${saveData(agent_token,$agent_token)}

extract: variable.${getRandJson(carTrack)} -> __dict--["var"]
validate: var.plateNumber

#csdn copy
$("#content_views pre code").css("user-select","text");
wstock list -n -i 3000

func
${getDateStringUtil(days=-3)}
${obtainCountNew("id=17")}
车牌号
strNum
生成5位   strNum = "京A"+String.valueOf((int)((Math.random()*9+1)*10000));
输入车牌  ${strNum}
验证车牌  //div[div/div[text()='"+strNum+"']]/div/div/span[text()='审核中']
${teardown_hooks_extract_cookie($response, $request)}
${strCompare(text1,$text)}
print(driver.getContextHandles());
${paySignListType($request,CcbOrderRequest.OrderChild)}
${genOrderNo()}
${isKeyPresent($cjj,driverLicenceLongEffective)}
orderCancelResultType
${getData(sj_token)}
${saveData(lzy_jk_token,$lzy_jk_token)}
reqBodyObj = json.loads(response.request.body.decode('utf-8'))

xpath.//*[@id='contentTable']/tbody/tr/td[count(//table/thead/tr/th[text()='上线操作']/preceding-sibling::th)+1]/a/@href
${parseUrlKey($href, certifyCode)}


hcache

wget https://silenceshell-1255345740.cos.ap-shanghai.myqcloud.com/hcache -O /usr/local/bin/hcache


shell
nohup /wyyt/app/easy-mock/node-v8.9.0-linux-x64/bin/node app.js &
docker http://192.168.5.96:8090/
docker run -itd --volume /wyyt/app/conan/docker/conan-data:/imageWorkspace/packages --name conan -p5601:5601 -p 6379:6379 -p 3306:3306 -p 2181:2181 -p 9092:9092 -p 9200:9200 -p 8080:8080 -p 8081:8081 -p 8082:8082 -p 8090:8090 eptal/conan
进入容器:docker attach 容器ID
          docker exec -it 容器ID /bin/bash
          定时任务添加
curl --location --request POST 'http://192.168.0.187/api/task/run' --header 'Content-Type: application/json' --data-raw '{"id":7}'
adb shell dumpsys activity top|findstr ACTIVITY
adb shell ps 13812
微信handler
[NATIVE_APP, WEBVIEW_com.tencent.mm:appbrand0, WEBVIEW_com.tencent.mm:tools, WEBVIEW_com.tencent.mm:toolsmp]
[NATIVE_APP, WEBVIEW_com.tencent.mm:tools, WEBVIEW_com.tencent.mm:appbrand0, WEBVIEW_com.tencent.mm:toolsmp]
微信账号:18086501679
swipeinscroll : {x:0.5,y:0.8} {x:0.5,y:0.6}
print(driver.getContextHandles());
返回 : 发送KeyCode到 4
strNum = RandomStrFunction.getRandomNum("5");
back: ${公众号主页面_title}  -50 -100



xpath
//div[div/div/span[text()='177****1424']]/div[@class='item-delete']
//div[div/div[text()='京B11111']]/div/div/span[text()='审核中']
//div[@class='card']/div/div/div[1]/div[@class='pre-right']
/html/body/div[1]/div/div[3]/div/div[3]/div/button[1]/span
//div[@class='el-dialog__wrapper' and not(contains(@style, 'display'))]//div/div/button
导出表格-确定  - 导出报表-确定
//div[@class='el-dialog__wrapper' and not(contains(@style, 'display'))]//div/span/button[2]
//div[@class='el-message-box__wrapper' and not(contains(@style, 'display'))]//button[span[contains(text(),'确定')]]
//div[@class='el-dialog__wrapper' and not(contains(@style, 'display'))]//button[span[text()='确 定']]
//div[@class='el-dialog__wrapper' and  not(contains(@style, 'display'))]//span[text()='确定']

/html/body/div[1]/div/section/section/div/main/div/div[4]/div/div[4]/div[2]/table/tbody/tr/td[11]
//div[@class='van-swipe-cell']/div/div[2]/div[text()='京A11111']
assertThat($.elementIsExist("AndroidUIAutomator", "new UiSelector().description(\"暂无数据\")")).contains("Unable to locate element");
assertThat($.elementIsExist2("AndroidUIAutomator", "new UiSelector().description(\"暂无数据\")")).isEqualTo(true);
assertThat($.isElementExist("xpath", "//p[text()='生成二维码异常']")).contains("Unable to locate element");
assertThat($.isElementExist("xpath", "//p[text()='生成二维码异常']")).isEqualTo(false);
xpath.//*[@id='contentTable']/tbody/tr/td[count(//table/thead/tr/th[text()='签约编号']/preceding-sibling::th)+1]/text()
xpath.//table[@id='contentTable']/tbody/tr/td[count(//table/thead/tr/th[text()='企业编号']/preceding-sibling::th)+1]/a/@href

//div/div[3]/div/div[3]/table/tbody/tr[td/div/div[contains(text(),'食品/1111')]]/td[3]/div/button/span
/html/body/div/div[2]/section/section/main/div/div/div[3]/div[4]/div[2]/table/tbody/tr[1]/td[9]/div/button[1]/span
content-desc  客户切换成功
//android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.view.View[1]/android.view.View[1]/android.view.View[1]/android.view.View[1]/android.view.View[1]
//android.widget.ImageView[contains(@content-desc,'"+company_account+"')]