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.
Error while running Batch file
Hi ,
I have created a batch file to run my suite file to test the application. And I get below Error Message :
Batch File Location- C:\sahi_20100820\sahi\userdata\scripts\Two.bat
Suite File Location- C:\sahi_20100820\sahi\userdata\scripts\qa.suite
Browser - IE 7
Sep 30, 2010 1:53:04 PM net.sf.sahi.command.CommandExecuter execute
WARNING: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:55)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProces
sor.java:43)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:179)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.sahi.util.FileNotFoundRuntimeException: java.io.FileNotFoundEx
ception: C:\sahi_20100820\sahi\userdata\scripts\qa.suite (The system cannot find
the file specified)
at net.sf.sahi.util.Utils.readFile(Utils.java:167)
at net.sf.sahi.util.Utils.readFile(Utils.java:146)
at net.sf.sahi.test.SuiteLoader.processSuiteFile(SuiteLoader.java:80)
at net.sf.sahi.test.SuiteLoader.loadScripts(SuiteLoader.java:58)
at net.sf.sahi.test.SuiteLoader.<init>(SuiteLoader.java:47)
at net.sf.sahi.test.SahiTestSuite.loadScripts(SahiTestSuite.java:128)
at net.sf.sahi.test.SahiTestSuite.<init>(SahiTestSuite.java:95)
at net.sf.sahi.command.Suite.start(Suite.java:40)
... 11 more
Caused by: java.io.FileNotFoundException: C:\sahi_20100820\sahi\userdata\scripts
\qa.suite (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at net.sf.sahi.util.Utils.readFile(Utils.java:164)
... 18 more
The BATCH FILE creates is as follows
C:\sahi_20100820\sahi\tools\toggle_IE_proxy.exe enable
java -cp C:\sahi_20100820\sahi\lib\ant-sahi.jar net.sf.sahi.test.TestRunner C:\sahi_20100820\sahi\userdata\scripts\qa.suite "C:\Program Files\Internet Explorer\iexplore.exe" https://<Apps URL>/Login.aspx default localhost 9999 3 iexplore.exe
C:\sahi_20100820\sahi\tools\toggle_IE_proxy.exe disable
Can anyone please suggest solution for it.
I have created a batch file to run my suite file to test the application. And I get below Error Message :
Batch File Location- C:\sahi_20100820\sahi\userdata\scripts\Two.bat
Suite File Location- C:\sahi_20100820\sahi\userdata\scripts\qa.suite
Browser - IE 7
Sep 30, 2010 1:53:04 PM net.sf.sahi.command.CommandExecuter execute
WARNING: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:55)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProces
sor.java:43)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:179)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.sahi.util.FileNotFoundRuntimeException: java.io.FileNotFoundEx
ception: C:\sahi_20100820\sahi\userdata\scripts\qa.suite (The system cannot find
the file specified)
at net.sf.sahi.util.Utils.readFile(Utils.java:167)
at net.sf.sahi.util.Utils.readFile(Utils.java:146)
at net.sf.sahi.test.SuiteLoader.processSuiteFile(SuiteLoader.java:80)
at net.sf.sahi.test.SuiteLoader.loadScripts(SuiteLoader.java:58)
at net.sf.sahi.test.SuiteLoader.<init>(SuiteLoader.java:47)
at net.sf.sahi.test.SahiTestSuite.loadScripts(SahiTestSuite.java:128)
at net.sf.sahi.test.SahiTestSuite.<init>(SahiTestSuite.java:95)
at net.sf.sahi.command.Suite.start(Suite.java:40)
... 11 more
Caused by: java.io.FileNotFoundException: C:\sahi_20100820\sahi\userdata\scripts
\qa.suite (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at net.sf.sahi.util.Utils.readFile(Utils.java:164)
... 18 more
The BATCH FILE creates is as follows
C:\sahi_20100820\sahi\tools\toggle_IE_proxy.exe enable
java -cp C:\sahi_20100820\sahi\lib\ant-sahi.jar net.sf.sahi.test.TestRunner C:\sahi_20100820\sahi\userdata\scripts\qa.suite "C:\Program Files\Internet Explorer\iexplore.exe" https://<Apps URL>/Login.aspx default localhost 9999 3 iexplore.exe
C:\sahi_20100820\sahi\tools\toggle_IE_proxy.exe disable
Can anyone please suggest solution for it.
Comments
It looks like the file is not present at the given path. Could you please double check it?
Regards,
Narayan
I have placed the Suite File under "Scripts" folder and here the Path is - C:\sahi_20100820\sahi\userdata\scripts\qa.suite
Is there any mandatory to place the SUITE file and BATCH file in any particular folder ?