Ask a Question

All project variables are gone

Luukdb
Contributor

All project variables are gone

Hello,

 

I just opened my project file and noticed all my project variables are gone. I tried to restore an older version of our project, but this also didn't work.

Currently I am adding the variables manually. But I am wondering if more people experienced this and how to fix this instead of adding all the variables manually.

 

Kind regards,

Luuk

7 REPLIES 7
Mr_Bro
Frequent Contributor

HI @Luukdb 

 

can you make use of adding the variables in your script : 

Project.Variables.AddVariable("MyExportFilePath", "String");

 

please refer this document for your further reference.

Marsha_R
Community Hero

What version of TestComplete are you running?  I saw that happen years ago but I haven't seen it lately.


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

@Marsha_R I am running the newest version of TestComplete

@Mr_Bro This is a good idea, I am going to give this a try when it happens again

Mr_Bro
Frequent Contributor

please let me know if your issue is fixed  🙂

I would contact Support directly about this.  Here's the link:

https://support.smartbear.com/testcomplete/message

 

fyi, to use @Mr_Bro idea, you would need to do it now, in order to ward off the problem in the future.  What that code does is look for the variable in question and if it does not already exist, it adds it at that time.


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
AlexKaras
Community Hero

Hi,

 

Project variables are stored in the project .mds file. So it had to be something done over this file (incorrect source control merge etc.) that removed section with project variables from it.

 

Regards,
  /Alex [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: