mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
change: add ctx to driver
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2409291526
|
v5.0.0-beta-2410012118
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package uixt
|
package uixt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
_ "image/gif"
|
_ "image/gif"
|
||||||
_ "image/png"
|
_ "image/png"
|
||||||
|
|
||||||
@@ -13,6 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type DriverExt struct {
|
type DriverExt struct {
|
||||||
|
Ctx context.Context
|
||||||
Device IDevice
|
Device IDevice
|
||||||
Driver IWebDriver
|
Driver IWebDriver
|
||||||
ImageService IImageService // used to extract image data
|
ImageService IImageService // used to extract image data
|
||||||
|
|||||||
@@ -481,6 +481,8 @@ type IDevice interface {
|
|||||||
Init() error // init android device
|
Init() error // init android device
|
||||||
UUID() string // ios udid or android serial
|
UUID() string // ios udid or android serial
|
||||||
LogEnabled() bool
|
LogEnabled() bool
|
||||||
|
|
||||||
|
// TODO: add ctx to NewDriver
|
||||||
NewDriver(...DriverOption) (driverExt *DriverExt, err error)
|
NewDriver(...DriverOption) (driverExt *DriverExt, err error)
|
||||||
|
|
||||||
StartPerf() error
|
StartPerf() error
|
||||||
|
|||||||
Reference in New Issue
Block a user