Want to upgrade application programmatically

Hi All,

The scenario which i want to perform is related to up gradation of apk file. The steps which i performed are below.

  1. Install and Launch application using Appium (e.g : sample-1.apk)
  2. Perform certain actions
  3. Upgrade application (e.g: sample-2.apk, using driver.installApp() )

But issue i am facing is, while upgrading application appium server logs says application is unzip and installed successfully. Which actually did not happen (I checked it manually)?

Thanks,
Priyank Shah