Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Receives Binary doesn't always provide the entire message #67

Open
clipford opened this issue Jun 23, 2017 · 0 comments
Open

Server Receives Binary doesn't always provide the entire message #67

clipford opened this issue Jun 23, 2017 · 0 comments

Comments

@clipford
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant