Forum Discussion
AlexKaras
11 years agoChampion Level 3
Hi László,
After digging a bit in my memory;) this is what you need to do to change the scripting language of the project:
a) Make a backup :)
b) Install (basically any) TestComplete SDK from http://support.smartbear.com/downloads/testcomplete/sdk/ (SDK is a self-extracting archive, so you can unpack it manually);
c) Open your .mds project file in any editor and search for the 'language' value (under the 'config' node);
d) Copy property's value (GUID string) and search it in the tcConst.pas file from the SDK content. (For example, GUID for VBScript is {897793E3-73F3-4895-A956-3D41D3A24A45});
e) Copy the GUID of the language you need from the tcConst.pas file and paste it into project .mds file. Save modified .mds;
f) Navigate to the [project]\Script\ folder and change extensions of the script files correspondingly (for example, if you are changing the language from VBScript to DelphiScript, change extensions from .svb to .sd);
g) Open Script.tcScript file from the same [project]\Script\ folder in the text editor and search and replace file extensions like in step f) (e.g. replace all occurences of .svb to .sd). Save modified Script.tcScript file
h) Open your .mds project file in the text editor and do the same search and replace like in step g). Save modified .mds file;
i) Try to open the project in TestComplete.
I might miss some step, but if something is missed, you should get a meaningful warning from TestComplete while opening the project.
Obviously, you will need to adopt script code and code snippets in the keyword tests to the new language.
Hope this will help.
After digging a bit in my memory;) this is what you need to do to change the scripting language of the project:
a) Make a backup :)
b) Install (basically any) TestComplete SDK from http://support.smartbear.com/downloads/testcomplete/sdk/ (SDK is a self-extracting archive, so you can unpack it manually);
c) Open your .mds project file in any editor and search for the 'language' value (under the 'config' node);
d) Copy property's value (GUID string) and search it in the tcConst.pas file from the SDK content. (For example, GUID for VBScript is {897793E3-73F3-4895-A956-3D41D3A24A45});
e) Copy the GUID of the language you need from the tcConst.pas file and paste it into project .mds file. Save modified .mds;
f) Navigate to the [project]\Script\ folder and change extensions of the script files correspondingly (for example, if you are changing the language from VBScript to DelphiScript, change extensions from .svb to .sd);
g) Open Script.tcScript file from the same [project]\Script\ folder in the text editor and search and replace file extensions like in step f) (e.g. replace all occurences of .svb to .sd). Save modified Script.tcScript file
h) Open your .mds project file in the text editor and do the same search and replace like in step g). Save modified .mds file;
i) Try to open the project in TestComplete.
I might miss some step, but if something is missed, you should get a meaningful warning from TestComplete while opening the project.
Obviously, you will need to adopt script code and code snippets in the keyword tests to the new language.
Hope this will help.
Related Content
- 5 months ago
- 11 years ago
- 2 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago