Bug 474197 - Support assertion of native message boxes.
Summary: Support assertion of native message boxes.
Status: RESOLVED FIXED
Alias: None
Product: RCPTT
Classification: Technology
Component: Runtime (show other bugs)
Version: 2.0M4   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 03:35 EDT by Ulyana Skorokhodova CLA
Modified: 2015-08-27 06:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.