tmader-brown
11 years agoNew Contributor
How to organize objects or create a class
I'm new to Test Complete(about 7 days in) so maybe I'm just missing something. I would like to take advantage of as many Test Complete features as I can.
I haven't figured out a good way of storing the objects that the tests will be using.
1. I tried using the Stores->Objects. I'm seeing acouple problems with this. Seems like all of the objects are trapped under the "Objects" object, it would be nice to be able to separate the different sets of objects into different sets. The bigger problem is that when I store and object here, I can't actually do any of the functionality that object has. For example if I store a button there, I can't use "Objects.myButton.Click()"...all I can do is check it.
2. Next I tried creating a javascript class and it turns out the version of jscript included in TestComplete doesn't allow classes
3. Using the Alias reference is not an option either because it will hard code dynamic data into the name of the page....this makes it almost impossible to be reusable.
Did I do something wrong here, is anyone organizing thier objects in a way that they'd recommend?
thanks
Tim
I haven't figured out a good way of storing the objects that the tests will be using.
1. I tried using the Stores->Objects. I'm seeing acouple problems with this. Seems like all of the objects are trapped under the "Objects" object, it would be nice to be able to separate the different sets of objects into different sets. The bigger problem is that when I store and object here, I can't actually do any of the functionality that object has. For example if I store a button there, I can't use "Objects.myButton.Click()"...all I can do is check it.
2. Next I tried creating a javascript class and it turns out the version of jscript included in TestComplete doesn't allow classes
3. Using the Alias reference is not an option either because it will hard code dynamic data into the name of the page....this makes it almost impossible to be reusable.
Did I do something wrong here, is anyone organizing thier objects in a way that they'd recommend?
thanks
Tim