rakesh
rakesh

Reputation: 612

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.

Upvotes: 4

Views: 636

Answers (5)

Arun M
Arun M

Reputation: 1452

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

Upvotes: 2

gbanfill
gbanfill

Reputation: 2216

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 :)

Upvotes: 0

FBruynbroeck
FBruynbroeck

Reputation: 489

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.

Upvotes: 1

Teemu Tapanila
Teemu Tapanila

Reputation: 1275

I would just take Ethernet cable off and on to "simulate" flakiness.

Upvotes: 0

g bas
g bas

Reputation: 808

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.

Upvotes: 0

Related Questions