It is currently Thu Feb 09, 2012 12:58 am



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.





 Page 1 of 1 [ 6 posts ] 
Author Message
 Post subject: TestConductor: Invalid Instance for dummy driver
PostPosted: Fri May 14, 2010 10:20 pm 

Joined: Fri May 14, 2010 9:53 pm
Posts: 3
Hello, this is my first time attempting to use Test Conductor to setup some automated tests against a model developed application.

Generated the TestArchitecture for the class I am interested in creating some verification tests for.

Created a SD test and on the SD see the Dummy Driver and the SUT (the class I wish to verify).

Creating a simple SD with one message from the Driver to the SUT (createInitialDB).

Update, Build and execute the test: I see that the constructors for the SUT (and its related objects) are getting constructed ... However, I get the following arrow, and the one message (createInitialDB) is never sent to the SUT (as evidenced by lack of output to the console):

Invalid or non existant instance\class nameTCon_TestController_play.itsDummyDriver_of_TestController_play

I assume that it is something simple that I am over looking, but I'm not sure what it could be. Appreciate any pointers.

Thanks!!


Offline
 Profile  
 
 Post subject: Re: TestConductor: Invalid Instance for dummy driver
PostPosted: Tue May 18, 2010 12:00 pm 

Joined: Mon Jan 25, 2010 11:40 am
Posts: 12
Hi rgebhard,

it seems that no instance of the dummy driver class has been created. In order to check this,
please do
- simply start the generated application via the Rhapsody code menu
- do a "Go idle"
- in the browser, check if indeed an instance of the class dummy driver is created (there must be an entry in the "Instances" section underneath the dummy driver class.)


Offline
 Profile  
 
 Post subject: Re: TestConductor: Invalid Instance for dummy driver
PostPosted: Tue May 18, 2010 6:51 pm 

Joined: Fri May 14, 2010 9:53 pm
Posts: 3
"execute" is greyed out under the code menu for the testcase. If I execute the test, then I see some instances, but I don't see instances of any of the test objects. And not sure why. If I execute the top level component for the entire test package, I still don't see instances of the test objects (dummy driver) getting created.

What I am doing is attempting to run a testcase under Test Conductor that I have created against a composite class that wraps the rest of the subsystem that I want to exercise.

So, under TestContexts is a testcase that references a sequence diagram that I created with the Dummy Driver and the SUT (the composite class). Both of these were created automatically when I did a "create Test Architecture" against the composite class in the model. Once the test archicture was created, I created a SD Test, and filled in the SD with a few messages.

However, before any of the messages are sent from the Dummy Driver to the SUT, I get a box popping up with the error message given above. So, still unclear how to get the dummy driver instance to show up. :)

Thanks for any help!!


Offline
 Profile  
 
 Post subject: Re: TestConductor: Invalid Instance for dummy driver
PostPosted: Fri May 21, 2010 8:59 am 

Joined: Mon Jan 25, 2010 11:40 am
Posts: 12
For me it seems that the component/configuration you are executing is simply not defined
correctly. You have to make sure that the configuration you are executing indeed creates instances
of the test context.

In order to give more precise help, can you post the model or at least a screenshot of the test architecture and the definition of the configuration?


Offline
 Profile  
 
 Post subject: Re: TestConductor: Invalid Instance for dummy driver
PostPosted: Tue Jun 01, 2010 9:05 pm 

Joined: Fri Jan 16, 2009 2:02 pm
Posts: 14
Hi,

some points to ferify:
-does an object or part of DummyDriver exist in your TestPackage?
-In the Features of your SD-Testcase the option "Drive and Monitor" must be set
-Is the animation enabled?
-Does a LINK exist between DummyDriver and your SUT?

Roy


Offline
 Profile  
 
 Post subject: Re: TestConductor: Invalid Instance for dummy driver
PostPosted: Wed Jun 02, 2010 4:20 pm 

Joined: Fri May 14, 2010 9:53 pm
Posts: 3
So it seems that there were 2 things. 1) generate implicit contstructor was not turned on for the test objects. Not sure if that had something to do with it or not. But 2) it seems animation wasn't turned on for some of the test objects as well.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:


suspicion-preferred