We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
AppGallery Connect GuidesAppGalleryKitTest and ReleaseApp Testing

App Testing

During app testing, you can configure test accounts in AppGallery Connect and allow these accounts to test your app in a sandbox environment. Sandbox testing applies to:

  • Account sign-in functions
  • In-app purchases functions for non-consumables, consumables, and auto-renewable subscriptions. During joint debugging, the functions can be tested in an end-to-end manner without going through the actual payment process.

Creating a Test Account

You need to have a test account to perform the testing. For details about how to create a test account, please refer to Sandbox Testing.

Testing Payments

  • For details about how to test in-app purchases in a sandbox environment, please refer to Sandbox Testing.
  • If you want to test out-of-app purchases, you are advised to release an open testing version for it.

Testing App Updates

If you have integrated the app update function, perform the following operations to test the function before app release.

Expand

App Already Released on AppGallery

Procedure

Yes

Change the version number of the test app to a version earlier than that of the released app by setting the versionCode parameter in the defaultConfig section of the app-level build.gradle file.

If a pop-up is displayed when the app is launched or when you tap the button for checking updates, the function is normal.

NOTE

Ensure that the HUAWEI ID service area (setting under HUAWEI AppGallery > Me > Settings > Country/Region) of your current test device is included in the release scope of your released app, so AppGallery can detect the latest released version of your app based on the service area.

No

View the log information when the app is launched first time or when you tap the button for checking updates. If the log information contains the following information, the update function is normal:

Collapse
Word wrap
Dark theme
Copy code
  1. I/updatesdk: UpdateSDK version is:2.x.x.xxx, flavor: envrelease, pkgName:xxx.xxx.huawei
Search in Guides
Enter a keyword.