예제 #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;
 }