Ask a Question

All project variables are gone

Luukdb
Occasional 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
K_Sathish_Kumar
Contributor

Re: All project variables are gone

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.

Regards,
Sathish Kumar K
Marsha_R
Community Hero

Re: All project variables are gone

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
Luukdb
Occasional Contributor

Re: All project variables are gone

@Marsha_R I am running the newest version of TestComplete

Luukdb
Occasional Contributor

Re: All project variables are gone

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

K_Sathish_Kumar
Contributor

Re: All project variables are gone

please let me know if your issue is fixed  🙂

Regards,
Sathish Kumar K
Marsha_R
Community Hero

Re: All project variables are gone

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

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

 

fyi, to use @K_Sathish_Kumar 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

Re: All project variables are gone

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: