StrataFrame Forum

Business Objects and the Object Test Bench

http://forum.strataframe.net/Topic5195.aspx

By LeRoy Jackson, Jr. - 12/11/2006

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

By Trent L. Taylor - 12/11/2006

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"))
By LeRoy Jackson, Jr. - 12/11/2006

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 :-)
By Trent L. Taylor - 12/11/2006

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.