MCPcopy
hub / github.com/httprunner/httprunner / TestDriver_DeviceInfo

Function TestDriver_DeviceInfo

hrp/pkg/uixt/android_test.go:166–180  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

164}
165
166func TestDriver_DeviceInfo(t *testing.T) {
167 driver, err := NewUIADriver(nil, uiaServerURL)
168 if err != nil {
169 t.Fatal(err)
170 }
171
172 devInfo, err := driver.DeviceInfo()
173 if err != nil {
174 t.Fatal(err)
175 }
176
177 t.Logf("api version: %s", devInfo.APIVersion)
178 t.Logf("platform version: %s", devInfo.PlatformVersion)
179 t.Logf("bluetooth state: %s", devInfo.Bluetooth.State)
180}
181
182func TestDriver_Tap(t *testing.T) {
183 driver, err := NewUIADriver(nil, uiaServerURL)

Callers

nothing calls this directly

Calls 2

NewUIADriverFunction · 0.85
DeviceInfoMethod · 0.65

Tested by

no test coverage detected