feat: enhance report generation with new AI query and validation display features

This commit is contained in:
lilong.129
2025-06-18 22:35:19 +08:00
parent a3f2ff37bc
commit e40db65287
4 changed files with 334 additions and 241 deletions

View File

@@ -793,6 +793,16 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err
stepResult.Actions = append(stepResult.Actions, actionResult)
}
// Get session data and add to attachments, clear session for next step
if uiDriver != nil {
sessionData := uiDriver.GetSession().GetData(true) // clear session after getting data
if len(sessionData.ScreenResults) > 0 {
attachments["screen_results"] = sessionData.ScreenResults
log.Debug().Int("count", len(sessionData.ScreenResults)).
Str("step", step.Name()).Msg("added screen results to step attachments")
}
}
var config *TConfig
if s.caseRunner != nil && s.caseRunner.Config != nil {
config = s.caseRunner.Config.Get()