mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-08 07:51:25 +08:00
change: remove options for AppLaunch/AppTerminate
This commit is contained in:
@@ -270,7 +270,6 @@ func (ad *ADBDriver) AppLaunch(packageName string) (err error) {
|
||||
log.Info().Str("packageName", packageName).Msg("ADBDriver.AppLaunch")
|
||||
// 不指定 Activity 名称启动(启动主 Activity)
|
||||
// adb shell monkey -p <packagename> -c android.intent.category.LAUNCHER 1
|
||||
|
||||
sOutput, err := ad.runShellCommand(
|
||||
"monkey", "-p", packageName, "-c", "android.intent.category.LAUNCHER", "1",
|
||||
)
|
||||
|
||||
@@ -494,7 +494,6 @@ func (wd *WDADriver) AlertSendKeys(text string) (err error) {
|
||||
func (wd *WDADriver) AppLaunch(bundleId string) (err error) {
|
||||
log.Info().Str("bundleId", bundleId).Msg("WDADriver.AppLaunch")
|
||||
// [[FBRoute POST:@"/wda/apps/launch"] respondWithTarget:self action:@selector(handleSessionAppLaunch:)]
|
||||
|
||||
data := make(map[string]interface{})
|
||||
data["bundleId"] = bundleId
|
||||
data["environment"] = map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user