@Override public SeleniumTest processTest(SeleniumTest test) { log.debug("processing {} filters in chain", testFilters.count()); for (SeleniumTestFilter filter : testFilters) { log.debug("applying {}", filter); test = filter.processTest(test); } return test; } }
public boolean isStopped_M() { int numInstances = _instanceArray.count(); for (int i=0; i<numInstances; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); if (anInstance.state != MObject.DEAD) { return false; } } return true; } }
public int webEventCount() { _cacheWebEofEvents(); return (webEvents != null) ? webEvents.count() : 0; }
public int eofEventCount() { _cacheWebEofEvents(); return (eofEvents != null) ? eofEvents.count() : 0; }
public MApplication applicationWithName(String anAppName) { if (anAppName == null) return null; int applicationArrayCount = _applicationArray.count(); for (int i=0; i<applicationArrayCount; i++) { MApplication anApp = (MApplication) _applicationArray.objectAtIndex(i); if (anApp.name().equals(anAppName)) { return anApp; } } return null; }
/**********/ public Integer nextID() { int instanceArrayCount = _instanceArray.count(); int lastSequence = 0; for (int i=0; i<instanceArrayCount; i++) { MInstance anInst = (MInstance) _instanceArray.objectAtIndex(i); int thisSequence = anInst.id().intValue(); if (thisSequence > lastSequence) { lastSequence = thisSequence; } } return Integer.valueOf(lastSequence+1); }
public Integer runningInstancesCount_W() { int runningInstances = 0; int numInstances = _instanceArray.count(); for (int i=0; i<numInstances; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); if (anInstance.isRunning_W()) { runningInstances++; } } return Integer.valueOf(runningInstances); }
@Override public String toString() { return ""+(super.toString())+"-lc:"+(_lookUpCoordinates)+"-"+(recordList().count())+"-"+(_recordGroupDict.toString()); }
public MInstance instanceWithID(Integer ID) { int instanceArrayCount = _instanceArray.count(); for (int i=0; i<instanceArrayCount; i++) { MInstance anInst = (MInstance) _instanceArray.objectAtIndex(i); if (anInst.id().equals(ID)) { return anInst; } } return null; }
public MInstance instanceWithPort(Integer port) { int instanceArrayCount = _instanceArray.count(); for (int i = 0; i < instanceArrayCount; i++) { MInstance anInst = (MInstance) _instanceArray.objectAtIndex(i); if (anInst.port().equals(port)) { return anInst; } } return null; }
public MInstance instanceWithName(String anInstanceName) { if (anInstanceName == null) return null; int instanceArrayCount = _instanceArray.count(); for (int i=0; i<instanceArrayCount; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); if (anInstance.displayName().equals(anInstanceName)) { return anInstance; } } return null; }
/** ******* */ public Integer runningInstancesCount_W() { int runningInstances = 0; int numInstances = _instanceArray.count(); for (int i = 0; i < numInstances; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); if (anInstance.isRunning_W()) { runningInstances++; } } return Integer.valueOf(runningInstances); }
public void pushValuesToInstances() { int instanceArrayCount = _instanceArray.count(); for (int i=0; i<instanceArrayCount; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); anInstance.takeValuesFromApplication(); } } /**********/
public boolean localhostOrLoopbackHostExists() { String localhost = "localhost"; String loopback = "127.0.0.1"; int hostArrayCount = _hostArray.count(); for (int i=0; i<hostArrayCount; i++) { MHost aHost = (MHost) _hostArray.objectAtIndex(i); if ( (aHost.name().equals(localhost)) || (aHost.name().equals(loopback)) ) { return true; } } return false; }
public WOHelperFunctionBindingNameAssociation(String keyPath) { super(keyPath); // Extract _keyPath for bug fix in setValue() NSMutableArray aKeyArray = NSArray._mutableComponentsSeparatedByString(keyPath, "."); if(aKeyArray.count() > 1) { aKeyArray.removeObjectAtIndex(0); _keyPath = aKeyArray.componentsJoinedByString("."); } }
public int webEventDuration() { int i, n, time; _cacheWebEofEvents(); n = (webEvents != null) ? webEvents.count() : 0; for (i = 0, time = 0; i < n; i++) { EOEvent e = (EOEvent) webEvents.objectAtIndex(i); if (e instanceof WOEvent) time = time + (int) e.durationWithoutSubevents(); } return time; }
public int eofEventDuration() { int i, n, time; _cacheWebEofEvents(); n = (eofEvents != null) ? eofEvents.count() : 0; for (i = 0, time = 0; i < n; i++) { EOEvent e = (EOEvent) eofEvents.objectAtIndex(i); if (!(e instanceof WOEvent)) time = time + (int) e.durationWithoutSubevents(); } return time; }
@Override protected void processTestElements(NSMutableArray<Element> elements) { int i = 0; while (i < elements.count()) { if (elements.get(i) instanceof SeleniumTest.Command) { SeleniumTest.Command command = (SeleniumTest.Command)elements.get(i); if (command.getName().startsWith("open")) { i += processOpenCommand(command, elements, i); } } ++i; } } }
public NSArray<MInstance> runningInstances_M() { NSMutableArray<MInstance> instances = new NSMutableArray<>(); int numInstances = _instanceArray.count(); for (int i=0; i<numInstances; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); if (anInstance.isRunning_M()) { instances.addObject(anInstance); } } return instances; }
protected void _makePrimaryOrderingWithSelector(NSSelector aSelector) { NSMutableArray<EOSortOrdering> orderingArray = (NSMutableArray<EOSortOrdering>)_sortOrderingArray(); EOSortOrdering aNewOrdering = EOSortOrdering.sortOrderingWithKey(key(), aSelector); orderingArray.insertObjectAtIndex(aNewOrdering, 0); if (orderingArray.count() > 3) { // ** limits ing to 3 levels orderingArray.removeLastObject(); } }