cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Scripting Language

Highlighted
Regular Contributor

Changing Scripting Language

Hi All

 

A very basic question...

 

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

 

10 REPLIES 10
Highlighted
Valued Contributor

Re: Changing Scripting Language

There's no way to do it.

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

Highlighted
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 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
================================
Highlighted
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. 

Highlighted
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 extensions:), but due to their nature it is not always possible to move test code into them.)

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
================================
Highlighted
Regular 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 ?

Highlighted
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 🙂

 

Highlighted
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

Highlighted
Community Hero

Re: Changing Scripting Language

Waw! Thanks @shankar_r!

Highlighted
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 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
================================
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors