@Raviraj
now issue is solved by my self
what cause issue is i have to wrap $request.invokeTemplate into a try and catch block.
but while installing through end-to-end testing i am getting error, please help me to resolve this.
here is video please check it and suggest us changes