Herno
Herno

Reputation: 1597

How to test "App Update" in Windows Phone 8.1?

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

Answers (3)

epaps
epaps

Reputation: 519

You can use the command line interface of the Application Deployment tool (full documentation) to easily simulate an app update:

  1. Open admin command prompt.
  2. Navigate to the directory for the Application Deployment tool: cd "%programfiles(x86)%\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy"
  3. Find the index of the device or emulator you're using for testing: AppDeployCmd.exe /EnumerateDevices
  4. Install the old app: 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.
  5. Update to the new app: 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

Abhishek
Abhishek

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

user2784555
user2784555

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

Related Questions