-
Notifications
You must be signed in to change notification settings - Fork 5
/
structs.go
53 lines (48 loc) · 2.64 KB
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package main
type TestMapping struct {
Name string `json:"name,omitempty"`
Strategy string `json:"strategy,omitempty"`
Values interface{} `json:"values,omitempty"`
}
type TestSharding struct {
NumberOfShards int `json:"numberOfShards,omitempty"`
Mapping []TestMapping `json:"mapping,omitempty"`
AutoStrategyDevices []string `json:"devices,omitempty"`
}
type BrowserStackPayload struct {
App string `json:"app"`
TestSuite string `json:"testSuite"`
Devices []string `json:"devices"`
InstrumentationLogs bool `json:"instrumentationLogs"`
NetworkLogs bool `json:"networkLogs"`
DeviceLogs bool `json:"deviceLogs"`
DebugScreenshots bool `json:"debugscreenshots,omitempty"`
VideoRecording bool `json:"video"`
Project string `json:"project,omitempty"`
ProjectNotifyURL string `json:"projectNotifyURL,omitempty"`
UseLocal bool `json:"local,omitempty"`
SkipTesting []string `json:"skip-testing,omitempty"`
OnlyTesting []string `json:"only-testing,omitempty"`
DynamicTests bool `json:"dynamicTests,omitempty"`
UseTestSharding interface{} `json:"shards,omitempty"`
// Apart from the inputs from UI, these are some more fields which we support.
// We've mentioned the type and the json key for these field.
// We don't have separate inputs field for each of them,
// instead we have one field which can accept all these values,
// which we dynamically add to our payload with the help of a function `appendExtraCapabilities`.
// SetEnvVariables bool `json:"setEnvVariables,omitempty"`
// GpsLocation string `json:"gpsLocation,omitempty"`
// GeoLocation string `json:"geoLocation,omitempty"`
// CallbackURL string `json:"callbackURL,omitempty"`
// NetworkProfile string `json:"networkProfile,omitempty"`
// CustomNetwork string `json:"customNetwork,omitempty"`
// ResignApp bool `json:"resignApp,omitempty"`
// Language string `json:"language,omitempty"`
// Locale string `json:"locale,omitempty"`
// AppStoreConfiguration string `json:"appStoreConfiguration,omitempty"`
// DeviceOrientation string `json:"deviceOrientation,omitempty"`
// AcceptInsecureCerts bool `json:"acceptInsecureCerts,omitempty"`
// UploadMedia []string `json:"UploadMedia,omitempty"`
// LocalIdentifier string `json:"localIdentifier,omitempty"`
// IdleTimeout string `json:"idleTimeout,omitempty"`
}