mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
refactor: InstallAPK install apk path
This commit is contained in:
@@ -331,9 +331,9 @@ func TestDevice_RunShellCommandBackgroundWithBytes(t *testing.T) {
|
||||
func TestDevice_InstallAPK(t *testing.T) {
|
||||
setupDevices(t)
|
||||
|
||||
apk, _ := os.Open("test.apk")
|
||||
apkPath := "test.apk"
|
||||
for _, dev := range devices {
|
||||
res, err := dev.InstallAPK(apk)
|
||||
res, err := dev.InstallAPK(apkPath)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user