Forum Discussion

RichBopp's avatar
RichBopp
Contributor
5 years ago

Keyword Project - Convert from Python to JavaScript

Short Question - How do you convert a Keyword Project recorded using Python as the underlying language to JavaScript?   Long Background - When we were originally creating Projects years ago - we ex...
  • AlexKaras's avatar
    AlexKaras
    5 years ago

    Hi Rich,

     

    Are we out of luck?

    Unfortunately, yes, you are.

    However, I believe that unless you were using something that is very specific to Python, the conversion should not be that difficult.

    Personally I convert from time to time my code that I created in VBScript, DelphiScript and JScript and the process is quite straightforward. (Tip: my preference is to use the means provided by TestComplete instead of native functionality provided by the given scripting language whenever possible. (E.g. functions to work with date, time, strings, etc.) This significantly simplifies future conversion.)

    Another option that you may consider is to create Script Extension and move common generic code to there. Script Extensions are not ideal but can be used from projects that are based on different scripting languages.