[Huawei Developers] Freemind R:
More articles like this and questions for the process, you can visit HUAWEI Developer Forum and Medium.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610073325.57370851782879117046530655077445:50510619073204:2800:796D5A0BE20B1C4D34F27D85F211F4D04ECA2C4CB7FAC34CA410D89844CAD2B9.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610073325.57370851782879117046530655077445:50510619073204:2800:796D5A0BE20B1C4D34F27D85F211F4D04ECA2C4CB7FAC34CA410D89844CAD2B9.png[/IMG]​

Introduction

Cloud-based testing services can be a most power full feature for app developers. But when it comes to choosing a testing service, you would be remiss if you only conducted automated tests or in-house tests. Automatic test processes based on real mobile phone use.

1. Compatibility Test

2. Stability Test

3. Performance Test

4. Power consumption Test

Let’s start how to do Cloud testing

· We need to create a project in android studio.

· Create an application in the Huawei AGC.

· Provide the SHA-256 Key in App Information Section.

· Provide storage location.

· Download the agconnect-services.json from AGC. Paste into app directory.

· Add required dependencies into root and app directory

· Sync your project

· Start implement any sample application.

Let’s start Compatibility Test

· The compatibility test of cloud test allows you to perform real machine tests.

· This test performs different scenarios of testing like installation, ANR, crash, UI error etc.

· Create Compatibility Test Task.

· Sign in to AGC and select your project.

· Select Project settings -> Quality -> Cloud Testing

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610073811.55225371262895738026599845910285:50510619073204:2800:EF51EB81D5893126677305BFCAE94BDE50843FA33BE76E296153DF6007AA8723.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610073811.55225371262895738026599845910285:50510619073204:2800:EF51EB81D5893126677305BFCAE94BDE50843FA33BE76E296153DF6007AA8723.png[/IMG]​

· Select Compatibility Test and click start Now.

· Create Test Task, Upload APK into cloud testing

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074030.32635052525161456711466549422176:50510619073204:2800:8DEF5B4C4FB34A0700EDAA2467EBD93FC1C136BE5A60A529B2AD662F516FA7CF.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074030.32635052525161456711466549422176:50510619073204:2800:8DEF5B4C4FB34A0700EDAA2467EBD93FC1C136BE5A60A529B2AD662F516FA7CF.png[/IMG]​

· After uploading success click Next button.

· Select device model and click OK Button.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074153.24832451155112185693284278278868:50510619073204:2800:CEAD7ED9A1CF38326BE3C6CA113F5F5A95A332492C42A04C40D28855B8DD9B24.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074153.24832451155112185693284278278868:50510619073204:2800:CEAD7ED9A1CF38326BE3C6CA113F5F5A95A332492C42A04C40D28855B8DD9B24.png[/IMG]​

· If you want create another test click Create Another test, if you want to view test lists then click View Test List it will redirect to test result page.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074215.57846699071681659073632239983957:50510619073204:2800:2E30D031FA8FBBC63E7786CE4975B0B5F3B460A7AD201B7D08BA3831AE255E91.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074215.57846699071681659073632239983957:50510619073204:2800:2E30D031FA8FBBC63E7786CE4975B0B5F3B460A7AD201B7D08BA3831AE255E91.png[/IMG]​

· Select Compatibility test from the dropdown list.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074631.88883976714914957015333136479791:50510619073204:2800:989B71778FE1D0ED477ED9807E3DDA2DAFB18953790138C97F58B82DE525274D.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074631.88883976714914957015333136479791:50510619073204:2800:989B71778FE1D0ED477ED9807E3DDA2DAFB18953790138C97F58B82DE525274D.png[/IMG]​

· Click View operation to check the test result.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074827.36966990835005265893667911010961:50510619073204:2800:C0A4645E4A28B88D3C398138BE77F745759CEB6D0ED8C880B40DFD8EC499EE99.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074827.36966990835005265893667911010961:50510619073204:2800:C0A4645E4A28B88D3C398138BE77F745759CEB6D0ED8C880B40DFD8EC499EE99.png[/IMG]

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074931.55010071717033621735482422519518:50510619073204:2800:F9D3D852A63F751C33A247BFB616D2AEC30FFB971B52C79EFFA03504F857258D.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610074931.55010071717033621735482422519518:50510619073204:2800:F9D3D852A63F751C33A247BFB616D2AEC30FFB971B52C79EFFA03504F857258D.png[/IMG]​

· You can check full report click eye icon in bottom of the result page.

Test Report Result:

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610075254.72222914002577772379099039978929:50510619073204:2800:A72C8B1277125E9D6965620D719CCD545F3580E3C397748EAEE9E8CC352BC7A2.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/767/951/2640091000001767951.20200610075254.72222914002577772379099039978929:50510619073204:2800:A72C8B1277125E9D6965620D719CCD545F3580E3C397748EAEE9E8CC352BC7A2.png[/IMG]​

Note: Similar way you can test remaining Test methods

Conclusion:

Automating your testing process can reduce up to 99% of defects in your application, before releasing to manual testing. Huawei provides a detailed report for your to improve your app

Reference:

https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudtest-introduction