You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Rammbock to set up a tcpServer so that I can receive and send JSON messages. I receive the binary data and then create a file from the msg string returned. I am not defining a protocol in this case.
${msg} = Server Receives Binary timeout=10
Create File ${EXECDIR}/msgReceivedbinary.out ${msg}
When there was just one message exchange within my test this was working. When I had to add an additional message exchange - ie. One JSON request is received to look up some data and then another mesasge is received soon after with a much larger message ( say 2200 bytes). I'm now getting intermittent failures. I have 7 tests in my suite. The tests will all work about 50% of the time. When I do a tcpdump I can see that the application that I'm testing is consistently sending all of the data. However, when the tests fail, the resultant string from the Server Receives Binary keyword only contains the message data up to the content length field in the json message and the json content (data between curly braces) is not present.
At one point I attempted to define a protocol that just consisted of a character string of 3000 (a size big enough to cover the data being received) but it didn't make a difference. I also attempted to add a delay to see if it was taking time to flush the file but that didn't prove to help. When I log the ${msg} string to the console I can also see that the json content is missing.
I'm using Rammbock to set up a tcpServer so that I can receive and send JSON messages. I receive the binary data and then create a file from the msg string returned. I am not defining a protocol in this case.
${msg} = Server Receives Binary timeout=10
Create File ${EXECDIR}/msgReceivedbinary.out ${msg}
When there was just one message exchange within my test this was working. When I had to add an additional message exchange - ie. One JSON request is received to look up some data and then another mesasge is received soon after with a much larger message ( say 2200 bytes). I'm now getting intermittent failures. I have 7 tests in my suite. The tests will all work about 50% of the time. When I do a tcpdump I can see that the application that I'm testing is consistently sending all of the data. However, when the tests fail, the resultant string from the Server Receives Binary keyword only contains the message data up to the content length field in the json message and the json content (data between curly braces) is not present.
At one point I attempted to define a protocol that just consisted of a character string of 3000 (a size big enough to cover the data being received) but it didn't make a difference. I also attempted to add a delay to see if it was taking time to flush the file but that didn't prove to help. When I log the ${msg} string to the console I can also see that the json content is missing.
tcpdata.txt
The text was updated successfully, but these errors were encountered: