MCPcopy
hub / github.com/httprunner/httprunner / TestIOSCameraPhotoCapture

Function TestIOSCameraPhotoCapture

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

Source from the content-addressed store, hash-verified

69}
70
71func TestIOSCameraPhotoCapture(t *testing.T) {
72 testCase := &TestCase{
73 Config: NewConfig("ios camera photo capture"),
74 TestSteps: []IStep{
75 NewStep("launch camera").
76 IOS().Home().
77 StopCamera().
78 StartCamera().
79 Validate().
80 AssertLabelExists("PhotoCapture", "拍照按钮不存在"),
81 NewStep("start recording").
82 IOS().Tap("PhotoCapture"),
83 },
84 }
85 err := NewRunner(t).Run(testCase)
86 if err != nil {
87 t.Fatal(err)
88 }
89}
90
91func TestIOSCameraVideoCapture(t *testing.T) {
92 testCase := &TestCase{

Callers

nothing calls this directly

Calls 11

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

Tested by

no test coverage detected