feat: 兼容iproxy 2.1.0 新增步骤弹窗忽略和全局弹窗忽略

This commit is contained in:
余泓铮
2024-06-12 11:36:30 +08:00
parent 55bdfc49be
commit c670a4cef9
5 changed files with 18 additions and 3 deletions

View File

@@ -711,6 +711,16 @@ func (r *SessionRunner) GetSummary() (*TestCaseSummary, error) {
return caseSummary, nil
}
func (r *SessionRunner) IgnorePopup() bool {
if r.caseRunner.testCase.Config.Android != nil {
return r.caseRunner.testCase.Config.Android[0].IgnorePopup
}
if r.caseRunner.testCase.Config.IOS != nil {
return r.caseRunner.testCase.Config.IOS[0].IgnorePopup
}
return false
}
// updateSummary updates summary of StepResult.
func (r *SessionRunner) updateSummary(stepResult *StepResult) {
switch stepResult.StepType {