简体   繁体   中英

simulating connection flakiness on windows phone 7 simulator for testing

I am developing an application for windows phone 7. Now for testing my application on simulator. I want that simulator should have connection flakiness as we usually have on wp7 device.How can I achieve this please help.

Windows Phone 8.0 SDK supports network simulation . You can simulte 2G/3G/Wifi and no network.

Unfortunately, it's not possible to test the internet connection from the emulator.

You absolutely have to test it from a device...

The function "NetworkInterface.GetIsNetworkAvailable()" check if the smartphone is connected to the internet. However, this function will always return true since the emulator.

I m not sure what are you asking for but take a look at this

http://www.diaryofaninja.com/blog/2010/12/09/checking-for-network-connectivity-in-windows-phone-7-sdk

Hope it helps.

我只需要打开以太网电缆即可“模拟”薄片状。

My solution is to test things on a train to and from work. I gain & loose internet connectivity 3 or 4 times in my journey so it is ideal for me :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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