mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 03:30:01 +08:00
change: remove options for AppLaunch/AppTerminate
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2505121727
|
v5.0.0-beta-2505121736
|
||||||
|
|||||||
+6
-8
@@ -91,20 +91,18 @@ func (s *StepMobile) WebLoginNoneUI(packageName, phoneNumber string, captcha, pa
|
|||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepMobile) AppLaunch(bundleId string, opts ...option.ActionOption) *StepMobile {
|
func (s *StepMobile) AppLaunch(bundleId string) *StepMobile {
|
||||||
s.obj().Actions = append(s.obj().Actions, uixt.MobileAction{
|
s.obj().Actions = append(s.obj().Actions, uixt.MobileAction{
|
||||||
Method: uixt.ACTION_AppLaunch,
|
Method: uixt.ACTION_AppLaunch,
|
||||||
Params: bundleId,
|
Params: bundleId,
|
||||||
Options: option.NewActionOptions(opts...),
|
|
||||||
})
|
})
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepMobile) AppTerminate(bundleId string, opts ...option.ActionOption) *StepMobile {
|
func (s *StepMobile) AppTerminate(bundleId string) *StepMobile {
|
||||||
s.obj().Actions = append(s.obj().Actions, uixt.MobileAction{
|
s.obj().Actions = append(s.obj().Actions, uixt.MobileAction{
|
||||||
Method: uixt.ACTION_AppTerminate,
|
Method: uixt.ACTION_AppTerminate,
|
||||||
Params: bundleId,
|
Params: bundleId,
|
||||||
Options: option.NewActionOptions(opts...),
|
|
||||||
})
|
})
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -270,7 +270,6 @@ func (ad *ADBDriver) AppLaunch(packageName string) (err error) {
|
|||||||
log.Info().Str("packageName", packageName).Msg("ADBDriver.AppLaunch")
|
log.Info().Str("packageName", packageName).Msg("ADBDriver.AppLaunch")
|
||||||
// 不指定 Activity 名称启动(启动主 Activity)
|
// 不指定 Activity 名称启动(启动主 Activity)
|
||||||
// adb shell monkey -p <packagename> -c android.intent.category.LAUNCHER 1
|
// adb shell monkey -p <packagename> -c android.intent.category.LAUNCHER 1
|
||||||
|
|
||||||
sOutput, err := ad.runShellCommand(
|
sOutput, err := ad.runShellCommand(
|
||||||
"monkey", "-p", packageName, "-c", "android.intent.category.LAUNCHER", "1",
|
"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) {
|
func (wd *WDADriver) AppLaunch(bundleId string) (err error) {
|
||||||
log.Info().Str("bundleId", bundleId).Msg("WDADriver.AppLaunch")
|
log.Info().Str("bundleId", bundleId).Msg("WDADriver.AppLaunch")
|
||||||
// [[FBRoute POST:@"/wda/apps/launch"] respondWithTarget:self action:@selector(handleSessionAppLaunch:)]
|
// [[FBRoute POST:@"/wda/apps/launch"] respondWithTarget:self action:@selector(handleSessionAppLaunch:)]
|
||||||
|
|
||||||
data := make(map[string]interface{})
|
data := make(map[string]interface{})
|
||||||
data["bundleId"] = bundleId
|
data["bundleId"] = bundleId
|
||||||
data["environment"] = map[string]interface{}{
|
data["environment"] = map[string]interface{}{
|
||||||
|
|||||||
Reference in New Issue
Block a user