TestComplete website has many snippets of JScript on its support sites, but I am seeking examples of a more OO approach to using Jscript within TestComplete.
Most JScript code to me appears to be written more inthe functional VBScript style.
Really, I’m looking for a best practice guide but can’t find much..
Note its quite clear how to share common functionality in individual JScript units (files) across Project Suites/Projects in TestComplete, just not how to structure JScript within a unit for maximum reuse.
TestComplete v10.5 trial version installed 2 weeks ago
TestComplete allows choices of scripting language. I am fairly conversant in VBScript, but we will use JScript as it is more versatile with regard to object arrays etc.
TestComplete has an example of parsing an XML file out to the TestComplete log.
Probably so many bad practices evident in here… It creates a tree structure of type XMLNode which is recursed just for fun in the finder functions. Continue reading
Wanted to return a member where the identifying data element name has a dash in it Continue reading