Bug 433506 - [validation] Validation does not work from the diagram
Summary: [validation] Validation does not work from the diagram
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-25 07:33 EDT by Klaas Gadeyne CLA
Modified: 2017-09-08 09:46 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaas Gadeyne CLA 2014-04-25 07:33:53 EDT
Steps to reproduce:
- Create a profile with OCL constraints and a model which has the profile applied.  Make sure one constraint is violated.
- Right-click on the diagram, and select Validation->Validate Model (or subtree, or …) -> nothing will happen

- Right-click on the model explorer and do the same -> Everything works fine.
Comment 1 Ansgar Radermacher CLA 2014-04-29 04:13:17 EDT
Shoudl be fixed with commit fecb208e71175b1109aa28ffe16a779155381148. Can you please re-check (allow some time for the build)
Comment 2 Klaas Gadeyne CLA 2014-04-29 14:56:28 EDT
(In reply to Ansgar Radermacher from comment #1)
> Shoudl be fixed with commit fecb208e71175b1109aa28ffe16a779155381148. Can
> you please re-check (allow some time for the build)

Seems to work now!  Given this used to work fine in Kepler: would it be possible to create a unit test for these kinds of scenarios?
Comment 3 Ansgar Radermacher CLA 2014-04-30 07:43:13 EDT
Juan,

can you please have a look, if its possible to test which handler is called in the context menu of an element (within model explorer and diagram).
Comment 4 Ed Willink CLA 2014-05-09 09:54:55 EDT
(In reply to Ansgar Radermacher from comment #3)
> can you please have a look, if its possible to test which handler is called
> in the context menu of an element (within model explorer and diagram).

That seems like an internal detail.

IMHO there should be tests of the user experience.

i.e.

Open Diagram.

Validation->Validate Model

Check that Model Validation view is visible.

Check that the Model Validation has the expected entries
- correct number and severity per element
- correct text

I generally check correct text by rebinding the original templates thereby giving some immunity to evolution of messages.