loctitekid
15 years agoOccasional Contributor
How to know current TC version from script?
I have been using TC for a few years, but I'm sure this question is appropriate to this forum.
I have a team working on a generalized script framework. The framework is used by several teams in different areas of the world, all testing the same application, but different versions of the app, and different business rules.
The framework is written in JScript. It contains many if tests to behave differently based on the app version or the locale. I want to move to the latest version of TC, but I don't want to force all my customers to move right away. Also I'd like to be able to run the framework on different versions of TC for troubleshooting if required.
So I want to be able to say something like
if (TC_Version < 7) {
DoItTheOldWay();
} else {
UseNewFeature();
}
Is there a global variable or an easy way to tell?
I thought of finding testcomplete.exe and looking at its app version. I also thought of having my own project suite variable. Is there a better way?
I have a team working on a generalized script framework. The framework is used by several teams in different areas of the world, all testing the same application, but different versions of the app, and different business rules.
The framework is written in JScript. It contains many if tests to behave differently based on the app version or the locale. I want to move to the latest version of TC, but I don't want to force all my customers to move right away. Also I'd like to be able to run the framework on different versions of TC for troubleshooting if required.
So I want to be able to say something like
if (TC_Version < 7) {
DoItTheOldWay();
} else {
UseNewFeature();
}
Is there a global variable or an easy way to tell?
I thought of finding testcomplete.exe and looking at its app version. I also thought of having my own project suite variable. Is there a better way?