Is there a possible way to test file streaming api using k6

Hi,

I have a rest api which streaming the pdf file. Is there a possible way to test the file streaming using k6. I have tried responseType as binary but it is not what I was expecting. Any help on this would be of great help.

Thanks

Hi @Ayush

Thanks for posting this question. Can you share a bit more context?

  • When you say the result is not what you expected, can you share more details? Do you get any errors, are you not seeing an ArrayBuffer in the response?
  • Can you share the (sanitized) script, so we can have a look at the code?
  • Did you debug the script output, to check the http responses and content in detail? What do you see there?

Cheers!