예제 #1
0
        swipeUp(0.1)
        print "向下滑动第", i, "次"
except Exception:
    fn()
finally:
    print "done"


def test_top():
    print "1.验证置顶按钮"


try:
    buttotop = d(class_name="Button", name="list go top", label="list go top")
    rp.assert_ui_exists(d(name='list go top'),
                        desc='顶部按钮出现',
                        screenshot=True,
                        safe=True)
    buttotop.click()
except Exception:
    fn()
finally:
    print "done"

print "2、下载图片"


def test_down():
    print "验证下载图片"


try:
예제 #2
0
    d.delay(1)
    d(class_name="Button", label="ipad stickers close").click()
    d.delay(1)
    d(class_name="Button", label="wp nav back").click()
    d.delay(1)
    d(class_name="Button", index=6).click()
    d.delay(1)
    d(class_name="Cell").click()
    d.delay(1)
    d(class_name="Button", label="DIY").click()
    d.delay(1)
    d(class_name="Button", label="个性贴纸").click()
    d.delay(1)
    d(class_name="StaticText", label="可爱表情").click()
    d.delay(1)
    rp.assert_ui_exists(d(text='可爱表情'), desc='贴纸下载成功')
    d(class_name="Button", label="取消").click()
    d.delay(1)
    d(class_name="Button", label="返回").click()
    d.delay(1)
    d(class_name="Button", label="wp nav back").click()
    d.delay(1)
    d(class_name="Button", index=7).click()
    d.delay(1)
    d(class_name="StaticText", label="可爱表情").click()
    d.delay(1)
    d(class_name="Button", label="删除").click()
    d(class_name="Button", label="ipad stickers close").click()
    d(class_name="Button", label="wp nav back").click()
    print "第13个步骤执行完成"
except Exception: