log.debug("JoinPoint '" + resourceJoinPoint + " invoked for '"
+ ctx.getTestName() + "' testId and '" +
+ctx.getRequestCount() + "' request count");
// Get the action
TestAction action = null;
PortletTestCase portletTestCase = getSequence(ctx.getTestName());
if (portletTestCase != null)
{
action = portletTestCase.getAction(ctx.getRequestCount(), NodeId.locate(), resourceJoinPoint);
}
//
DriverResponse response;
if (action instanceof PortletTestAction)
{
log.debug("Found action for joinpoint " + resourceJoinPoint + " : " + action);
// Get the result that must exist since it is the only joinpoint invoked during this request
response = ((PortletTestAction)action).execute(this, req, resp, ctx);
}
else if (action instanceof PortletResourceTestAction)
{
log.debug("Found action for joinpoint " + resourceJoinPoint + " : " + action);
// Get the result that must exist since it is the only joinpoint invoked during this request
response = ((PortletResourceTestAction)action).execute(this, req, resp, ctx);
}
else if (action == null)
{
response = new FailureResponse(Failure.createAssertionFailure("Action for " + ctx.getRequestCount() +
" " + NodeId.locate() + " " + resourceJoinPoint + " is null"));
}
else
{
response = new FailureResponse(Failure.createAssertionFailure("Action for " + ctx.getRequestCount() +
" " + NodeId.locate() + " " + resourceJoinPoint + " does not have the right type but has the type " +
action.getClass().getName()));
}
//
if (response != null)
{