cancel
Showing results for 
Search instead for 
Did you mean: 

Class Object Properties

Highlighted
Occasional Contributor

Class Object Properties

Hi there



I have created a few class objects in a separate unit, lets call this unit ClassObjects



Now in another unit, lets call this unit TestCase I am trying to create an instance of this class object however i can not get any code insight into what properties are available for this object? some of my generic objects have 20+ properties for issuing insurance, and dependant on what properties are set will define what gets issued. How do i get code insight into these properties?



Small example of what i am doing below

Unit -> ClassObjects



function TravellerDetails()

{

    this.firstName;

    this.lastName;

    this.DOB;

}



Unit -> TestCase



function MyTest()

{

    var travDetails = new TravellerDetails();



    // at this point i can not get code insight into the properties??

    // typing -> travDetails. 

    // does not give my the properties of the object?



    travDetails = getDetails();



    policy = IssuePolicy(travDetails);

}



where am i going wrong?



Thanks for your help,

Brad
1 REPLY 1
Highlighted
Staff

RE: Class Object Properties

Hi,



Currently, there's no way to see members of JScript classes in the code completion window. Your request has increased the appropriate suggestion's rating in our DB.

------
Yuri
TestComplete Customer Care Engineer

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors