Bug 474197

Summary: Support assertion of native message boxes.
Product: [Technology] RCPTT Reporter: Ulyana Skorokhodova <ulyana.skorokhodova>
Component: RuntimeAssignee: Project Inbox <rcptt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0M4   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/54103
https://git.eclipse.org/c/rcptt/org.eclipse.rcptt.git/commit/?id=620d170fc775b51c812827debd5f5561c708857a
Whiteboard:

Description Ulyana Skorokhodova CLA 2015-08-04 03:35:03 EDT
Though we don't open native message boxes during replay, we still should be able to intercept their properties like title and message. It would be great if we could give an ability to assert their properties.

Some suggestions on how it might look like:

set-dialog-result MessageBox 128
get-view "Quality Mockups" | get-group "MessageBox Test" | get-button "Message Box with YES/NO Buttons" | click
with [get-last-message-box] {
    get-property title | equals "Warning" | verify-true
    get-property message | equals "Yes or No?" | verify-true
}
Comment 1 Eclipse Genie CLA 2015-08-19 09:13:25 EDT
New Gerrit change created: https://git.eclipse.org/r/54103
Comment 2 Ulyana Skorokhodova CLA 2015-08-20 02:51:37 EDT
Verified on https://git.eclipse.org/r/54103
RCPTT Test added.
Comment 4 Ulyana Skorokhodova CLA 2015-08-20 02:54:13 EDT
Fixed in https://git.eclipse.org/r/54103.

The script should be written manually and look like:

set-dialog-result MessageBox 256
get-view "Q7 Quality Mockups" | get-group "MessageBox Test" | get-button "Message With Question" | click
get-last-message-box | get-property title | equals "Question" | verify-true
get-last-message-box | get-property message | equals "This MessageBox with question" | verify-true
Comment 5 Ulyana Skorokhodova CLA 2015-08-20 02:54:49 EDT
Fixed
Comment 6 Ulyana Skorokhodova CLA 2015-08-27 06:07:14 EDT
See https://www.eclipse.org/rcptt/documentation/faq/assert-native-message-box/ for the details.