Reputation: 1597
I want to test the use case in which a user has version 1.0 of my app and the phone notifies that a new version of the app is available.
Is there a way to test this scenario using Visual Studio?
How can i update an existing App in my phone to see how it works? Mainly, i want to test that old data is still accesible after the update.
Upvotes: 3
Views: 472
Reputation: 519
You can use the command line interface of the Application Deployment tool (full documentation) to easily simulate an app update:
cd "%programfiles(x86)%\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy"
AppDeployCmd.exe /EnumerateDevices
AppDeployCmd.exe /installlaunch "C:\Old.xap" /targetdevice:12
where C:\Old.xap
is the path to the old app, and 12
is the device/emulator index found in the previous step.AppDeployCmd.exe /updatelaunch "C:\New.xap" /targetdevice:12
where C:\New.xap
is the path to the old app, and 12
is the device/emulator index found in step 3.Upvotes: 1
Reputation: 1379
How are you checking if a new version is available? Do you check from the Store, or query your own web service? In former case, you can use publish a beta app, install in your device and then publish an update to that beta (You'll need developer account for that). The latter case is pretty straightforward.
For your second question, I agree with @user2784555. The deployment tool is what you need.
Upvotes: 0
Reputation: 399
Use this tools for test apdate your app. Application Deployment tool
It is suitable and if you use the update task in your application.
Upvotes: 2