From c22dc0836c067cc29fe803ed53e1fcff1222472c Mon Sep 17 00:00:00 2001 From: buyuxiang Date: Fri, 20 Oct 2023 12:03:11 +0800 Subject: [PATCH] fix: unpredefined tap_cv not found error --- hrp/pkg/uixt/service_vedem.go | 2 +- hrp/testcase.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hrp/pkg/uixt/service_vedem.go b/hrp/pkg/uixt/service_vedem.go index 74baef99..d91e3950 100644 --- a/hrp/pkg/uixt/service_vedem.go +++ b/hrp/pkg/uixt/service_vedem.go @@ -537,7 +537,7 @@ func (u UIResultMap) FilterUIResults(uiTypes []string) (uiResults UIResults, err return } } - err = errors.Errorf("UI types %v not detected", uiTypes) + err = errors.Wrap(code.CVResultNotFoundError, fmt.Sprintf("UI types %v not detected", uiTypes)) return } diff --git a/hrp/testcase.go b/hrp/testcase.go index 9b301465..9cbccce0 100644 --- a/hrp/testcase.go +++ b/hrp/testcase.go @@ -371,6 +371,7 @@ func convertCompatMobileStep(mobileStep *MobileStep) { if ma.Method == uixt.ACTION_TapByCV { uiTypes, _ := builtin.ConvertToStringSlice(ma.Params) ma.ActionOptions.ScreenShotWithUITypes = append(ma.ActionOptions.ScreenShotWithUITypes, uiTypes...) + ma.ActionOptions.ScreenShotWithUpload = true } // set default max_retry_times to 10 for swipe_to_tap_texts if ma.Method == uixt.ACTION_SwipeToTapTexts && actionOptions.MaxRetryTimes == 0 {