MCPcopy
hub / github.com/httprunner/httprunner / TestIOSCameraVideoCapture

Function TestIOSCameraVideoCapture

hrp/step_mobile_ui_test.go:91–117  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

89}
90
91func TestIOSCameraVideoCapture(t *testing.T) {
92 testCase := &TestCase{
93 Config: NewConfig("ios camera video capture"),
94 TestSteps: []IStep{
95 NewStep("launch camera").
96 IOS().Home().
97 StopCamera().
98 StartCamera().
99 Validate().
100 AssertLabelExists("PhotoCapture", "录像按钮不存在"),
101 NewStep("switch to video capture").
102 IOS().
103 SwipeRight().
104 Validate().
105 AssertLabelExists("VideoCapture", "拍摄按钮不存在"),
106 NewStep("start recording").
107 IOS().
108 Tap("VideoCapture"). // 开始录像
109 Sleep(5).
110 Tap("VideoCapture"), // 停止录像
111 },
112 }
113 err := NewRunner(t).Run(testCase)
114 if err != nil {
115 t.Fatal(err)
116 }
117}
118
119func TestIOSDouyinAction(t *testing.T) {
120 testCase := &TestCase{

Callers

nothing calls this directly

Calls 13

NewConfigFunction · 0.85
NewStepFunction · 0.85
NewRunnerFunction · 0.85
AssertLabelExistsMethod · 0.80
HomeMethod · 0.80
IOSMethod · 0.80
SleepMethod · 0.80
StartCameraMethod · 0.65
StopCameraMethod · 0.65
TapMethod · 0.65
RunMethod · 0.65
ValidateMethod · 0.45

Tested by

no test coverage detected