Re: How to change the class of the object at run time.
I use a framework for my tests, driven by the keyword methodology of automating software testing.
To run ALL the tests from a SINGLE test:
I've been putting the name/names of scripts in the default data table area. I reference a column named "KeyWord" in my snip below. That column has the call to open test scripts (excel format) and the path to them.
Here is my code snip from a section where I wish to open a different testcase. I'm not sure it is the most efficient way, but so far my scripts run, hehe.
Select Case DataTable("KeyWord",1)
Case "Open Test Case" DataTable.ImportSheet
DataTable("InputString"),"Sheet1", "Action1" tcRow=1 DataTable.GetSheet(2).SetCurrentRow (1) tcTotalRows = DataTable.GetSheet(2).GetRowCount
Using your imagination I hope you can figure out what you'd need around it.