Forum Discussion
AlexeyKolosov
13 years agoStaff
Hi David,
First of all, note that JScript does not support multiple units natively. This functionality is a feature of TestComplete. So, nothing has been "broken". Also, I'm not sure how the original thread is related to inheritance and your task - it considered prototypes, not inheritance.
Anyway, you can use the following approach:
1. In unit A, define a function which creates the base object you need.
2. In unit B, type "USEUNIT..." and define a function which calls the method from unit A and adds the additional methods/fields to the returned object.
3. In unit C (which is supposed to use the inherited object), use the method from unit B to get the inherited object you need.
Related Content
- 4 years ago
- 12 years ago
- 6 years ago
- 3 years ago
Recent Discussions
- 17 hours ago
- 2 months ago