Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Traffic stream object response has alphanumeric characters.

stuser1
stuser1 Posts: 1

I am using parasoft soatest. While hitting test case, I am saving the traffic stream into a .txt file in my local. I amm getting url, header params, request, response params and response. But at some places in the response, few alphanumeric characters are getting printed. Especially at the beginning of node. If the save the response text, it's coming as expected. No alphanumeric characters. Can u tell me what are these and how I can avoid these in traffic stream object.

I formatted my json response
172b, {
18a3, {
17ce, {
17c1, {
177c, {

This is how I am getting before every node begining.

Answers

  • benken_parasoft
    benken_parasoft Posts: 1,331 ✭✭✭
    edited March 24

    I am saving the traffic stream into a .txt file

    For reference, the job of the "Traffic Stream" output is to log the socket's raw byte stream. Whatever bytes are sent or received are exactly what get logged.

    Can u tell me what are these

    Do you see "Transfer-Encoding: chunked"? If so, the HTTP response is sent in chunks where each chunk has the size written in front. This would be exactly what was received over the socket.

    For background, HTTP responses can be encoded in various ways, like "Transfer-Encoding: chunked" or "Content-Encoding: gzip". The decoded version of the HTTP response is available in other ways but not the "Traffic Stream" which is supposed to capture the raw traffic.

    how I can avoid these in traffic stream object.

    You would have to use the "Response Traffic" output instead. You can also log the decoded traffic in SOAtest's HTML report:

    First, enable the option in the test configuration to "Report traffic for all tests". Second, in the Parasoft preferences under Reports, enable "Overview of checked files and executed tests" and disable "Only top-level test suites". This way, the XML/HTML reports will include individual test case detail with traffic.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.