Forum Discussion
Hi,
VBScript has two main disadvantages for me: absence of optional function parameters and absence of (normal) exception handling (try/catch/finally).
From this point of view, DelphiScript is my preference.
However, in real life, I would vote for JScript. But JScript does not support out function parameters. This limits possibility to make Win API calls that use out parameters and sometimes forces you to return structures like json or dictionary from functions. But the advantage is that JScript supports json (which is quite often convenient) and provides access to native string/date/regexp functionality.
I am afraid of Python because it has no means to restore code logic when for this or that reason code indentation is lost. (Do not say it will not be lost, the only question is when it will be lost 🙂 )
JavaScript looks strange to me because this is essentially asynchronous language that for some strange reason became popular for testing, where all actions are synchronous. TestComplete internally forces JavaScript to execute synchronously, so no big difference from JScript here, but for other environments (Selenium etc.) I got tired to see every line of code to be prefixed by statements like 'async await'. I understand that modern computers are powerful, but this does not explain me the internal logic of use of async language and forcing it to be synchronous.
There are several other minor points, but in my personal rating for now JScript is first one, than goes DelphiScript with everything else on the third place.
They say that Python has a lot of libraries for, say, network, ML, AI, etc. support. But will you need this for your tests?
Related Content
- 5 months ago
- 11 years ago
- 6 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago