Hi,
with the Java API you can open your Rhapsody project Update, Build and excecute yout TestPackage.
The Support of TestConductor provided as a sample application, that we need to adapt.
The code for starting Rhapsody looks like:
public synchronized boolean startRhapsody() throws Exception
{
String sCommand = ""+EnvironmentVariable.RHAPSODY_INSTALL_PATH+"\\rhapsody.exe "+ this.s_mOptionalArguments + " -cmd=open " + m_sModelPath;
System.out.println("Executing command: "+ sCommand); System.out.flush();
Process rhpprocess = null;
try{
rhpprocess = Runtime.getRuntime().exec(sCommand);
}catch(IOException e)
{
System.out.println("An exception occurred in startRhapsody: "+e.getMessage());
System.out.println("StackTrace: \n"); System.out.flush();
e.printStackTrace();
throw e;
}
stdOutFile=File.createTempFile("TestExecuter",".out"); //$NON-NLS-1$//$NON-NLS-2$
stdErrFile=File.createTempFile("TestExecuter",".err");
MyFd outFd = new MyFd(rhpprocess.getInputStream(),stdOutFile);
outFd.start();
MyFd errFd = new MyFd(rhpprocess.getErrorStream(),stdErrFile);
errFd.start();
// wait
//exitValue = rhpprocess.waitFor();
return true;
}
For Test update/build/execution they got a bunch of "Helper-Functions"
Roy