public Properties getParams() { IParam paramObject = testInstance_.params().queryInterface(IParam.class); if (paramObject == null) return null; int numOfParams = paramObject.count(); Properties params = new Properties(); for (int i = 0; i < numOfParams; i++) { params.setProperty(paramObject.paramName(i), (String) paramObject.paramValue(i)); } return params; }
public Run[] getRuns(String filter) { IRunFactory runFactory = testInstance_.runFactory().queryInterface(IRunFactory.class); IList runList = runFactory.newList(filter); Run[] runs = new Run[runList.count()]; Iterator<Com4jObject> runIter = runList.iterator(); int i = 0; while (runIter.hasNext()) { runs[i] = new Run(runIter.next()); i++; } return runs; }
public Test getTest() { return new Test(testInstance_.test()); }
public Run createNewRun(String name, boolean AutoPost) { Run run = new Run(testInstance_.runFactory().queryInterface(IRunFactory.class).addItem(name)); run.autoPost(AutoPost); return run; }