How to use associative arrays in TestComplete

  January 15, 2007

Artem recently described how to use dictionary arrays, aka associative arrays, with the Microsoft runtime library. Here's another way to create hash based associative arrays that uses native JScript/JavaScript that will also work when scripting web pages.

The method Artem used should be faster if you're doing a lot of work with these arrays, but this method may be easier to remember if you're scripting both tests and web pages.

Here's example code that demonstrates how to use associative arrays in TestComplete: