示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
 public Test getTest() {
   return new Test(testInstance_.test());
 }
示例#4
0
 public Run createNewRun(String name, boolean AutoPost) {
   Run run = new Run(testInstance_.runFactory().queryInterface(IRunFactory.class).addItem(name));
   run.autoPost(AutoPost);
   return run;
 }