models/classes/ExtendedStateService.php
public function addEvent($testSessionId, $eventName, $data = null)
    {
        $extendedState = $this->getExtendedState($testSessionId);
        $eventId = $extendedState->addEvent($eventName, $data);
        $extendedState->save();
        return $eventId;
    }
public function addEvent($testSessionId, $eventName, $data = null)
    {
        $extendedState = $this->getExtendedState($testSessionId);
        $eventId = $extendedState->addEvent($eventName, $data);
        $extendedState->save();
        return $eventId;
    }
public function addEvent ( $ testSessionId , $ eventName , $ data = null ) { $ extendedState = $ this -> getExtendedState ( $ testSessionId ) ; $ eventId = $ extendedState -> addEvent ( $ eventName , $ data ) ; $ extendedState -> save ( ) ; return $ eventId ; }
Add an event on top of the queue
@param string $testSessionId
@param string $eventName
@param mixed $data
@return string
@throws \common_Exception
Add an event on top of the queue