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.
unable to run suite using batch file.
hi
my web application is running in popupwindow with some name.
when i run suite file using batch. i am getting this error
SahiNotMyWindowException: Window with name [TEST] not found
how can i resolve it.
Thanks in advance.
Nagarjun.P
my web application is running in popupwindow with some name.
when i run suite file using batch. i am getting this error
SahiNotMyWindowException: Window with name [TEST] not found
how can i resolve it.
Thanks in advance.
Nagarjun.P
Comments
When running as a suite, can you check if the window is getting opened at all? I suspect that a popup blocker may be kicking in and blocking that window.
Also try running it with only one thread at a time.
Regards,
Narayan
window was opened and tried with single thread only.But still i was getting same error
SahiNotMyWindowException: Window with name [TEST] not found.
please reply as soon as possible
regards,
Nagarjun.p
window was opened and tried with single thread only.But still i was getting same error
SahiNotMyWindowException: Window with name [TEST] not found.
My batch file content
cd\
java -cp d:\sahi\lib\ant-sahi.jar net.sf.sahi.test.TestRunner
please reply as soon as possible
regards,
Nagarjun.p
Could you post your script here? If not you can email me the script.
Regards,
Narayan
Test.suite contains AANavigationSelfTest.sah this file contains
_include("/NavigationController.sah");
var $username = "superuser";
var $password = "superuser";
testLogin($username, $password);
NavigationController.sah contains
function testLogin($username,$password){
if (_condition((_popup("VTONG")._exists(_heading1("Anmeldung"))))) {
_popup("VTONG")._setValue(_textbox("DlgAnmeldungForm:txtUserId"),$username );
_popup("VTONG")._setValue(_password("DlgAnmeldungForm:txtPassword"),$password);
_popup("VTONG")._click(_submit("OK"));
}
}
Note :above all files are in same Directory.
when i run Test.suite with batch file below
cd\
java -cp d:\sahi\lib\ant-sahi.jar net.sf.sahi.test.TestRunner
i am getting this error
SahiNotMyWindowException: Window with name [Test] not found
regards,
Nagarjun
could you give any solution for this problem.
regards,
Nagarjuna.P
There seems to be a bug in Sahi which makes this not work properly.
Here is a workaround till we fix it in our next release.
Regards,
Narayan