How to add transaction names in Service Suite
You can use the startStep() API to assign a descriptive name to a transaction or step in a Service Suite script. The transaction name is then displayed in the execution reports, making it easier to identify and analyze individual transactions.
Example
The following example assigns the transaction name "Open web page API simulation" before executing the request:
addGlobalHeader("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36");
addGlobalHeader("cache-control", "no-cache");
startStep("Open web page API simulation");
var resp = open("https://www.apple.com");
How it works
startStep("Open web page API simulation")starts a named transaction/step.- The string passed to
startStep()is used as the transaction name in the reports. - The
open()call executes the request associated with that transaction.
You can replace the transaction name with any meaningful description that helps identify the operation being measured.
For example:
startStep("Login API");
var resp = open("https://example.com/login");
This allows the transaction to be easily identified as "Login API" in the corresponding reports.
Last updated: August 17, 2026
If you have any feedback on this topic, please contact us at documentation@appvance.ai.