Add auto_result param to dialog items for automated validation
Each dialog test item now accepts an optional auto_result parameter (ok/cancel/yes/no) and auto_value for text dialogs. When set, the dialog window opens, stays visible 2 seconds, then closes automatically with the specified result — allowing the validation suite to run without manual interaction. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
name: dialog image PASS
|
||||
condition: $(validation_dialogs)
|
||||
question: click ok if you see the image
|
||||
auto_result: "ok"
|
||||
key: $(test)_PASS
|
||||
filename: $(test_path)$(psep)IMG_20140213_171455.jpg
|
||||
|
||||
@@ -9,6 +10,7 @@
|
||||
name: dialog image FAIL
|
||||
condition: $(validation_dialogs)
|
||||
question: click cancel
|
||||
auto_result: "cancel"
|
||||
key: $(test)_FAIL
|
||||
filename: $(test_path)$(psep)IMG_20140213_171455.jpg
|
||||
|
||||
@@ -17,45 +19,54 @@
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_PASS
|
||||
question: click ok
|
||||
auto_result: "ok"
|
||||
|
||||
- dialog_references:
|
||||
name: dialog_reference FAIL
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_FAIL
|
||||
question: click cancel
|
||||
auto_result: "cancel"
|
||||
|
||||
- dialog_value:
|
||||
name: dialog_value PASS
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_PASS
|
||||
question: enter 123 and click ok
|
||||
auto_result: "ok"
|
||||
auto_value: "123"
|
||||
|
||||
- dialog_value:
|
||||
name: dialog_value empty FAIL
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_FAIL
|
||||
question: enter nothing and click ok
|
||||
auto_result: "ok"
|
||||
|
||||
- dialog_value:
|
||||
name: dialog_value canceled FAIL
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_FAIL
|
||||
question: enter nothing and click cancel
|
||||
auto_result: "cancel"
|
||||
|
||||
- dialog_message:
|
||||
name: dialog_message PASS
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_PASS
|
||||
question: click ok
|
||||
auto_result: "ok"
|
||||
|
||||
- dialog_question:
|
||||
name: dialog_question PASS
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_PASS
|
||||
question: click yes
|
||||
auto_result: "yes"
|
||||
|
||||
- dialog_question:
|
||||
name: dialog_question FAIL
|
||||
condition: $(validation_dialogs)
|
||||
key: $(test)_FAIL
|
||||
question: click no
|
||||
auto_result: "no"
|
||||
|
||||
@@ -71,4 +71,4 @@
|
||||
steps:
|
||||
- close:
|
||||
wait_dialog_exit: True
|
||||
timeout: 60
|
||||
timeout: 2
|
||||
|
||||
Reference in New Issue
Block a user