Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » MessageBox can not be validated at Recording Phase(Faied Because of unexpected native dialog is shown)
MessageBox can not be validated at Recording Phase [message #1720229] Fri, 15 January 2016 12:48 Go to next message
ilke Muhtar is currently offline ilke MuhtarFriend
Messages: 47
Registered: September 2015
Member
During our recording we have a message box made of Ok and Cancel and a question. We can not validate that this messagebox is shown at the screen.

The recorder does not recognize that a swt MessageBox dialog window is shown. We first corrected the shell of the MessageBox, instead of using a new created shell. But it didnt help either. We recorded the side effects of pressing the OK button. But we couldnt record the MessageBox dialog elements for validation.

The error shown is :

Faied Because of unexpected native dialog is shown:
org.eclipse.swt.widgets.MessageBox message: Unrecorded message dialog:

Remove the existing file Systems? :Question

at get-editor (line 10)

How can we solve this issue ?

If I record with out asserting the message box. I get a recorded test suite line as :

set-dialog-result MessageBox 32

Kind Regards

[Updated on: Fri, 15 January 2016 12:52]

Report message to a moderator

Re: MessageBox can not be validated at Recording Phase [message #1721162 is a reply to message #1720229] Mon, 25 January 2016 11:29 Go to previous message
Markus Manck is currently offline Markus ManckFriend
Messages: 34
Registered: June 2015
Member
Hi,

you could assert the title or message of the message box:

get-last-message-box | get-property message | equals "your message" | verify true

get-last-message-box | get-property title | equals "Your title" | verify-true
Previous Topic:ECL documentation link is broken
Next Topic:[SOLVED] Test Runner Test Cases Failing
Goto Forum:
  


Current Time: Thu Apr 25 04:00:42 GMT 2024

Powered by FUDForum. Page generated in 0.02950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top