Installation and configuration of the Amazon App Tester tool - Amazon in-app purchase access process and testing

Installation and configuration of the Amazon App Tester tool & Amazon in-app purchase access process and testing

1. Amazon App Tester tool application testing steps:

( 1) Download the Amazon AppStore application store;

(2) Download the product list json file on the product release interface of the Amazon app ;

(3) On the Android mobile device, start the Amazon Appstore application, search for the Amazon App Tester application and install it;

(4) Obtain the JSON data file and name the file "amazon.sdktester.json, copy the file to the /mnt/sdcard/  folder in the device file system ; 

(5) Open  Amazon App Tester and select IAP Items in JSON File to check whether the copy path of the json file is correct, and if there is a file, it is correct;

(6). After the above steps are completed, you can start testing the in-app purchase.

2. Software download address:

(1) Amazon AppStore download address: https://www.amazon.cn/gp/mas/get/android/ref=mas_rw_ldg

(2) Amazon App Tester download address: Amazon.com

(3) Amazon Android SDK download address : https://developer.amazon.com/public/zh/resources/development-tools/sdk

3. Access document description address:

(1) App upload address and document: https://developer.amazon.com/public/zh
(2) Install and configure App Tester document address:

https://developer.amazon.com/public/zh/apis/earn/in-app-purchasing/docs-v2/testing-iap-2.0

3. For detailed access steps of the SDK, please refer to the demo and access documents, which are omitted here. Shorthand:

 (1) Unzip the downloaded sdk and there will be 7 files, find the in-app purchase folder AmazonInAppPurchasing/examples we need;

 (2) Amazon provides 3 payment methods, namely SampleIAPConsumablesApp, SampleIAPEntitlementsApp, SampleIAPSubscriptionsApp, choose one of them to import into our project;

 (3) Import the in-app-purchasing-2.0.76.jar provided by Amazon into the project;

 (4) Run, cannot test payment.

4. Detailed steps of Amazon App Tester tool installation and configuration:

1. First, a developer account is required to log in to the Amazon developer platform, as shown in the figure:

 

2. Enter the address on the web page: https://developer.amazon.com/public/zh, as shown in the figure:

 

Package the android project connected to the AmazonSDK into an APK and upload it to the app store, and directly drag the APK to the location of the APK on this web page, as shown in the figure:

 

After the upload is successful, as shown in the figure:

 

The test results showed no abnormalities.

3. View the application test history:

Click Applications and Services -> Application Test Service, as shown in the figure:

 

Click to start the test, as shown in the figure:

 

4. Steps to obtain the JSON data file:

Repeat step 3 above, and then click Submit to App Store, as shown in the figure:

 

Click Apps and Services -> In-App Products, as shown in the figure:

Select Add New IAP->Add Consumables, as shown in the figure:

 

As shown in the figure, fill in the complete information:

 

You can check whether you have successfully added in the list, if there is in the list, the addition is successful.

The most important step is to export the JSON file, click Export IAP as -> select JSON:

 

The export is successful as shown in the figure, and the file is automatically named amazon.sdktester.json:

 

At this point, the JSON data file has been successfully obtained.

5. Install the Amazon appstore application on the mobile phone, and then open the application to search for the Amazon App Tester application. If you do not find this application, you need to perform the following operations, and skip it if you have:

https://www.amazon.com/Amazon-App-Tester/dp/B00BN3YZM2/, open this URL, and log in to the developer account. If it is the first time, you need to enter the delivery address, which can be done any day. As shown in the picture:

 

English website: https://www.amazon.com/Amazon-App-Tester/dp/B00BN3YZM2/

Chinese website: https://www.amazon.cn/Amazon-App-Tester/dp/B00BN3YZM2/

Just change COM to CN.

Click to place an order:

 

This proof already has this application.

6. Then use your mobile phone to open the Amazon appstore to search for the Amazon App Tester application, and click Install. After completion, open the application, as shown in the figure:

 

Click the picture text to enter the picture:

 

Click the fifth option IAP Items in JSON File, you will see a prompt that there is no amazon.sdktester.json file in the SD card. At this time, we need to copy the file just downloaded to the mobile phone. I put this file in my F:\download path, open the CMD command window, and execute the following command (here you need to configure the ADB environment of your computer , omitted, will not Baidu it):

$ adb push [Your_JSON_File_Folder]/amazon.sdktester.json /mnt/sdcard/ (mine: adb push F:/download/amazon.sdktester.json /mnt/sdcard/), as shown in the figure:

 

If the image above appears, uploading to the SD card of the mobile phone is successful.

At this time, reopen the fifth option IAP Items in JSON File, and you will see some data in the JSON file, as shown in the figure:

 

At this point, all the operations have been completed, and all the configurations have been successfully completed, and then it is OK to test the login and payment of your own application on the mobile phone.

5. Notes and requirements of App Tester

The App Tester tool has the following requirements: 

general requirements 

The development and test environments should meet the following requirements to execute test cases with App Tester:

  • Android development environment that allows logging via ADB and logcat
  • Android devices that support SDK version 10 or later
  • Android application implementing IAP v2.0 and/or Mobile Affiliation API
  • If SDK Tester for IAP v1.0 has been installed before, SDK Tester needs to be uninstalled.
  • One or more purchasable items created for your app in the Amazon Appstore (optional but recommended).

As discussed on this page, it is also necessary to install the App Tester app to the Android mobile device and create a JSON data file for testing.

NOTE : App Tester does not support IAP v1.0 and is not compatible with the SDK Tester tool included in the IAP v1.0 download. If your app uses both IAP v1.0 and Mobile Affiliation API, you will need to install/uninstall App Tester and SDK Tester to test your app locally when using each API set. If upgrading to IAP v2.0, only App Tester needs to be installed on the device.

Android OS 5.0 (Lollipop) Requirements

If your app targets Android OS 5.0 (Lollipop), and you downloaded the App Tester tool before December 3, 2014, then this version of App Tester is not compatible with Android OS 5.0. On December 3, 2014, Amazon released a version of App Tester that included updated signatures for compatibility with Android OS 5.0.

NOTE : This App Tester version is compatible with FireTv Stick. 

To use App Tester with Android OS 5.0:

  1. Uninstall the old version of App Tester from your mobile device.
  2. Download a new copy of the app.
  3. Install the updated App Tester to your mobile device.

 Detailed address:

https://developer.amazon.com/public/zh/apis/earn/in-app-purchasing/docs-v2/testing-iap-2.0 

Amazon integrates android IAP API in-app purchase, document URL: Implementing Android IAP API | In-app purchase API

Welcome to leave a message below to discuss, or join the group 769397359 to communicate!

Guess you like

Origin blog.csdn.net/u013007305/article/details/79311759