Forum Discussion

Madhi's avatar
Madhi
Contributor
15 years ago

units scripted in vbscript and c#

Can we have two units with code written in different languages in the same project.  I want to run one unit in vbscript and add one more in c#.  If so, how.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Madhi,



    No, this is not possible. All scripts within the projects must be on the same language. But the projects in the suite may use different languages.

    Depending on what functionality is implemented in your scripts, you may consider moving it into Script Extension (see relevant help topics for more details) as scripts can call functions from the Script Extensions that are created using different language.

  • Hi Madhi,







    Can we have two units with code written in different languages in the same project.



    No, there is no way to do this. We have an appropriate suggestion in our DB, and your post has increased its rating. Thank you.





    At the meantime, you can create individual VBScript and C#Script projects with the needed test items and run the project suite.