Ask a Question

Declare the variables in one unit do not show the methods and properties of variables in other unit.

SOLVED
nisgupta
Valued Contributor

Declare the variables in one unit do not show the methods and properties of variables in other unit.

When we delcare the variables in one unit and want to use those variables in other units then Testcomplete do not show the properties and methods as part of code completion. We are using Java Script here .

 

Any idea ?

 

Thanks

Nishchal

1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: Declare the variables in one unit do not show the methods and properties of variables in other u

Thanks for updating us here @nisgupta 

I found your support case and here's what's suggested:

 

>>

Since name mapping is available to all scripting units in the project, it may be best to separately create the same variable in each unit its needed in.

<<


Sonya Mihaljova
Community and Education Specialist

View solution in original post

3 REPLIES 3
nisgupta
Valued Contributor

Re: Declare the variables in one unit do not show the methods and properties of variables in other u

Got the updates from support team . This is the limitation. 

sonya_m
Community Manager

Re: Declare the variables in one unit do not show the methods and properties of variables in other u

Thanks for updating us here @nisgupta 

I found your support case and here's what's suggested:

 

>>

Since name mapping is available to all scripting units in the project, it may be best to separately create the same variable in each unit its needed in.

<<


Sonya Mihaljova
Community and Education Specialist

View solution in original post

nisgupta
Valued Contributor

Re: Declare the variables in one unit do not show the methods and properties of variables in other u

yeah . It is a limitation . if we define the variables in one unit. Then we cannot use variables in other unit with Methods and properties with autocomplete.

cancel
Showing results for 
Search instead for 
Did you mean: