[Huawei Developers] Basavaraj.navi:
Introduction

If are you new to this application, please follow my previous articles

In this article, we will learn how to integrate Cloud Testing in Pygmy collection finance application.

Why do we need testing?

Delivering the quality product matters in the software industry. If the product has the errors or crashes end users will switch other similar products. End of the day user base matters for mobile application, so application has to test thoroughly.

The delivery of an optimal quality software product that has unique and innovative features has been the priority of the software industry worldwide. However, without evaluating software components under various expected and unexpected conditions, the team cannot guarantee these aspects. Therefore, testing is performed to test every software component large and small.

Cloud based testing service is most important and powerful feature for developers. So Huawei has come up with great solution that is cloud testing. It uses real time devices and gives the full report.

Currently available types of testing added:

1. Compatibility Test

2. Stability Test

3. Performance Test

4. Power consumption Test

Requirements

1. To use cloud testing you should have developer account. Register here.

2. Create an android project in android studio.

3. Get the SHA Key. Create SHA key

4. Provide the SHA key in the information section.

5. Provide storage location.

6. After all the steps need to download the agconnect-services.json from the app information section. Copy and paste the json file in the app folder of the android project.

7. Add required dependencies to root and app directory.

8. Sync project.

9. Create sample application

1) Compatibility Test

What is Software Compatibility Testing?

Compatibility is non-functional testing to ensure customer satisfaction. It is to determine whether your software application or product is proficient enough to run in different browsers, database, hardware, operating system, mobile devices, and networks.

The application could also impact due to different versions, resolution, internet speed and configuration etc. Hence it’s important to test the application in all possible manners to reduce failures and overcome from embarrassments of bug’s leakage. As a Non- functional tests, Compatibility testing is to endorse that the application runs properly in different browsers, versions, OS and networks successfully.

Compatibility test should always perform in the real environment instead of a virtual environment. Since Huawei Cloud testing gives the real environment

Types of Software Compatibility Testing

Browser compatibility testing

Hardware

Networks

Mobile Devices

Operating System

Versions

Steps to be followed for Compatibility test.

Step 1: Choose Project Setting > Quality > Cloud Testing and select Test for free.

Step 2: Select the Compatibility test.

Step 3: Upload APK into Coud Testing and click Next button.

Step 4: Select Device model, OS version and click OK button.

Step 5: Select create another test if you wish to create another test else select View test list to view the test list.

Step 6: Select Compatibility test.

Step 7: Click View to check the result.

Result

2) Stability Testing

What is stability testing?

Stability Testing is a type of non-functional software testing performed to measure efficiency and ability of a software application to continuously function over a long period of time. The purpose of Stability testing is checking, if the software application crashes or fails over normal use at any point of time by exercising its full range of use.

Stability Testing is done to check the efficiency of a developed product beyond normal operational capacity, often to a breakpoint. There is greater significance is on error handling, software reliability, robustness and scalability of a product under heavy load rather than checking the system behaviour under normal circumstances.

Steps to be followed for Stability test.

Step 1: Choose Project Setting > Quality > Cloud Testing and Select Test for free. Or Select New test.

Or

Step 2: Select the Stability test and Upload APK into cloud testing. Select duration from 10-60 minutes, and Click Next button.

Step 4: Select Device model, OS version and click Ok button.

Step 5: Select Create another test if you wish to create another test else select View test list to view the test list.

Step 6: Select Stability test.

Step 7: Click View to check the result.

Result

3) Performance Test

What is Performance Testing?

Performance Testing is a software testing process used for testing the speed, response time, stability, reliability, scalability and resource usage of a software application under particular workload. The main purpose of performance testing is to identify and eliminate the performance bottlenecks in the software application. It is a subset of performance engineering and also known as “Perf Testing”.

The focus of Performance Testing is checking a software programs.

Speed - Determines whether the application responds quickly.

Scalability - Determines maximum user load the software application can handle.

Stability - Determines if the application is stable under varying loads.

Steps to be followed for Performance test.

Step 1: Choose Project Setting > Quality > Cloud Testing. Select Test for free.

Or

Step 2: Select Test for free. Or Select New test

Step 3: Select the Performance test.

Or

Step 4: Upload APK into Cloud Testing.

Step 5: Set the App category and Click on Next button.

Step 6: Select Device models, OS version and click OK button.

Step 7: Select Create another test if you wish to create another test else select View test list to view the test list.

Step 8: Select Performance test.

Step 9: Select View to check the result.

Result

4) Power consumption Test

What is power consumption testing?

Thousands of new mobile apps are being launched every day. And these apps have gone beyond just utilities, games and shopping apps, nowadays, apps need to be integrated into self-driving cars, digital assistants, wearable devices etc. Billions of users need to install apps that are not only compatible with their varying devices, but also provide quality experience of the app so that it doesn’t prompt the user to uninstall it and move to an alternate app. So basically power consumption test is how much battery is consumed by application.

Steps to be followed for Power consumption test.

Step 1: Choose Project Setting > Quality > Cloud Testing.

Or

Step 2: Select Test for free. Or Select New test

Step 3: Select the Power consumption Test.

Or

Step 4: Upload APK into Cloud Testing.

Step 5: Set the App category and Click on Next button.

Step 6: Select Device models, OS version and click Ok button.

Step 7: Select Create another test if you wish to create another test else select View test list to view the test list.

Step 8: Select Power consumption test.

Step 9: Select View to check the result.

Result

Tips and Tricks

You can download report and check the details about test cases.

You can download logs and track errors.

Make sure you add agconnect-service.json file to app directory.

Conclusion

In this article, we have learnt cloud testing, what is Compatibility / Stability / Performance / Power consumption testing, how to check Compatibility / Stability / Performance / Power consumption test report and logs download.

Reference

Cloud Testing