Business Objects and the Object Test Bench


Author
Message
LeRoy Jackson, Jr.
LeRoy Jackson, Jr.
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 14, Visits: 55
As you might have noticed, I am new to Strataframe.  However I am trying to figure out if I can test some of my methods in my BO in the Object Test Bench.  I know I can if I just create a regular Class, But when I create a SF Business Object, I try to instantiate a new instance of the class to put in the Object Test Bench, And Nothing Happens.  What Do I need to do to test my Business Objects in Object Test Bench.

Thanks in advance

--LeRoy

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The object test bench is more geared towards user controls than dealing with data.  It can be done, but will require a different class environment than will be used at run-time...which defeats the purpose.  If you are wanting to create a true test scenario, then you will want to use the Unit Tests that are available in Team Foundation Systems.  This is where we create all of our tests.

Bottom line though, you need to setup your data sources that allow the BO to communicate:

MicroFour.StrataFrame.Data.DataSources.Add(New SqlDataSourceItem("","Your connection string"))

LeRoy Jackson, Jr.
LeRoy Jackson, Jr.
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 14, Visits: 55
I have VS 2005 Professional.  With the MSDN Subscription.  I don't think have have the Foundation Team System.  If I do, I don't know what it is :-)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yeah...you would have to be running one of the Team Systems environments.  You can still setup a test bed without Team System, but when it comes to Source Control, Multi-Developer environments, and unit testing...you can't beat it and it is worth the money and energy to use it.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search