18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Test name
How is the executing test name accessed? For example, a test freezes on a CI server and a screen images is created with the name of the executing test.
Comments
You can use _scriptName() API with callback functions.
Here is an example:
Other callback functions are:
onScriptError();
onScriptEnd();
Let me know if this solves your issue.
Regards
Sumitra
Thanks for the reply. _scriptName() is almost what I what. For example,
scriptName.sah contains
function testName1() {}
function testName2() {}
Is it possible to get test name (testName1, testName2) that was running when there was an exception?