Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329760

Summary: [SysML 1.4][Requirement] TestCase should be shown with a specific representation
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: SysMLAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact: Benoit Maggi <benoit.maggi>
Severity: enhancement    
Priority: P3 CC: benoit.maggi, klaas.gadeyne
Version: 0.7.0   
Target Milestone: 0.11.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 315780    

Description Yann Tanguy CLA 2010-11-09 06:28:42 EST
As any NamedElement, a TestCase can be shown (DND from model) in the Requirement diagram.

Instead of the Generic representation as a NamedElement a TestCase should have a specific representation (although it should probably not be created in Requirement diagram).

TestCase creation is not specific to a particular diagram as any Behavior (or Operation) can be candidate to be a TestCase. A possible support could be obtained with a SysML specific context command that offers to turn supported elements into TestCase (resulting in TestCase stereotype application).
Comment 1 Klaas Gadeyne CLA 2013-06-10 05:26:58 EDT
Or one could allow to create it in a Requirement Diagram, but use a extra window that allows to select the 'base element' which is extended by the TestCase stereotype?
Comment 2 Benoit Maggi CLA 2015-12-03 10:39:22 EST
@Klaas: Did you find the specific Testcase representation in the norm?
Comment 3 Klaas Gadeyne CLA 2015-12-04 09:41:26 EST
AFAICT, there is no specific representation besides the obligatory "<<testcase>>".

The "challenge" rather seems to be to create an efficient dialog in which the user can select the type of (non-abstract) behaviour (activity, statemachine) or operation that he wants to stereotype, depending on the diagram context.
Comment 4 Benoit Maggi CLA 2017-09-15 04:45:13 EDT
In 0.11.0 there is no popup but a stack in the requirement palette that provide concrete implementation for <<TestCase>>

Representation of most test case is a Rectangle with <<TestCase>> written
(for operation, the operation name is suffixed by <<testCase>>)