mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 05:49:40 +08:00
change: bump version to v4.3.4
This commit is contained in:
@@ -1 +1 @@
|
||||
v4.3.4-beta-2306282100
|
||||
v4.3.4
|
||||
@@ -28,7 +28,7 @@ func setupSpringBoardSrv(t *testing.T) {
|
||||
|
||||
func Test_springBoard_GetIcon(t *testing.T) {
|
||||
setupSpringBoardSrv(t)
|
||||
raw, _ := springBoardSrv.GetIconPNGData("com.tencent.xin")
|
||||
raw, _ := springBoardSrv.GetIconPNGData("com.ss.iphone.ugc.Aweme")
|
||||
img, format, err := image.Decode(raw)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
@@ -212,12 +212,6 @@ func Test_remoteWD_Homescreen(t *testing.T) {
|
||||
func Test_remoteWD_AppLaunch(t *testing.T) {
|
||||
setup(t)
|
||||
|
||||
// bundleId = "com.hustlzp.xcz"
|
||||
// bundleId = "com.github.stormbreaker.prod"
|
||||
// bundleId = "com.360buy.jdmobile"
|
||||
// bundleId = "com.zhihu.ios"
|
||||
// bundleId = "com.tencent.xin"
|
||||
// bundleId = "com.jsmcc.ZP7267A6ES"
|
||||
err := driver.AppLaunch(bundleId)
|
||||
// err := driver.AppLaunch(bundleId, NewAppLaunchOption().WithShouldWaitForQuiescence(true))
|
||||
// err := driver.AppLaunch(bundleId, NewAppLaunchOption().WithArguments([]string{"-AppleLanguages", "(Russian)"}))
|
||||
|
||||
@@ -68,36 +68,6 @@ func TestIOSAppLaunch(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestIOSWeixinLive(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("ios ui action on 微信直播").
|
||||
SetIOS(uixt.WithWDALogOn(true), uixt.WithWDAPort(8100), uixt.WithWDAMjpegPort(9100)),
|
||||
TestSteps: []IStep{
|
||||
NewStep("启动微信").
|
||||
IOS().
|
||||
Home().
|
||||
AppTerminate("com.tencent.xin"). // 关闭已运行的微信,确保启动微信后在「微信」首页
|
||||
Tap("微信").
|
||||
Validate().
|
||||
AssertLabelExists("通讯录", "微信启动失败,「通讯录」不存在"),
|
||||
NewStep("进入直播页").
|
||||
IOS().
|
||||
Tap("发现").Sleep(5). // 进入「发现页」;等待 5 秒确保加载完成
|
||||
TapByOCR("直播"). // 通过 OCR 识别「直播」
|
||||
Validate().
|
||||
AssertLabelExists("直播"),
|
||||
NewStep("向上滑动 3 次,截图保存").
|
||||
Loop(3). // 整体循环 3 次
|
||||
IOS().
|
||||
SwipeUp().SwipeUp().ScreenShot(), // 上划 2 次,截图保存
|
||||
},
|
||||
}
|
||||
err := NewRunner(t).Run(testCase)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIOSCameraPhotoCapture(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("ios camera photo capture"),
|
||||
|
||||
Reference in New Issue
Block a user