Forum Discussion
Thanks Rao for looking into it. Sure I will try your suggestion. I have fixed my CDATA issue and getting null pointer exception as mentioned in second my post. I thought i am getting null pointer exception may be due "request" is null and for that i tried to get TestRequest properties and it shows null in the log. Any thoughts why is "Request " parameter is null?
please find my code and its log message below. I have also attached my screenshot.
firstTestStep =context.testCase.testSuite.project.testSuites["Services"].testCases["Rest"].testSteps["GetUserdetails"]
stepPropList = firstTestStep.getPropertyList()
for(i in stepPropList){
log.info(" " + i.getName() + " : " + i.getValue())
}
- Thu Aug 04 16:02:18 IST 2016:INFO: Username : null
- Thu Aug 04 16:02:18 IST 2016:INFO: Password : null
- Thu Aug 04 16:02:18 IST 2016:INFO: Domain : null
- Thu Aug 04 16:02:18 IST 2016:INFO: Request :
- Thu Aug 04 16:02:18 IST 2016:INFO: ResponseAsXml : null
- Thu Aug 04 16:02:18 IST 2016:INFO: Response : null
- Thu Aug 04 16:02:18 IST 2016:INFO: RawRequest : null
Now I got why my request is null after going through this link...
it looks like request will be always null for Rest get request and for post request it contains value.. I have to look for other options to make my framework working..
Thanks,
Ravindra
- selva296 years agoOccasional Contributor
Did u got any way to get the rest request for the "GET' request ??
- HimanshuTayal6 years agoCommunity Hero
Hi selva29,
I was only able to get the parameters i have passed in GET request, as there is no request for the GET type.
Related Content
Recent Discussions
- 4 hours agoruchisingh