I have already gone through this solution : Struts 2 JUnit Plugin v2.2.3: Test Class Extending StrutsTestCase; 'request' is null
But I\'m already not having
To avoid request from being null:
request
request = new MockHttpServletRequest();
For session:
Map sessionMap = new HashMap(); actionProxy.getInvocation().getInvocationContext().setSession(sessionMap);