SQL Calls in Service Suite
Recommended guidance
Details ofUse SQL filescalls in Service Suite only when tests need controlled database validation or setup. SQL calls must follow least privilege and usageshould canavoid bedestructive foundoperations unless they are explicitly approved and reversible.
What to define
- Database connection, schema, query, parameters, and timeout.
- Read-only versus write behavior and required permissions.
- Expected row count, values, or business validation criteria.
- Cleanup, rollback, and audit expectations for any data changes.
Best practices
- Use test databases and controlled data whenever possible.
- Never store passwords or production customer data in
SQLunsecuredTesting with Appvance.processSQLFile(String:file)Process aexamples. - Validate SQL
file, results fromoutside theSQLmainqueriessuitecouldbeforebeusingstoredit intheautomatedlockerruns. - Review
usingquerytheperformancecallandstoreInLockerlogsor the white board using the call storeInWhiteboard,processSQLFilecan return one single row or a bunch of rows, for more information about processSQLFile seeSQL Testing with Appvance.processSQLFile("{ds}/Test.sql");processSQLFile(String:file,JSONObject:entries)Process awhen SQLfile,callsresultsaffectfromexecutionthe SQL queries could be stored in the locker using the call storeInLocker or the white board using the call storeInWhiteboard,processSQLFilecan return one single row or a bunch of rows, for more information about processSQLFile seeSQL Testing with Appvance.
time.processSQLFile(String:file, Map<String, String>:entries)
Process a SQL file, results from the SQL queries could be stored in the locker using the call storeInLocker or the white board using the call storeInWhiteboard, processSQLFile can return one single row or a bunch of rows, for more information about processSQLFile see SQL Testing with Appvance.
Last updated: SeptemberOctober 19,7, 20242026
If you have any feedback on this topic, please contact us at documentation@appvance.ai