* </ul>
*/
protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) {
XInterface oObj = null;
XShape oShape = null ;
XDrawPages oDP = null;
XComponent xComp = (XComponent)
UnoRuntime.queryInterface(XComponent.class, xDoc);
// creation of testobject here
// first we write what we are intend to do to log file
log.println( "creating a test environment" );
try {
log.println( "getting Drawpages" );
XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
UnoRuntime.queryInterface(XDrawPagesSupplier.class,xDoc);
oDP = (XDrawPages) oDPS.getDrawPages();
oDP.insertNewByIndex(1);
oDP.insertNewByIndex(2);
oObj = (XDrawPage) AnyConverter.toObject(
new Type(XDrawPage.class),oDP.getByIndex(0));
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
oShape = SOF.createShape(xComp,5000,3500,7500,5000,"Rectangle");
DrawTools.getShapes((XDrawPage) oObj).add(oShape);
XShape oShape1 = SOF.createShape(xComp,
5000,5500,5000,5000,"Rectangle");
DrawTools.getShapes((XDrawPage) oObj).add(oShape1);
} catch (com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't create insance");
e.printStackTrace(log);