How Do I Change the Scripting Language in TestComplete?

//

Heather Bennett

TestComplete is a powerful automation testing tool that supports various scripting languages. By default, TestComplete uses JavaScript as its primary scripting language. However, if you prefer to work with a different language, TestComplete allows you to easily change the scripting language to suit your needs.

Changing the Scripting Language in TestComplete

To change the scripting language in TestComplete, follow these steps:

Step 1: Launch TestComplete and open your project.

Step 2: In the Project Explorer panel, locate and select the project node.

Step 3: Right-click on the project node and select “Properties” from the context menu.

Step 4: In the Project Properties dialog box, navigate to the “General” tab.

Changing the Default Scripting Language

By default, TestComplete uses JavaScript as its primary scripting language. To change it:

To Change to VBScript:

  • In the “Default Language” drop-down list, select “VBScript”.
  • Click on the “Apply” button to save your changes.

  • Close the Project Properties dialog box.

To Change to Python:

  • In the “Default Language” drop-down list, select “Python”.

To Change to C#Script:

  • In the “Default Language” drop-down list, select “C#Script”.
  • Click on the “Apply” button to save your changes.
  • Close the Project Properties dialog box.

Using Multiple Scripting Languages in TestComplete

TestComplete also allows you to use multiple scripting languages within a single project. This can be useful if you have team members who prefer different languages or if you want to leverage the strengths of different languages for specific tasks.

To add additional scripting languages to your TestComplete project:

Step 1: Open the Project Properties dialog box as mentioned earlier.

Step 2: Navigate to the “Scripting” tab.

Step 3: Click on the “Add” button.

Step 4: In the “Select Language” dialog box, choose the desired scripting language from the list.

Step 5: Click on the “OK” button to add the selected language.

Repeat these steps for each additional scripting language you want to use in your project. You can also change the order of languages by using the “Move Up” and “Move Down” buttons.

Note:

When using multiple scripting languages in a TestComplete project, it’s important to note that each language has its own scope and limitations. Be sure to familiarize yourself with the specific syntax and features of each language before using it in your tests.

In conclusion, TestComplete provides flexibility by allowing you to change and use different scripting languages according to your preferences. Whether it’s JavaScript, VBScript, Python, or C#Script, TestComplete has got you covered. So go ahead, experiment with different languages, and enhance your automation testing experience with TestComplete’s versatility!

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy