Home » Modeling » UML2 » general question about UML Testing Profile
general question about UML Testing Profile [message #1102077] |
Thu, 05 September 2013 10:24 |
|
I have some doubts about how to represent certain examples (provided in the UML-TP specification) with UML.
I don't know if this forum is the one that fits better... (tell me if not!).
According to the standard specification, a "validation Action" (in UML-TP) is a "Call operation Action" (in UML).
Most of the examples in utp.omg.org show that you can put a "validation action" in a lifeline of a Sequence Diagram, but according to UML I understand that you cannot put actions there, right? So, how should/could I do?
On the other hand, most of the examples, specifically, those refering to time concepts, show that it is possible to start a timer, stop a timer, and add a timeout.
I see that there is an interface "Timer" with start, stop and read operations.
Also, there are Actions, like "StartTimerAction" and "StopTimerAction" that are "Call Operation Action".
Again, it is not possible to add this to a sequence diagram...how can I represent time concepts in a sequence diagram?
Thank you in advance!
|
|
| |
Re: general question about UML Testing Profile [message #1108245 is a reply to message #1102179] |
Fri, 13 September 2013 15:01 |
|
Hi! thank you for your answer.
I am not being able to associate a ActionExecutionSpecification to the sequence diagram. Where should I put it? in the time line I guess... but ... I was not able.
Also I have tried with BehaviorExecutionSpecification, but I cannot associate any kind of Action to it.
Thank you again in advance!
|
|
| |
Re: general question about UML Testing Profile [message #1122206 is a reply to message #1108268] |
Tue, 01 October 2013 10:29 |
|
Hey JoeI, thanks your response and indications.
I am not using Papyrus because I was not able to load a UML file in order to build diagrams with automaticaly generated models. So, after to try with many tools, the only one that allowed me to do that, including sequence diagrams, was Rational Software Architect ...
I do not know if it is a bug of the tool, or if I do not know how to do it, or if there is one of the tools that it is not "respecting" the UML metamodel, but what I see in RSA is:
- I cannot add Action Execution Specifications to life lines.
- I cannot add Call Operation Actions to Interactions
Any clue, idea, suggestion, thought?
thank you for your time
|
|
|
Re: general question about UML Testing Profile [message #1122234 is a reply to message #1122206] |
Tue, 01 October 2013 10:56 |
|
what I have instead of "action execution specification" is "behavior execution specification". Did you mean that kind of elements? If that's the case, BehaviorExecutionSpecification does not have an Action property....
On the other hand, considering another option that you mentioned some messages before
Quote:However, I prefer to use a property realizing the timer interface (it must be, according to the spec, a property of TestContext or TestComponent) as a lifeline and call an operation like start() with a message call. In my opinion, this should be equivalent to calling a operation with CallOperationAction.
Seems that I am only allowed to invoke methods on the Test Component, and not in its attributes. I mean, if I put an attribute "Timer" in the Test Component, I am not being able to put a message on the Test Component that invokes the Timer's operations.
|
|
|
Re: general question about UML Testing Profile [message #1122252 is a reply to message #1122234] |
Tue, 01 October 2013 11:23 |
Joe I Messages: 28 Registered: May 2013 |
Junior Member |
|
|
Sorry, I'm not familiar with Rational Software Architect... But I'm sure they also have forums
Maybe you try to construct a simple example in Papyrus, to see what you want.
Federico Toledo wrote on Tue, 01 October 2013 06:56what I have instead of "action execution specification" is "behavior execution specification". Did you mean that kind of elements? If that's the case, BehaviorExecutionSpecification does not have an Action property....
No, it must be an ActionExecutionSpecification.
Federico Toledo wrote on Tue, 01 October 2013 06:56
On the other hand, considering another option that you mentioned some messages before
Quote:However, I prefer to use a property realizing the timer interface (it must be, according to the spec, a property of TestContext or TestComponent) as a lifeline and call an operation like start() with a message call. In my opinion, this should be equivalent to calling a operation with CallOperationAction.
Seems that I am only allowed to invoke methods on the Test Component, and not in its attributes. I mean, if I put an attribute "Timer" in the Test Component, I am not being able to put a message on the Test Component that invokes the Timer's operations.
But you should be able to add a lifeline to the sequence diagram, which represents the Timer property.
|
|
|
Re: general question about UML Testing Profile [message #1122361 is a reply to message #1122252] |
Tue, 01 October 2013 13:38 |
|
Hello again!
Quote:Sorry, I'm not familiar with Rational Software Architect... But I'm sure they also have forums
not that good as this one
Quote:But you should be able to add a lifeline to the sequence diagram, which represents the Timer property.
Ok, that's an option!
Thank you!
May you have a nice day!
|
|
|
Goto Forum:
Current Time: Fri Apr 26 09:01:46 GMT 2024
Powered by FUDForum. Page generated in 0.03657 seconds
|