Forum Discussion

jlemorris's avatar
jlemorris
Occasional Visitor
8 years ago

conversion of C# scripts to JavaScript with version 12

All our scripts prior to TC v12 were written in C#.  With TC v12 it is recommended that we convert them to JavaScript.  However the option to convert is not available when you right click.  Please could someone help.

Thanks

Jane

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    https://support.smartbear.com/viewarticle/82026/

     

    A "conversion" is only supported from jscript to javascript.  In the article linked above, it says:

    TestComplete allows you to convert your JScript projects to JavaScript. This action cannot be undone, but you have the option to create a backup before the conversion.  Conversion changes the project’s scripting language to JavaScript, but does not modify your code. You may need to manually fix certain things in your code

     

    So, since code is not being changed, what you can do as a workaround is to create a brand new project but select JavaScript as the language.  Then pull copies of your C# scripts into that project.  You can then try to run them and make code changes as necessary.