cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Scripting Language

Frequent Contributor

Changing Scripting Language

Hi All

 

A very basic question...

 

How can I change my existing project's scripting language ? Thanks

 

10 REPLIES 10
Valued Contributor

Re: Changing Scripting Language

There's no way to do it.

You'll have to create a new project from the scratch

Community Hero

Re: Changing Scripting Language

Hi,

 

Official way - create a new project and specify the language that you need.

Unofficial way - https://community.smartbear.com/t5/TestComplete-General-Discussions/How-to-change-scripting-language...

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Valued Contributor

Re: Changing Scripting Language

even with @AlexKaras solution you may have to do much work to get things in up and running.

each language has it's own grammar. If you are going from A to B to use features of B, have to re-write code using B. 

Community Hero

Re: Changing Scripting Language

> even with [...]

Sure, obviously.

BTW, this is one of the reasons why personally I prefer to use helper objects provided by TestComplete instead of those provided by this or that scripting language when possible. (E.g. aqString instead of string.XXX in JScript and string functions of VBScript.) If you don't work for the same project for years, the use of helpers provided by TestComplete makes it much more easy to port your test code between projects that use different languages. (Yes, I am aware about script extensionsSmiley Happy, but due to their nature it is not always possible to move test code into them.)

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Frequent Contributor

Re: Changing Scripting Language

I got my answerSmiley Happy

 

But I am sure someone can tell me a way to check what script language is being used by the project ?

Community Hero

Re: Changing Scripting Language


@gdave wrote:

 

But I am sure someone can tell me a way to check what script language is being used by the project ?



Nice question. As far as I know, after the project was created, there is no place, where the scripting language setting is stored. And maybe it's a good matter for the feature request.

 

However you can open any script file, analyze the code and solve what the language it is :-)

 

Community Hero

Re: Changing Scripting Language

I'm sure this is basic, you might have checked already in below area.

 

reference.PNG


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”


Extension Available

Community Hero

Re: Changing Scripting Language

Waw! Thanks @shankar_r!

Community Hero

Re: Changing Scripting Language

Hi,

 

> what script language is being used by the project ?

Open project in TestComplete, open any script unit and check the status bar:
ScriptLanguage.png
Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors