Expert: Integration of HMS Core Kits in MVVM and RxAndroid based Android App(Cloud Testing) Part-7
Overview
In this article, I will create a Movie Show android application in which I will integrate HMS Core kits such as Huawei ID, Analytics, Huawei Ads, Remote Configuration, DTM, Cloud Testing and much more.
In this article, I will integrate Cloud Testing.
In this series of article, I will cover all the kits with real life usages in Movie Show application. This is the part-7 article of this series.
Part-1: https://forums.developer.huawei.com/forumPortal/en/topic/0202684555189490078?fid=0101187876626530001
Part-2: https://forums.developer.huawei.com/forumPortal/en/topic/0201690592255120129?fid=0101187876626530001
Part-3: https://forums.developer.huawei.com/forumPortal/en/topic/0201690596679190130?fid=0101188387844930001
Part-4: https://forums.developer.huawei.com/forumPortal/en/topic/0202695893785380004
Part-5: https://forums.developer.huawei.com/forumPortal/en/topic/0202695893785380004\
Part-6: https://forums.developer.huawei.com/forumPortal/en/topic/0202703550492730065
Prerequisite
1. A computer (desktop or laptop).
2. A Huawei phone, which is used to debug the developed app.
3. HUAWEI Analytics Kit 5.0.3.
4. Android SDK applicable to devices using Android API-Level 19 (Android 4.4 KitKat) or higher.
5. Android Studio
6. Java JDK 1.7 or later (JDK 1.8 recommended).
App Gallery Integration process
- Sign In and Create or Choose a project on AppGallery Connect portal.
- Navigate to Project settings > download the configuration file.
- Navigate to General Information > Data Storage location.
- Navigate to Project Setting > Quality > Cloud Testing.
Huawei Cloud Testing
Cloud Testing provides a complete set of automatic test processes based on real mobile phone use. It tests automatically the compatibility, stability, performance and power consumption of Android apps, without manual intervention.
Compatibility Test
The compatibility test of Cloud Test allows you to perform real machine tests. The test automatically verifies 11 compatibility issues, including the app installation, start up, crash, application not responding (ANR), unexpected exit, running error, UI error, black/white screen, exit failure, account exception, and uninstallation.
Creating a Compatibility Test Task
- Create New Test, choose Compatibility test tab, then upload the APK package of the app and select the app after the upload is complete.
- Click Next. The page for selecting test phones is displayed.
- Click OK. In the displayed Information dialog box, you can click Create another test to create another test task or click View test list to go to the test result page.
Stability Test
In a stability test, long-term traverse testing and random testing are performed to detect app stability issues such as the memory leakage, memory overwriting, screen freezing, and crash on Huawei phones.
- Create New Test, choose stability test tab then upload the APK package of the app and select the app after the upload is complete.
- Click Next. The page for selecting test phones is displayed.
- Click OK. In the displayed Information dialog box, you can click Create another test to create another test task or click View test list to go to the test result page.
Performance Test
The performance test in Cloud Test collects performance data on real phones and analyzes app performance defects in depth. This test supports analysis of the startup duration, frame rate, memory usage, and app behaviors.
- Create New Test, choose Performance test tab then upload the APK package of the app or Select existing app and select the app after the upload is complete.
- Click Next. The page for selecting test phones is displayed.
- Click OK. In the displayed Information dialog box, you can click Create another test to create another test task or click View test list to find the test result page.
Power Consumption
In the Power consumption test of Cloud Test, you can check key indicators and determine how your app affects the power consumption of devices.
- Create New Test, choose Power Consumption test tab then upload the APK package of the app or Select existing app and select the app after the upload is complete.
- Click Next. The page for selecting test phones is displayed.
- Click OK. In the displayed Information dialog box, you can click Create another test to create another test task or click View test list to find the test result page.
App Build Result
Viewing and Analysing the Test Result
A test task may take 60 to 90 minutes. After the compatibility test is complete, you can view the test result in the test report.
- Click View test list to navigate to the test result page. Alternatively, after creating a test task, Navigate to Project Setting > Quality > Cloud Testing to access the Cloud Testing result page.
Tips and Tricks
There is no limit for the number of device models that you can select when running a compatibility, performance, or power consumption test. However, you are advised to select at most nine models at a time to avoid long-time queuing for the most popular models.
Only one model can be selected for the stability test at a time.
In normal cases, a compatibility or performance test takes about 60 minutes, a power consumption test takes about 100 minutes, and the duration of a stability test is set by you. If the test duration exceeds the preceding duration, you can submit the problem with detailed description.
Conclusion
In this article, we have learned how to integrate Cloud Testing in Android application. After completely read this article user can easily implement Cloud Testing in the android based application.
Thanks for reading this article. Be sure to like and comment to this article, if you found it helpful. It means a lot to me.
References
HMS Docs: