简体   繁体   English

如何在CoAP一致性测试套件中对测试用例进行分组

[英]how to group testcases in CoAP conformance test suite

I am writing a conformance test suite for Constrained Application Protocol (CoAP) based on TTCN-3. 我正在为基于TTCN-3的约束应用协议(CoAP)编写一致性测试套件。 Now I've already known the protocol. 现在我已经知道了这个协议。 CoAP is similar to HTTP. CoAP类似于HTTP。 They are both application layer protocols. 它们都是应用层协议。 There are CoAP client and CoAP server, they communicate using messages. 有CoAP客户端和CoAP服务器,它们使用消息进行通信。 Now I am beginning to write the test suite. 现在我开始编写测试套件了。 But I am having trouble in how I can design the whole test suite, because there may be too many test cases. 但是我在如何设计整个测试套件方面遇到了麻烦,因为可能有太多的测试用例。 To ensure I design a complete test suite, before writing each test case, it is necessary to group the test cases. 为确保我设计完整的测试套件,在编写每个测试用例之前,有必要对测试用例进行分组。 How am I going to group these test cases? 我如何对这些测试用例进行分组? Anyone can give me some suggestions? 有人可以给我一些建议吗? Thanks. 谢谢。

Indeed there are many ways to organize your test suite. 确实,有很多方法可以组织您的测试套件。

A good approach is to first identify what is need to be tested before starting to think how it can be tested . 一个好的方法是在开始考虑如何 测试之前首先确定需要 测试的内容 I would suggest having a look at how ETSI validates and tests communication protocols . 我建议看看ETSI如何验证和测试通信协议

More focussing on CoAP testing, you may be get inspired by available tests suites online, such as: 更多地关注CoAP测试,您可能会受到在线可用测试套件的启发,例如:

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM