问题描述
我见过使用有限的网络访问权限测试iPhone应用程序()问题虽然这是一个很好的提示,但在通过EDGE使用时测试一段代码的实际性能方面并不是很有帮助。根据我的经验,网络将随机进入连接状态。我想用某种方法来模拟这个。我正在考虑像如何自动测试malloc。
I've seen the "Testing iPhone app with limited network access" (link) question, and while it's a great tip, it's not very helpful in terms of testing the actual performance of a piece of code when used over EDGE. In my experience the network will randomly come in an out of connectedness. I'd like some way to simulate this. I'm thinking of something like how sqlite does automated testing of malloc.
我做了一些谷歌搜索,但我想知道是否有一个很好的工具来做到这一点。我会喜欢用我的开发机器模拟服务器和iPhone通过WiFi连接。
I've done a bit of Googling but I wondered if there was a good tool for doing this. I'd like to simulate with my dev machine as the server and the iPhone connecting via WiFi.
推荐答案
Craig Hockenberry发布了,可让您使用以下方法测试不同级别的网络性能模拟器。它还提到了一些在设备上进行测试的技巧。
Craig Hockenberry posted a script here that will let you test varying levels of network performance using the simulator. It also mentions some tricks for testing on the device itself.
这篇关于iPhone间歇性网络测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!