if (BridgeUtil.getPortletRequestPhase() ==
Bridge.PortletPhase.ACTION_PHASE)
{
// Create and raise the event
StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
response.setEvent(new QName(EVENT_QNAME, EVENT_NAME), testRunner.getTestName());
return Constants.TEST_SUCCESS; // action Navigation result
}
else if (BridgeUtil.getPortletRequestPhase() ==
Bridge.PortletPhase.RENDER_PHASE)