Forum Discussion

Sadik's avatar
Sadik
New Contributor
4 years ago

Can we use two programming language in single project suite or interoperability of code

Hi All,

 

We are looking following solution:

 

Query 1: Is there any way we can use two programming language in Single Test project ( Suite ).

  • Some test cases we can write in Java Scripts and some Test Cases in Python language.

Query 2: Does TestComplete support interoperability of code, like we have some functions written in python code and wanted to use in TestComplete’s Java Scripts project.

 

Kindly anyone suggest if we can archive above approach in TestComplete.

 

Thanks,

Sadik

  • Hi,

     

    Only one script language is possible within one test project.

    Projects within Project Suite can use different script languages. (Project suite is just a container for test projects.)

    You may consider Script Extensions and move your common code there. But Script Extensions can be implemented using VBScript and JScript (not JavaScript) only. (Besides that they have some specifics that might or might not matter to you.)

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Only one script language is possible within one test project.

    Projects within Project Suite can use different script languages. (Project suite is just a container for test projects.)

    You may consider Script Extensions and move your common code there. But Script Extensions can be implemented using VBScript and JScript (not JavaScript) only. (Besides that they have some specifics that might or might not matter to you.)

     

    • Sadik's avatar
      Sadik
      New Contributor

      Thanks for your reply.

       

      I will explore Script Extensions. might be this is helpful.

       

      Thanks,

      Sadik