|
It is currently Wed Feb 08, 2012 11:34 pm
|
View unanswered posts | View active topics
| Welcome |
|
Welcome to RHAPSODY4YOU
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today. |
 |
|
 |
|
| Author |
Message |
|
shanz
|
Post subject: Test Conductor poll Posted: Fri Jan 22, 2010 11:28 am |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
I am interested in how many people actually use Test Conductor. Do you use it in your testing process?
If not, do you even use the UML Testing profile (presumably via "Create Test Architecture")?
I have problems using Test Conductor and wondered whether anyone else might have solved similar issues.
1) Test Conductor doesn't autogenerate compilable driver code if you are using namespaces (DefineNamespace) 2) Test Conductor doesn't autogenerate compilable driver code if you are using static member functions 3) Test Conductor doesn't autogenerate compilable driver code if you are using functions templates
You can obviously manually edit the driver code via the Tag properties but it is a pain.
|
|
|
|
 |
|
KalleBlaschke
|
Post subject: Re: Test Conductor poll Posted: Mon Jan 25, 2010 1:53 pm |
Joined: Mon Jan 25, 2010 11:40 am Posts: 12
|
|
Hi Shanz,
we are using Rhapsody + TestConductor quite a while. Concerning your questions:
1) We had some problems with namespaces in older Rhapsody versions, but with 7.5 we don't have any problems any more. What exactly is not working for you?
For 2) and 3), we simply added an operation to the TestContext that performs the actual call, and added a message to this operation to the SD specification in order to call this operation at the right place.
|
|
|
|
 |
|
shanz
|
Post subject: Re: Test Conductor poll Posted: Mon Jan 25, 2010 5:20 pm |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
Kalle,
That sounds interesting. You make it sound simple but could you please attach an example or screenshot? Where exactly do you create the helper operation? If I create an ordinary primitive operation under the TestContext then it isn't selectable using Intellivisor from a message on a Test Scenario. I would have to create a global function in the class-under-test's package like I do with the serialize and unserialize functions.
|
|
|
|
 |
|
KalleBlaschke
|
Post subject: Re: Test Conductor poll Posted: Tue Jan 26, 2010 1:31 pm |
Joined: Mon Jan 25, 2010 11:40 am Posts: 12
|
|
Hi Shanz,
atttached a simple model that shows how how we use static ops & template functions.
Does this help you?
| Attachments: |
Sample1.zip [14.24 KiB]
Downloaded 62 times
|
|
|
|
|
 |
|
shanz
|
Post subject: Re: Test Conductor poll Posted: Wed Jan 27, 2010 9:09 am |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
Kalle, Oh I see - it's the use of the System Environment (ENV) that I didn't try/think of. Thanks very much.
I agree that this allows you to call the static ops or function templates (and an animated SD shows the call) but you still can't test them. You couldn't test the argument values or the return value from these operations.
|
|
|
|
 |
|
KalleBlaschke
|
Post subject: Re: Test Conductor poll Posted: Thu Jan 28, 2010 9:12 am |
Joined: Mon Jan 25, 2010 11:40 am Posts: 12
|
|
Sure you can. Just add some assertions to your test cases. I added some assertions that check return values to the operations. I attached the modified sample.
BTW., when just checking return values of operations, why don't you simply add a code testcase to your testcontext (as I did in the sample)?
|
|
|
|
 |
|
shanz
|
Post subject: Re: Test Conductor poll Posted: Thu Jan 28, 2010 3:33 pm |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
Kalle,
I had experimented with the <<RTC_MsgInfo>> without success. I was assuming I would need to use code test cases instead but your example seems a nice middle ground. I might even be able to get some work done!
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|