Which script language do you prefer and why?
I apologize if this topic has been discussed before but I wasn't able to find what I was looking for in what is out there at the moment.
Thank you and have a great day!
In a nutshell:
-- Pretty inconvenient runtime error handling. This makes VBScript almost unusable for web services testing;
-- Does not support optional/default parameters. This complicates evolution of the library code (it is not possible to add optional parameter to the function that (parameter) gets non-default value only once or not often);
-- Does not support short-circuit logical operations. (For example, the following condition will cause runtime error if the tested object does not exist: IF (obj.Exists AND obj.Visible) Then... )
-- Does not support 'out' parameters (or parameters passed by reference). This forces return of JSON structure when more than one value must be returned. Also this makes it not possible to call some Win32 API functions and COM methods;
-- Native Java arrays must be converted before they can be used in test code as parameters for the methods provided by TestComplete/COM.
-- The language does not contain clauses to enclose if/loop/etc. structures. Thus it is not possible to restore code logic if for some reason indentation is broken. Very risky, as for me.
P.S. [Whispering] My personal preference is DelphiScript, but too few people nowadays know what is this...