测试 P2P 直播应用程序的最佳方法是什么?
我一直在开发 P2P 直播应用程序,但在正确测试它时遇到了一些问题。
目前,我正在使用以下方法对其进行测试: 1)另一台笔记本电脑+一台外部服务器 2)在不同端口上运行的多个实例
问题是:这还没有完全准备好用于生产。
有没有类似模拟器的东西,或者你们中有人在 torrent 客户端、p2p 客户端、直播解决方案上工作过并且必须测试它吗?
请告诉我,
谢谢,
-hbt
I've been working on a P2P live streaming app and I'm having some trouble testing it properly.
At the moment, I'm testing it using:
1) Another laptop + an external server
2) Multiple instances running on different ports
Problem is: this is not exactly ready for production.
Is there something like a simulator OR any of you guys worked on a torrent client, p2p client, live streaming solution and had to test it?
Please let me know,
Thanks,
-hbt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
根据您尝试测试的行为,您最终可能需要几种不同的工具。我碰巧在这个领域做了一些研究,当我想模拟各种网络条件(例如有限的带宽和/或数据包丢失)时,我转向了名为 排队规则。学习如何使用它们可能会花费您几天的时间,但它们非常强大并且完全免费。
Depending on what behavior you're trying to test, you might end up needing several different tools. I happen to have done some research in this area, and when I wanted to simulate various network conditions like limited bandwidth and/or packet loss, I turned to a Linux feature called Queuing Disciplines. Learning how to use them might take you a couple of days, but they're very powerful and completely free.
将其放在服务器上,并将链接发送给尽可能多的朋友,询问他们是否可以访问它,以便您可以测试该应用程序。将其视为一种封闭测试版本。
Put it on a server and send the link to as many of your friends as you can, asking if they could access it so you could test the app. Think of it as kind of a closed beta release.
自动化测试
模拟与其他客户端的连接,然后您可以为其他客户端的行为编写几个不同的测试用例。测试一个客户端是否出现故障,测试是否有缓慢的响应,测试是否有错误的答案,测试是否有所有正确的行为。
Automate The Testing
Mock the connection to the other client(s), then you can write several different test cases for behaviour of the other client(s). Test if one client goes down, test for slow responses, test for incorrect answers, test for all correct behaviour.