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.
How to use _suiteInfo to get base URL?
I'm trying to output the baseURL of my test suite to a log file (so I can tell one environment test from another), but I seem to be having issues with _suiteInfo. This is what I was trying to do:
$baseURL = "";
_set($baseURL,_suiteInfo().getAttribute("base"));
_log($baseURL,"custom");
When I do this I get null as the result. Is there something I am doing wrong?
$baseURL = "";
_set($baseURL,_suiteInfo().getAttribute("base"));
_log($baseURL,"custom");
When I do this I get null as the result. Is there something I am doing wrong?
Best Answer
-
Hi,
Please log baseURL using below code.
$suiteInfo = _suiteInfo();
_log($suiteInfo["baseURL"]);
Regards,
Pratik Shah
