| || |
Creating instances of defined classes
Is there a way to create new instances of defined classes in silkTest at run-time, similar to that of the new keyword in Java.
For example, if I have a class defined as follows:
int i = 0
Now I want to create many of these "myStruct" classes, but I don't know how many until runtime. How do I add an arbitrary number of these objects to a list at runtime?
I want to do something similar to this java code in 4Test:
Vector v = new Vector();
v.add (new mystruct());
I guess what I'm really asking is, how do I emulate the "new" java keyword in 4Test?
Re: Creating instances of defined classes
Try this link entitled "Classes, Objects, Dynamic Instantiation and Constructors
" for relevant articles: