cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read response of one rest test step

SOLVED
Highlighted
Community Hero

Re: Unable to read response of one rest test step

Hope you also read the comment along with code snippet that it couldn't be tested and haven't changed any logic which was written, just compare both .

By the way, excel row and column starts with 0 or 1? Check that as well.


Regards,
Rao.
Highlighted
Contributor

Re: Unable to read response of one rest test step

Hi @nmrao ,

 

column starts with 0, row 0 has titles and row 1 onwards has data.

Highlighted
Community Hero

Re: Unable to read response of one rest test step

Ok.

Never used jxl API. You have to check your logic which i could not validate or test.


Regards,
Rao.
Highlighted
Contributor

Re: Unable to read response of one rest test step

Its working fine for some services and giving trouble for some. Not sure what is the issue. Thank you.

Highlighted
Community Hero

Re: Unable to read response of one rest test step

Then compare both and see if that is happening due to data. So compare the data and see if there is any pattern.


Regards,
Rao.
Highlighted
Contributor

Re: Unable to read response of one rest test step

Hi @nmrao ,

 

I have compared them and found out . Whenever there is 204 response code, response body will be empty. In that case my json assertion is failing. So I have used if else condition to skip entering json assertion in case of 204 response code. If there is any test step with 204 response code in that scenario it was supposed to enter else part, but its not entering . Can you please suggest me on how to process with this.

 

Thank you in advance

Highlighted
Community Hero

Re: Unable to read response of one rest test step

But I don't remember if there is any status check happening in the above logic.


Regards,
Rao.
Highlighted
Community Hero

Re: Unable to read response of one rest test step

@roja1 

By the way, what is the objective of the script at high level?Is it about Just read data from excel for each step and compare response?

Is it complete script ?



Regards,
Rao.
Highlighted
Community Hero

Re: Unable to read response of one rest test step

Still there is if else part?
Suggest you to have condition based on response http status but not the response data size or null


Regards,
Rao.
Highlighted
Contributor

Re: Unable to read response of one rest test step

Hi @nmrao ,

 

Objective is to read expected output from excel compare it with soapUI response and write the response body, request url, status of test step, test step name to another excel.Code which I have posted is for comparision and it plays the major role

New Here?
Join us and watch the welcome video:
Top Kudoed Authors