feat: implement ios ui swipe

This commit is contained in:
debugtalk
2022-07-27 10:22:04 +08:00
parent acae99cd8b
commit 3fd3dab9ae
5 changed files with 183 additions and 3 deletions
+2
View File
@@ -48,6 +48,7 @@ func NewRunner(t *testing.T) *HRPRunner {
Transport: &http2.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
Jar: jar, // insert response cookies into request
Timeout: 120 * time.Second,
},
// use default handshake timeout (no timeout limit) here, enable timeout at step level
@@ -69,6 +70,7 @@ type HRPRunner struct {
httpClient *http.Client
http2Client *http.Client
wsDialer *websocket.Dialer
wdaClients map[string]*wdaClient // wda client used for iOS UI automation, key is udid
}
// SetClientTransport configures transport of http client for high concurrency load testing