mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 22:09:35 +08:00
feat: add mobile ui validation
This commit is contained in:
@@ -172,6 +172,17 @@ type StepAndroidValidation struct {
|
||||
step *TStep
|
||||
}
|
||||
|
||||
func (s *StepAndroidValidation) AssertTextExists(expectedText string, msg string) *StepAndroidValidation {
|
||||
v := Validator{
|
||||
Check: "android_ui",
|
||||
Assert: "text_exists",
|
||||
Expect: expectedText,
|
||||
Message: msg,
|
||||
}
|
||||
s.step.Validators = append(s.step.Validators, v)
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *StepAndroidValidation) Name() string {
|
||||
return s.step.Name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user