Forum Discussion
Am able to send message same as well as remote machine.. Unable to receive message.
Any updates for me...
- tristaanogre8 years agoEsteemed Contributor
OK... odd question, I'm sure... but how are you implementing the code to receive the message? From what I see, it's simply a function that opens the port. However, if you run that function and then TestComplete completes executing the script, then the listening port is no longer actively listening. So, essentially, your function may be written perfectly... but, effectively, the "program" is no longer running once TestComplete finishes the execution so you can send as many messages to your automation tests as you want but, really, no one is listening...
...at least, that's how I'm reading the code. Somehow, you need to execute your "receiving" code in a way that it stays running until it actually receives a message... some sort of timer or while loop or something to make sure that your "listening" code keeps running until the message is received. The other option is to have your developers (or yourself) write some sort of testing stub that puts a wrapper around your receiving code so that the application stays open and running... then code your TestComplete scripts to interact with that stub in order to test the reception of your data.
Related Content
- 4 years agokiranka
- 9 months agomortenb123
Recent Discussions
- 5 hours agodhundley