提交 504b584f 编写于 作者: Z zhouke

uitest测试框架 xts用例调整.Signed-off-by: <zhouke35@huawei.com>.

Signed-off-by: Nzhouke <zhouke35@huawei.com>
上级 858c54ec
...@@ -54,7 +54,7 @@ export default function OnAndOffScreenTest() { ...@@ -54,7 +54,7 @@ export default function OnAndOffScreenTest() {
async function slideScreen(TAG) { async function slideScreen(TAG) {
console.log(TAG + "slideScreen start"); console.log(TAG + "slideScreen start");
var driver = UiDriver.create(); var driver = UiDriver.create();
await driver.swipe(1000, 3000, 1000, 500, 1200).then((data) => { await driver.swipe(1000, 3000, 1000, 500).then((data) => {
console.log(TAG + "swipe : " + JSON.stringify(data)); console.log(TAG + "swipe : " + JSON.stringify(data));
}).catch((error) => { }).catch((error) => {
console.log(TAG + "swipe error = " + JSON.stringify(error)); console.log(TAG + "swipe error = " + JSON.stringify(error));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册