public void runSessions(Session[] sessions) throws Exception {
  this.sessions=sessions;
  elementsIterator=testElements.iterator();
  while (elementsIterator.hasNext()) {
    Object obj=elementsIterator.next();
    if (obj instanceof ProtocolElement) {
      ProtocolElement test=(ProtocolElement)obj;
      test.testProtocol(sessions,continueAfterFailure);
    }
  }
}

public void runSessions ( Session [ ] sessions ) throws Exception { this . sessions = sessions ; elementsIterator = testElements . iterator ( ) ; while ( elementsIterator . hasNext ( ) ) { Object obj = elementsIterator . next ( ) ; if ( obj instanceof ProtocolElement ) { ProtocolElement test = ( ProtocolElement ) obj ; test . testProtocol ( sessions , continueAfterFailure ) ; } } }
executes the protocolsession in real time against the readers and writers supplied , writing client requests and reading server responses in the order that they appear in the test elements . the index of a reader / writer in the array corresponds to the number of the session . if an exception occurs , no more test elements are executed .
