More articles like this and questions for the process, you can visit HUAWEI Developer Forum and Medium.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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
· Select Compatibility Test and click start Now.
· Create Test Task, Upload APK into cloud testing
· After uploading success click Next button.
· Select device model and click OK Button.
· 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.
· Select Compatibility test from the dropdown list.
· Click View operation to check the test result.
· You can check full report click eye icon in bottom of the result page.
Test Report Result:
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
quite detailed. I will try.
Related
Publish your Applications: Huawei AppGallery
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Huawei AppGallery is a distribution platform for introducing your application to end users on your Huawei mobile device, providing ability to search, download and share your applications.
AppGallery focuses on below major features to ensure applications uploaded on the platform are safe to use and download.
1. Four-layer Threat Detection
2. Smart and Exclusive App Selection
3. Exclusive Gift Packs
4. Diverse App Rankings
5. Smart Search
6. Quick Manager
Create and Upload your Application
Below needs to be followed in order to proceed with application upload.
Sign Up or Sign In
Create an account by signing-up to AppGallery. One can use their mobile no. or email Id to register as a developer.
Creating and Publishing a new application
Once your developer account is created, redirect to upload your app link, under “distribute” page.
Now re-direct to next page as shown below and select “My apps”
Once “My apps” been clicked, it will re-direct to the application page where new application needs to be created.
Select “New app” tab here and add parameters as below to create a new application.
Package Type: Application can have apk or rpk (quick app).
Category: Choose category for an application or game.
Language: Choose suitable language among 78 supported languages.
Once all the parameters are filled, click on “ok”.
Now under “Distribute” page, add “App information” as below
And click on “save”
Once “save” is clicked, click on “ok”.
After confirming the operation, application will re-direct under “Draft” page. Add release information here.
1> Add country and regions information as below
2> Scroll down and add packages or upload APK file as below by clicking on “software packages”
Tip: Please turn off proxy/svn while uploading a new apk/package.
3> Add other information as required.
Payment info: Payment info is added as free or through merchant account.
· In-app purchase: If your application is using the in-app purchase sdk, please provide this information.
· Content Rating: This is required to apply appropriate age for your application.
· Privacy policy: This is required to ensure the safe feature of application.
· Copyright Information: Provided to upload any important document or image.
· Review Information: Provide a test account and password in case we need to use some of your app functions that require user authentication, such as sign-in, in-app content viewing, and in-app purchases. The account will be used by our reviewer to verify these functions.
· Release schedule: Select a date on which app should be released in the app gallery.
Once all the release details are filled. Click on “save”.
Now, click on “Ok”.
Once application is saved, click on “Submit” and “Confirm” in the nect step.
Once application is submitted to AppGallery, same will be sent for review shown below.
Cheers!!
You can view your application in AppGallery under “MyApps” as below.
Reference: https://developer.huawei.com/consumer/en/doc/30204#h2-2-1-publishing-a-new-app
Conclusion
We can now publish our application with ease.
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.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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.
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.
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.
Step 4: Below should be the result after filter selection. Click Run and start the device.
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.
Step 5: Let us run one application to see how it is performing on Cloud Debugger.
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
Its very interesting tool but when am trying to connect through cloud debugging am get below error
Request remote service failed: error_code 30002, 暂无可用设备,请稍后再试
Overview
In this article, I will create a demo game and integrate Huawei Ads Kit. So the developer can easily monetise their efforts using Reward Ads and Interstitial Ads. I will cover every aspect of the game development with Huawei Ads Kit.
Service Introduction
Ads kit is powered by Huawei which allows the developer to monetization services such as Reward Ads and Interstitial ads. HUAWEI Ads Publisher Service is a monetization service that leverages Huawei's extensive data capabilities to display targeted, high-quality ad content in your game to the vast user base of Huawei devices.
Prerequisite
1. Unity Engine (Installed in the system)
2. Huawei phone
3. Visual Studio 2019
4. Android SDK & NDK (Build and Run)
Integration process
1. Sign In and Create or Choose a project on AppGallery Connect portal.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Navigate to Project settings and download the configuration file.
Game Development
1. Create a new game in Unity.
2. Click 3D, enter Project Name, and then click to CREATE.
3. Now add game components and let us start game development.
4. Download HMS Unity Plugin from below site.
https://github.com/EvilMindDevs/hms-unity-plugin/releases
5. Open Unity Engine and import the downloaded HMS Plugin.
Choose Assets > Import Package> Custom Package
6. Choose Huawei > App Gallery.
7. Provide the AppId and other details from agconnect-service.json file and click configure Manifest.
8. Create Huawei Ads based scripts.
I have created AdsDemoManager.cs file in which integrated Huawei Ads which display Reward Ad and Interstitial Ad functionality.
Click on AdsDemoManager.cs and open in Visual Studio 2019
For codes and detailed information, you can check https://forums.developer.huawei.com/forumPortal/en/topic/0203424621102710033
It can be Useful.
Rebis said:
It can be Useful.
Click to expand...
Click to collapse
It will quite great
How can we configure rewards on server ?
After an app is launched, the app update function checks whether there is a later version available on AppGallery. If so, a pop-up is displayed, asking the user whether to update the app.
After you have integrated Cocos SDKHub, the function will use the SDK to check for app updates.
If your joint operations game is rejected for not integrating the app update function, check this post.
Before you integrate the app update function, you need to integrate Cocos SDKHub. (Reference: Integrating HUAWEI Game Service Based on Cocos SDKHub — Integrating Cocos SDKHub)
After that, here’s how you integrate the function:
1.Add the following code by referring to the official document:
JavaScript:
checkUpdate:function(){
var params = {
"showUpdateDialog": "1",
"forceUpdate": "0"
}
console.log("checkAppUpdate button pressed");
sdkhub.getUserPlugin().callFuncWithParam("checkAppUpdate",params);// Call the checkAppUpdate API.
}
2. Associate the code with a specified button and select the checkUpdate method as the tap event.
3. If you see the error information informing you that the callFuncWithParam method is not found during a simulator test, just test the packaged file on a real device.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4. If the following information is displayed,
the function is integrated.
XML:
D/jswrapper: JS: checkAppUpdate pressed
I/updatesdk: UpdateSDK version is: 2.0.6.302 ,flavor: envrelease ,pkgName: com.cocos2d.xxx
D/HwConnectivityServiceEx: set 10323 wlan0 value false
I/NetworkKit_a: 27569-28056|null|com.huawei.hms.framework.network.grs.a|a|22|get url from sp is not empty.
I/DeviceUtil: UpdateSDK Get url from GRS_SDK Success!https://store1.hispace.hicloud.com/hwmarket/api/
I/StoreTask: UpdateSDK call store responsecode: 200
If the function passes the real-device test, the error displayed in the simulator test may be caused by compatibility failure.
For a mobile game that needs to be forcibly updated, pay attention to:
1. Select Force update when editing information for the new game version in AppGallery Connect.
(See step 8 in the official document)
2. Set forceUpdate in the input parameters to 1.
This way, you have successfully integrated the app update function.
very useful writeup
Neha J said:
very useful writeup
Click to expand...
Click to collapse
Thank you for your liking.
HMS Toolkit is an IDE plugin which provides all the tools you need to develop and release HMS Core-integrated apps in Android Studio. You can use it to create, code, convert, debug, test, and release your apps, and it cuts the cost of development and boosts efficiency by more than three times.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
l Functions
Configuration Wizard enables you to quickly prepare your environment for the integration of HMS Core kits. The configuration process originally comprised 14 steps, during which you had to frequently switch between the IDE and AppGallery Connect. But with this tool, you can automatically configure a full environment, including your team, project module, AppGallery Connect file, and project certificate. It saves a lot of preparation time and improves your efficiency when developing.
l Highlights
Automatic configuration with one click
Streamlines the configuration process.
No need to keep checking documents or switching tools.
Various configuration scenarios
Supports configuring multiple kits at the same time.
Supports all kits for which development preparations are required.
Efficiency boost
Shortens the configuration process from 4 hours to 5 minutes.
Provides you with clear guidance.
l Usage
If you have any questions, please submit a ticket. Huawei technical support will reply to you as soon as possible.
For more information about HMS Toolkit, go to >>
For how to quickly integrate each kit using HMS Toolkit, go to >>
For more operation tutorials, go to >>
For more details, you can go to:
l Our official website
l Our Development Documentation page, to find the documents you need
l Reddit to join our developer discussion
l GitHub to download demos and sample codes
l Stack Overflow to solve any integration problems
Original Source