cancel
Showing results for 
Search instead for 
Did you mean: 

Saving the response results which is more than 1KB only

Rakesh15
Occasional Contributor

Saving the response results which is more than 1KB only

Hi All, 

I have Test Suite which has couple of Delay statements, when I saving the response of the Test Suite to a external / local folder I do have bunch of xml response which are of 0KB. 

Rakesh15_0-1614085650817.png

 

Appreciate if you can provide solution to drop or ignore any response which is less then 0 KB

5 REPLIES 5
richie
Community Hero

Re: Saving the response results which is more than 1KB only

Hey @Rakesh15,

Are you using groovy to save off your responses? What mechanism are you using to save responses? This could guide how to resolve this.

Im curious about the zerobyte files. When youre getting zerobyte files that means youre not even getting an http response at all....not even a response with just headers, so if you could clarify whats going on here, that could help answer your question too.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Rakesh15
Occasional Contributor

Re: Saving the response results which is more than 1KB only

Hi Richie, 

 

I am using Soap 5.5. As I mentioned, I have couple of Delay Statements which will not generate response, when I save the Test Suite I don't want to save these

 

Thank's for look into this issue

richie
Community Hero

Re: Saving the response results which is more than 1KB only

Hey @Rakesh15,

Delay steps are none executable like Property steps, so youre losing me a bit as to whats the problem.
Also you say youre "saving the testsuite", but im failing to understand how youre saving the testsuite which then creates zero byte files. If i make a change to a testsuite and then click "save" to persist those changes, this doesnt create a file which contains the response.

Hence thr reason i asked what is actually occurring?

Can you please clarify what objects you have in a testcase and testsuite?

What you actually mean by "saving the testsuite"?

What youre doing to try and save the response in a file?

What responses are being saved? Executable steps are worth saving the reaponses? But there is no response from a nonexecutable step, so the response isnt worth saving. Im guessing youre doing something to save the responses from your test steps and as a Delay doesnt hve a response thats why youre gettimg zero byte files, BUT! there are many different ways to save responses and how youre doing it is, im guessing the cause of the zerobyte files.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Rakesh15
Occasional Contributor

Re: Saving the response results which is more than 1KB only

I have Test Suite something like below

TestSuite1

   a. Add

     Delay1

   b. Update

    Delay2

  c. Delete

  d. Savetofile (This will save all the above request and response to a xml)

I would like to save only Add, Delete, Update and not Delay 1 & 2

 

 

 

 

richie
Community Hero

Re: Saving the response results which is more than 1KB only

Hey @Rakesh15,

The "save to file" step. What are you using to do this? Groovyscript? Some other method? Thats the bit the forum members need to know to be able to answer your question.

If you use the "Dump File" attribute (which is only available on the executable steps.....its an "TestRequest Property" available (bottom left corner of the Navigator), this means you wont be savinf responses for the Delay steps.

Ta
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors