Ask a Question

how to avoid unit reference error when reference is not called in the project

SOLVED
Babulu
Contributor

how to avoid unit reference error when reference is not called in the project

i have a project with below framework files

1.Driver 2. GenError 3.GlobalVariables 4.GenLogLib 5. GenerateHtmLReport and

we have different projects Examples; Project 1 to Project 10 . I want to use this framework files across all the projects like framework files project1, is in one project 

framework files project2, is in another project ......  If i do change in one of the framework  file it should reflect in all other projects. But when i am trying to do this i am getting reference error.

 

Tool : TestComplete 15.1

Language: Vb Script

 

 

5 REPLIES 5
Marsha_R
Community Hero

Let's see a screenshot of the script that you tried and one of the actual error message.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Babulu_0-1657533061608.png

hi i am getting the error like this 

And what is the section of code that is causing the error?  Screenshot please.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Babulu_0-1657604273505.pngBabulu_1-1657604294389.png

 

Here we are facing the reference issue if the script unit is not present then we are getting the issue using the corresponding unit reference.

 

You may need to add the reference mentioned here 

https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-proje...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: