[Huawei Developers] John Wo:
More information like this, you can visit HUAWEI Developer Forum​

Introduction

So you have built a wonderful application but how to test it.

Or do you want to test you application on a specific device.

Let us meet your new friendly developer tool HMS Toolkit. This tool provide us the functionality of Cloud Debugging.

HMS Toolkit Installation:

If you have not yet installed HMS Core Toolkit then please go to below link to download the latest version of it before proceeding further into the article.

https://developer.huawei.com/consumer/en/doc/development/Tools-Library/toolkit-download-0000001050148172

Once downloading is done for the plugin you can directly install it via Install Plugin from disk option.

After installation it should show like below.

By the time of writing this article the latest version was 3.0.1.300.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164817.45285683304279762801793768335803:50510914012700:2800:5055068894CB7834419A8606DD09473D63995046EEE5A29F18C6C4693BB1CC22.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164817.45285683304279762801793768335803:50510914012700:2800:5055068894CB7834419A8606DD09473D63995046EEE5A29F18C6C4693BB1CC22.png[/IMG]

Let’s Start with Cloud Debugging

Step by step I will guide you on how you can use this tool to test and debug your application without a real Huawei Device.

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

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164848.81401613476022219942202941681837:50510914012700:2800:7E1EA2395C85AE968052258394EB008E674604E5C4611E853BB2490BB5B0B7EE.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164848.81401613476022219942202941681837:50510914012700:2800:7E1EA2395C85AE968052258394EB008E674604E5C4611E853BB2490BB5B0B7EE.png[/IMG]

Cloud debugging needs a user login in order to provide access to real devices. Hence you will be redirected to a URL where you need to confirm your identity for a successful login.

Step 2: Login and allow the service.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164900.23312934588350136207355953549715:50510914012700:2800:757C1CCC514480DD6362A3398358D223FDC894257FC2CDA9F04B17A22724A65B.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164900.23312934588350136207355953549715:50510914012700:2800:757C1CCC514480DD6362A3398358D223FDC894257FC2CDA9F04B17A22724A65B.png[/IMG]

Once the service is allowed you will get a success message and your android studio will get access to real remote devices.

Step 3: If this screen is not opened click on cloud debugging in right sidebar.

Filters are available as highlighted below to get a specific device.

You can also check the availability of device by checking Available Devices

Once the list of device is available choose any one and proceed.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164924.50243599583269912085371163252046:50510914012700:2800:ED13FDFDC2C2D93ABE523F34ADDC86ACAB0003F5C979F241316329F670D5DDA1.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164924.50243599583269912085371163252046:50510914012700:2800:ED13FDFDC2C2D93ABE523F34ADDC86ACAB0003F5C979F241316329F670D5DDA1.png[/IMG]

Step 4: Below should be the result after filter selection. Click Run and start the device.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164937.71506362375306175769286463080770:50510914012700:2800:9D65424B9742AA659A886A6AB5E59539BA3814BA176C3F782F0DB5CCE0A20729.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164937.71506362375306175769286463080770:50510914012700:2800:9D65424B9742AA659A886A6AB5E59539BA3814BA176C3F782F0DB5CCE0A20729.png[/IMG]

A device should appear which can be accessed by sidebar. Default testing time is 2 Hours but if your testing require more time you can choose the same device once again after it gets released automatically.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164947.41465551906054364068915347151949:50510914012700:2800:100C1D01A80BE55766EE2982A16D73A43CA755490F5723EDC5BBCCF8FBFFF2B3.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164947.41465551906054364068915347151949:50510914012700:2800:100C1D01A80BE55766EE2982A16D73A43CA755490F5723EDC5BBCCF8FBFFF2B3.png[/IMG]

Step 5: Let us run one application to see how it is performing on Cloud Debugger.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164959.92015670420389246049938185984525:50510914012700:2800:A54E51498B07C51CB9577C858E7A65673561A9DD814E63F224C7FBBD4EF4D142.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/000/002/333/0890091000000002333.20200824164959.92015670420389246049938185984525:50510914012700:2800:A54E51498B07C51CB9577C858E7A65673561A9DD814E63F224C7FBBD4EF4D142.png[/IMG]

Let us see what all configurable options are given to us with this cloud debugger.

Screen Resolution:

Different resolution for a device are mentioned.

My recommendation – If your internet connection is good then go for higher resolution.

Screen Size:

You can also control screen size between 75%, 100% and 125%. To do that see the below screenshot.

Apart from this all three navigation buttons are provided to you for better control.

Conclusion

I hope you this article had given some insights in cloud Debugging.

In case you face any issue in the installation process do comment.

PS: You can also use this while presenting your screen, it doesn’t consume resources like how android emulator would do.

References

Get Application Insights and start Improving your application in minutes using HMS Toolkit Cloud Testing

HMS Toolkit - Automatic HMS SDK Integration

HMS Toolkit Convertor - Your New Best Friend for Migration