Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Test coverage: 

This test covers the usage of Custom fields and Tags based on segmentation.will confirm the following:

The test will be divided into 2 parts:

  • Basic test which is monitoring the API call when an alias is created.
  • Advanced test using a segment creation.

Basic Test procedure:

Note: The majority of Tags & Custom fields implementation is done when the application is launched for the first time. other available ways to assign tags is through using the FTP API.

  • Make sure Charles ,or a sniffer tool of your choice, is configured and running on your computer.
  • Open your application for the first time.

Expected results:

The following requests and their respective responses should be successfully reported by Charles.

Each request should return a response code of 200 indicating the call was successful.


Example for Set Tags & Set Custom fields API Calls:
Requests:

Image Added

Image Added


Response:

Image Added

Advanced Test procedure:

  • During this test we will create a segment for each custom field that

...

  • was added to your application and for tags which your application

...

  • assigns each device when it is registered,

...

 

...

  • Prepare a list of all custom fields that you have configured in your appapplication code, make sure these fields were added to you your application settings within Appoxee UI as seen below:

...

  • Create a segment for each on one of your custom fields and tags, you can use the steps mention in the the "Create a Segment for a Test Device article. " procedure (it is also possible to edit the segment each time changing the setup definitions and saving it).
    below please find an example how to setup a segment based on a custom string field. 

    • Define a segment and define the rule "<your custom field> equals <your device's value>" and save it. Verify that . You can do the same test for your tags.
    • Send your device a push Push notification, use the custom fields within the message content by Setting up "Custom Fields"For example, assuming you have set the custom field "F_name", create a push notification, and edit the following content: "Hi {F_name}, thank you for using our app". Send the push notification to yourself (you can use the segment created in step #3), and see that your device receives the a push notification with the text "Hi <your name as listed in the database>, thank you for using our app".
    • please make sure to check the following:Confirm the following:
        1. The format of your custom fields are exactly the same as in your app. For example, the parameter "F_name" will be configured in the same format in the app's settings (in the dashboard) and in the app's code.
        2. You have defined the custom fields according to the correct custom field type: numeric, date, string, boolean (for tags).


Expected result:

    Confirm that following a segment creation the segment shows "push enabled" equals at least 1
    • Verify that Installs and Push Enabled are updated to 1.

    Image Modified
    • The
  • result
    • content of the
  • push notification in the
    • Push notification when presented on your device includes the custom filed data. 






Logs

IOS

SET

[Appoxee Debug] Starting custom fields update operation...
[Appoxee Debug] Custom fields update operation completed.


GET

[Appoxee Debug] Starting custom fields fetch operation...
[Appoxee Debug] Custom fields fetch operation completed. Cached value was fetched.


Tags

GET / SET

Starting tags update operation...
[Appoxee Debug] Fetching Tags...
[Appoxee Debug] Completed fetching Tags.
[Appoxee Debug] Added tag 'TAG_NAME' to device tags
[Appoxee Debug] Updating tags operation completed.
[Appoxee Debug] Fetching Tags...
[Appoxee Debug] Completed fetching Tags.
[Appoxee Debug] Fetching Tags...
[Appoxee Debug] Completed fetching Tags.


Android

Set

Code Block
setAttributesJSON SET API: action : {"key":"a999b65a149ab8d9","actions":{"set":{"Key":"Value"}}}

Custom attribute name - "Key"

Custom Attribute value - "Value"