mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
change: remove unused methods
This commit is contained in:
@@ -68,54 +68,6 @@ func TestIOSAppLaunch(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestIOSCameraPhotoCapture(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("ios camera photo capture"),
|
||||
TestSteps: []IStep{
|
||||
NewStep("launch camera").
|
||||
IOS().Home().
|
||||
StopCamera().
|
||||
StartCamera().
|
||||
Validate().
|
||||
AssertLabelExists("PhotoCapture", "拍照按钮不存在"),
|
||||
NewStep("start recording").
|
||||
IOS().Tap("PhotoCapture"),
|
||||
},
|
||||
}
|
||||
err := NewRunner(t).Run(testCase)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIOSCameraVideoCapture(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("ios camera video capture"),
|
||||
TestSteps: []IStep{
|
||||
NewStep("launch camera").
|
||||
IOS().Home().
|
||||
StopCamera().
|
||||
StartCamera().
|
||||
Validate().
|
||||
AssertLabelExists("PhotoCapture", "录像按钮不存在"),
|
||||
NewStep("switch to video capture").
|
||||
IOS().
|
||||
SwipeRight().
|
||||
Validate().
|
||||
AssertLabelExists("VideoCapture", "拍摄按钮不存在"),
|
||||
NewStep("start recording").
|
||||
IOS().
|
||||
Tap("VideoCapture"). // 开始录像
|
||||
Sleep(5).
|
||||
Tap("VideoCapture"), // 停止录像
|
||||
},
|
||||
}
|
||||
err := NewRunner(t).Run(testCase)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIOSDouyinAction(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("ios ui action on 抖音"),
|
||||
|
||||
Reference in New Issue
Block a user