FORUMS

Cloud Testing: - Variety of tests on your Android App

118 posts
Thanks Meter: 11
 
By Freemind R, Official Huawei Rep on 19th June 2020, 09:03 AM
Post Reply Email Thread
More articles like this and questions for the process, you can visit HUAWEI Developer Forum and Medium.


https://img.xda-cdn.com/AflNw-jYMY41wbLlKVIViY-KL2s=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610073325.57370851782879117046530655077445%3A50510619073204%3A2800%3A796D5A0BE20B1C4D34F27D85F211F4D04ECA2C4CB7FAC34CA410D89844CAD2B9.png

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

https://img.xda-cdn.com/H0Jp0VPz-NqqAHCvxHHGardo6X4=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610073811.55225371262895738026599845910285%3A50510619073204%3A2800%3AEF51EB81D5893126677305BFCAE94BDE50843FA33BE76E296153DF6007AA8723.png

· Select Compatibility Test and click start Now.

· Create Test Task, Upload APK into cloud testing

https://img.xda-cdn.com/z5hTt7ZanEc9D6SAj3ceqVHLiY8=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610074030.32635052525161456711466549422176%3A50510619073204%3A2800%3A8DEF5B4C4FB34A0700EDAA2467EBD93FC1C136BE5A60A529B2AD662F516FA7CF.png

· After uploading success click Next button.

· Select device model and click OK Button.

https://img.xda-cdn.com/VmzHyeL8u_9N4wm9JDSIdGDfRLY=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610074153.24832451155112185693284278278868%3A50510619073204%3A2800%3ACEAD7ED9A1CF38326BE3C6CA113F5F5A95A332492C42A04C40D28855B8DD9B24.png

· 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.

https://img.xda-cdn.com/0MJStQoJub4VK8N3UwTDDJcmlI8=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610074215.57846699071681659073632239983957%3A50510619073204%3A2800%3A2E30D031FA8FBBC63E7786CE4975B0B5F3B460A7AD201B7D08BA3831AE255E91.png

· Select Compatibility test from the dropdown list.

https://img.xda-cdn.com/_Az5okJcd0_weyaMokj79YQT6O4=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610074631.88883976714914957015333136479791%3A50510619073204%3A2800%3A989B71778FE1D0ED477ED9807E3DDA2DAFB18953790138C97F58B82DE525274D.png

· Click View operation to check the test result.

https://img.xda-cdn.com/XWFp083pli0svGMdBqPcwprNUls=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610074827.36966990835005265893667911010961%3A50510619073204%3A2800%3AC0A4645E4A28B88D3C398138BE77F745759CEB6D0ED8C880B40DFD8EC499EE99.png

https://img.xda-cdn.com/52628W8d12iQees4cYhBBAb6dY4=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610074931.55010071717033621735482422519518%3A50510619073204%3A2800%3AF9D3D852A63F751C33A247BFB616D2AEC30FFB971B52C79EFFA03504F857258D.png

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

Test Report Result:

https://img.xda-cdn.com/N-fSUI0mrLDTaa91MzhlOdl7_xU=/https%3A%2F%2Fcommunityfile-dre.op.hicloud.com%2FFileServer%2FgetFile%2Fcmtybbs%2F001%2F767%2F951%2F2640091000001767951.20200610075254.72222914002577772379099039978929%3A50510619073204%3A2800%3AA72C8B1277125E9D6965620D719CCD545F3580E3C397748EAEE9E8CC352BC7A2.png

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/consume...t-introduction
20th June 2020, 03:24 PM |#2  
Official Huawei Rep
Thanks Meter: 1
 
More
quite detailed. I will try.
Post Reply Subscribe to Thread

Tags
appgallery

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes