package com.jacob.test.powerpoint; /** * $Id$ * * This is really more of a multi threaded tester *
* May need to run with some command line options (including from inside Eclipse). * Look in the docs area at the Jacob usage document for command line options. */ import com.jacob.activeX.ActiveXComponent; import com.jacob.com.ComFailException; import com.jacob.com.ComThread; import com.jacob.com.Dispatch; import com.jacob.test.BaseTestCase; /** * * power point test program posted to sourceforge to demonstrate memory problem. * The submitter stated they had the problem on windows 2000 with office 2000 * I have been unable to duplicate on windows XP with office 2003. * I am comitting this to the tree just in case we need to come back to it. *
* This relies on BaseTestCase to provide the root path to the file under test *
* May need to run with some command line options (including from inside Eclipse).
* Look in the docs area at the Jacob usage document for command line options.
*/
public class PowerpointTest extends BaseTestCase {
private static final int NUM_THREADS = 5;
protected static final int NUM_ITERATIONS = 50;
/**
* main program that lets us run this as a test
* @param args
*/
public void testPowerpoint() {
ComThread.InitMTA();
ActiveXComponent component = new ActiveXComponent("Powerpoint.Application");
Dispatch comPowerpoint = component.getObject();
try {
PowerpointTestThread[] threads = new PowerpointTestThread[NUM_THREADS];
for (int i=0; i