SqlQueryTest: copied useful code from RunQueriesInVmcTest (which is
going away); unchanged, so far.
SqlQueryTest: added new (static) methods: getTables, getViews (so that
the lists of Tables and Views only need to be retrieved from the UI
once), and use them throughout (instead of page.getTableNames &
page.getViewNames); added new 'insert into, count query, query from, and
delete from, all Tables and Views' method, which combines the old
insertIntoAllTables, queryAllTablesAndViews,
queryCountAllTablesAndViews; modified: runQuery, queryFrom, '#testName'
(commented out try/finally, using cleanup instead); minor tweaks to:
queryCount, insertInto (just removed a couple commented-out lines);
changed calls from println to debugPrint; and improved some JavaDoc.
Deleted old RunQueriesInVmcTest, since all the useful parts have been
copied to SqlQueryTest.
SqlQueryPage.runQuery: Improved the waitFor part, to guard against an
occasional problem where the "Query Duration" was sometimes empty, when
running multiple, slow queries, because of not waiting long enough.
SqlQueryTest, mostly cosmetic: modified '#testName' to fail if not
running 'genqa', and to print a WARNING if the Query Duration message is
null or empty, and to debug-print all results, and fixed indenting;
renamed two constants (INSERT_JSON_VALUES, NUM_ROWS_TO_INSERT) to use
all-caps; renamed 'insert into, count query, query from, and delete
from, all Tables and Views' to 'insert into, query from, count query,
and delete from, all Tables and Views'; deleted some old, commented-out
lines (including old version of queryAllTablesAndViews); added and
improved lots of JavaDoc.