自定义界面消息-界面消息测试 [英] Custom interface messages- Interface Message Testing

查看:147
本文介绍了自定义界面消息-界面消息测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在Windows中开发一个应用程序,该应用程序可通过TCP连接或串行连接与远程系统中的另一个应用程序进行交互.交互是通过使用自定义消息格式(不是xml,而是定义为类)发生的. Windows和远程系统之间存在字节序差异,因此我也需要处理字节序转换.
我的问题是测试.我发现很难用所有数据组合来测试所有消息.构建一个模拟器来做同样的事情会增加开发时间
是否有任何自动测试工具可以生成我的消息格式,我可以使用该工具来测试我的数据接口消息.
在Advance中致谢

Hello,
I''m developing an application in windows which interacts with another application in a remote system via TCP connection or serial connection. The interaction happens with the use of custom message formats (not xml but defined as classes). There is an endian difference between the windows and the remote system, so i need to handle the endian conversion too.
My problem is with the testing. I''m finding hard to test all the messages with all the combinations of data. Building a simulator to do the same will increase the development time
Is there any automated testing tool, which can generate my message formats, which i can use to test my data interface messages.
Thanks in Advance

推荐答案

很难猜测您是如何实现协议的.我认为您至少应该有类似List<YourProtocolStatements>之类的东西,或者只是一个简单的List<String>.
有了这个,您可以轻松地遍历列表并在try/catch中进行测试.
同样适用于您的数据.只要您有少量的可能数据,就可以在循环内对其进行测试.
如果不是,则只能测试所有可能为finit列表的数据类型.
希望我能帮上忙
It''s a bit hard to guess how you implemented your protocol. I think you should have at least something like List<YourProtocolStatements> or just a simple List<String>.
Having this you can easily iterate through your list and do your tests inside a try/catch.
Same applies to your data. As long as you have a finit amount of possible data just test it inside a loop.
If not you can only test all possible data types which should be a finit list.
Hope I could help with this


这篇关于自定义界面消息-界面消息测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆