[Huawei Developers] Freemind R:
Introduction

Do you want to know detailed analysis of your android application?

Do you want to improve your application performance by fixing potential errors?

Do you want to save your future time and efforts?

A majority of android developers face these problems very frequently. To target this problem HMS Toolkit came up with Cloud Testing.

With Cloud Testing you can not only get deep insights of your application but you can also get application performance on multiple devices automatically.

This will save your time and resources which you can utilize in enhancing your application.

On very early stage you can identify memory leaks, storage utilization, battery utilization etc.

Let us look at Cloud Testing.

Why you need this?

Once your application is ready for production you may have to check some parameters and see how it will behave in production.

Compatibility Testing

Performance Testing

Power Consumption Testing

Stability Testing

Once you have analyzed and rectified Errors/Improvements in this data your application is good to deploy.

To start the process follow below steps.

Step 1: Go to HMS and click Cloud Testing as shown below.

It will open a new window in sidebar.

Step 2: Choose a New Task to start the testing process.

A new window will appear which will ask you what you want to execute on your android application.

Step 3: Let us choose Compatibility Test from the option.

Step 4: Click on Select Device and below window will appear.

You can select filters as well if you want to do testing on a specific device.

Note: You can choose multiple device but for demonstration I will choose only one.

Step 5: Below screen should show once all the options are filled. Click Confirm to continue

Your apk will get uploaded for testing and once apk upload is completed you can proceed to next step.

A new Compatibility Test Task will get generated and you can see it in Pending state.

Soon the status color will change from Pending grey to green. This means you’re testing has started.

You can also see a new option appearing in right side of Task. This is View repor

Below are live results of my application in progress state.

Once the testing will finish you can see Task updated to Succeed in Android Studio.

Let us again click on View Report.

Here you can see all test are in passed state and it seems my application compatibility is very stable.

We need some real data to get the actual analysis, so let us work on a production application.

Let us check the stability + performance if we start parallel test together onto a single application.

I have started all 4 types of test to check what all info we can get regarding my application.

Soon the test results came and below are all the reports.

Stability Test

With Stability test I was able to identify below bottleneck points.

Installation and Startup

Crashes

ANR

Native Crash

Leaks

Further clicking on detail I could see resource utilization as well.

Average CUP usage

Average Memory usage

Average battery temperature

This details are available for every 2 seconds while my application was in testing mode.

Resource Tracing

Apart from Resource Tracing you will also get

Error Codes and Descriptions

Test Screenshots

Error Information

Logcat logs

Power Consumption

With Power Consumption Test I was able to identify below bottleneck points.

Installation and startup

Resource Usage

Wake lock duration

Screen usage

WLAN usage

WLAN scan

Audio usage

Camera Usage

Location Sensor usage

Wake up alarms

Further clicking on detail I could see resource utilization as well same as we got for stability test.

This details are available for every 2 seconds while my application was in testing mode.

Resource Tracing

Performance Testing

With Performance Test I was able to identify below bottleneck points.

Installation and Start Up

Start Up Duration

· Cold Start

· Warm Start

UI Display

· Frame rate

Memory Usage

· Memory Leaks

· Foreground Memory

· Background Memory

· Background Screen-On Memory

· Background Screen-Off Memory

CPU Usage

· Background Screen-On CPU

· Background Screen-Off CPU

Further clicking on detail I could see resource utilization as well same as we got for stability test.

This details are available for every 2 seconds while my application was in testing mode.

Resource Tracing

Compatibility Testing

With Compatibility Test I was able to identify below bottleneck points.

Initial Installation

Reinstallation

Uninstallation

Start up and Running

· Start up

· ANR

· Crash

· Black/White screen

· Unexpected exit

· Running Exit

· Exit Failures

· UI Errors

Further clicking on detail I could see resource utilization as well same as we got for stability test.

This details are available for every 2 seconds while my application was in testing mode.

Resource Tracing

Testing Report

You can also download the compatibility testing report.

Below are the details of the report.

Overview Report

Performance Data Report

Errors Report

Warnings Report

Alternate access:

You can access all the above details by going to your console and clicking on testing card on home page. Here you can find all the Test task created.

FAQ

Not able to search Toolkit in Plugin Section.

Check for HTTP Proxy Settings and set it to none.

Where can I download the latest version of Toolkit plugin from?

https://developer.huawei.com/consum...ols-Library/toolkit-download-0000001050148172

Conclusion

I hope you have like this feature and I am very much sure this feature will help you in application performance improvement. In case you face any difficulty in implementing or getting the report do comment.

References

Debug your application on any HMS Supported Model using HMS Toolkit Cloud Debugger - No Real Device Required

https://forums.developer.huawei.com...d=0201336709130540054&fid=0101188387844930001

HMS Toolkit - Automatic HMS SDK Integration

https://forums.developer.huawei.com...d=0201249144855100206&fid=0101188387844930001

HMS Toolkit Convertor - Your New Best Friend for Migration

https://forums.developer.huawei.com...d=0201222324451440007&fid=0101187876626530001