mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 14:29:44 +08:00
refactor: move ios options to pkg/uixt/options
This commit is contained in:
@@ -5,13 +5,13 @@ package hrp
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/httprunner/httprunner/v5/pkg/uixt"
|
||||
"github.com/httprunner/httprunner/v5/pkg/uixt/options"
|
||||
)
|
||||
|
||||
func TestIOSSettingsAction(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("ios ui action on Settings").
|
||||
SetIOS(uixt.WithWDAPort(8700), uixt.WithWDAMjpegPort(8800)),
|
||||
SetIOS(options.WithWDAPort(8700), options.WithWDAMjpegPort(8800)),
|
||||
TestSteps: []IStep{
|
||||
NewStep("launch Settings").
|
||||
IOS().Home().Tap("设置").
|
||||
@@ -50,7 +50,7 @@ func TestIOSSearchApp(t *testing.T) {
|
||||
func TestIOSAppLaunch(t *testing.T) {
|
||||
testCase := &TestCase{
|
||||
Config: NewConfig("启动 & 关闭 App").
|
||||
SetIOS(uixt.WithWDAPort(8700), uixt.WithWDAMjpegPort(8800)),
|
||||
SetIOS(options.WithWDAPort(8700), options.WithWDAMjpegPort(8800)),
|
||||
TestSteps: []IStep{
|
||||
NewStep("终止今日头条").
|
||||
IOS().AppTerminate("com.ss.iphone.article.News"),
|
||||
|
||||
Reference in New Issue
Block a user