Zoomed Image

AMSX Scripting Language - Command : TestQuery

Summary

Validate that a saved xAssets query executes without errors

Description

Runs the named query to verify it executes correctly. Can optionally test query performance. When a search filter is supplied and SearchTest is enabled, the query is first tested without the filter and then again with it, so both code paths are exercised.

Parameters

ParameterDescription
cmdsaved query name
Argument 0true to measure and report query performance, false to only verify it runs
Argument 1optional search filter string to test the query with
Argument 2true to also test without the search filter when a filter is provided (default true)
Argument 3true to test all query levels, false to test only the top level (default true)

Syntax


TestQuery "saved query name", "true to measure and report query performance, false to only verify it runs", "optional search filter string to test the query with", "true to also test without the search filter when a filter is provided (default true)", "true to test all query levels, false to test only the top level (default true)"

Return to the AMSX Command Reference