Forum Discussion
hellrid1
12 years agoOccasional Contributor
This works :
Process p = null;
File execFile = new File ("C:\\Program Files\\SmartBear\\soapUI-Pro-4.0.1\\bin");
try {
p = Runtime.getRuntime().exec( "cmd.exe /C testrunner.bat -s\"RealTimeRatingServiceSoapBinding TestSuite\" -c\"RTR-Rate Revision Request TestSuite\" \"C:\\Documents and Settings\\Hellrid1\\Desktop\\SoapUICmd\\RTR-Test-soapui-project.xml\"", (String[])null, execFile );
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Now I need to make the Main calling routine to wait until the SoapUI process finishes so that I can parse the XML after it is done. I tried:
try {
p.waitFor();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but when I do this, the SoapUI process does not start.
Thank You Very much!
Process p = null;
File execFile = new File ("C:\\Program Files\\SmartBear\\soapUI-Pro-4.0.1\\bin");
try {
p = Runtime.getRuntime().exec( "cmd.exe /C testrunner.bat -s\"RealTimeRatingServiceSoapBinding TestSuite\" -c\"RTR-Rate Revision Request TestSuite\" \"C:\\Documents and Settings\\Hellrid1\\Desktop\\SoapUICmd\\RTR-Test-soapui-project.xml\"", (String[])null, execFile );
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Now I need to make the Main calling routine to wait until the SoapUI process finishes so that I can parse the XML after it is done. I tried:
try {
p.waitFor();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but when I do this, the SoapUI process does not start.
Thank You Very much!
Related Content
- 9 years agoCoder7524