You are on page 1of 14

Technical Specifications for

OnDeviceOttSupplementaryActionService
Facebook

www.Infovista.com | 1
Copyright Infovista Sweden AB 2022

TEMS is a trademark of Infovista. All other trademarks are the property of their respective holders.
No part of this document may be reproduced in any form without the written permission of the copyright holder.

The contents of this document are subject to revision without notice due to continued progress in methodology, design and
manufacturing. Infovista shall have no liability for any error or damage of any kind resulting from the use of this document.

www.Infovista.com | 2
Contents
1 Introduction....................................................................................................................................................... 4
2 Versions ........................................................................................................................................................... 5
3 KPIs .................................................................................................................................................................. 6
3.1 Supported KPIs ......................................................................................................................................... 6
3.2 Non-supported KPIs .................................................................................................................................. 6
4 Configurations .................................................................................................................................................. 7
4.1 Example Script Parameters ....................................................................................................................... 7
4.2 Common Configurations............................................................................................................................ 7
4.3 Unique Configurations ............................................................................................................................... 7
5 Error Codes ...................................................................................................................................................... 8
6 Known Limitations .......................................................................................................................................... 13
6.1 Hidden UI Component Resource Identity ................................................................................................ 13
6.2 Caching ................................................................................................................................................... 13
6.3 Facebook Account Types ........................................................................................................................ 13
7 Other Notes .................................................................................................................................................... 14

www.Infovista.com | 3
1 Introduction
This document provides information for understanding and implementing support for TEMS OnDevice OTT
Supplementary Action service for Facebook.

www.Infovista.com | 4
2 Versions
Versions Device * Support Date
405.1.0.28.72 Samsung S21+ GM-996B ODM+ Android 12 25 Jan 2024
Samsung S21+ GM-996U ODM+ Android 12 25 Jan 2024
Samsung S21+ GM-996B ODM+ Android 11 25 Jan 2024
Samsung S21+ GM-996B ODM Android 11 25 Jan 2024
Samsung S22 Ultra SM-S908B 25 Jan 2024
Samsung S22+ SM-S906B 25 Jan 2024
Samsung S22+ SM-S906U 25 Jan 2024

* The list of devices listed above only represent the devices that were used to verify the python script. In general, the python script
should work for all TEMS connectable devices.

Python version information:

Versions Description Support Date


1.0.0 First release 25 Jan 2024
Feature 262204: TP-416 OTT Media - Facebook posting
comment/image every 5 min retention.
1.0.1 7 Feb 2024
• -m parameter no longer supported. Posted comment will
be an auto generated GUID text.
1.0.2 Bug 288992 fix: OTTSA_FB_DeletePostFailing 23 Feb 2024

www.Infovista.com | 5
3 KPIs

3.1 Supported KPIs

Refer to General Technical Specifications for OnDeviceOttSupplementaryActionService document for the list of
supported KPIs.

3.2 Non-supported KPIs

N/A

www.Infovista.com | 6
4 Configurations

4.1 Example Script Parameters

-a poststatus -m testing -pwis False -cs 1000000 -nat 5 -dnst 6 -ttfbt 7

-a likepost -pwis False -cs 1000000 -nat 5 -dnst 6 -ttfbt 7

-a commentpost -pwis False -cs 1000000 -nat 5 -dnst 6 -ttfbt 7

-a deletepost -pwis False -cs 1000000 -nat 5 -dnst 6 -ttfbt 7

-a loaduserfeed -pwis False -cs 1000000 -nat 5 -dnst 6 -ttfbt 7

-a loadpagefeed -pgn OrientalDailyNewsMalaysia -pwis False -cs 1000000 -nat 5 -dnst 6 -ttfbt 7

4.2 Common Configurations

Refer to General Technical Specifications for OnDeviceOttSupplementaryActionService document for the list of
common configurations.

4.3 Unique Configurations

Parameter Description Default Value

-pgn Page Profile Name (eg: -pgn News)


N/A
Sets the page name to load feed. Example Facebook page.

www.Infovista.com | 7
5 Error Codes

Error Description Troubleshoot


Code

Common Checking:
• Ensure you are using the supported
Facebook App version. The supported
Facebook App version for the python script
is listed at the beginning of the python script.
• Check and ensure there are no pop-up
window that could be blocking the button.
• Requires trp, logcat and a screen recording
for troubleshooting by R&D.

1 General exception error. • Usually related to some kind of setup error.


• Check and ensure that atx-agent is installed.
• Check and ensure that the correct python
script is used. If there are errors in the
python script during compilation, it will fail
with this error code.
• There could be also some missing exception
handling in the python script which, when
thrown, will fail with this error code as well.
• Unlikely to be caused by the Facebook App.
• Requires trp and logcat for troubleshooting
by R&D.

110 check_is_test_running_or_exit test is ended • Error when calling the


report_is_test_running python interface.
• It may be that
OnDeviceOttSupplementaryActionService
has stopped or aborted the test, but the
python script is still executing and trying to
communicate with the
OnDeviceOttSupplementaryActionService.
• Unlikely to be caused by the Facebook App.
• Requires trp and logcat for troubleshooting
by R&D.

111 report_app_info error • Error when calling the report_app_info


python interface.
• Unlikely to be caused by the Facebook App.
• Requires trp and logcat for troubleshooting
by R&D.

112 report_supplementary_action_miscellaneous error • Error when calling


report_supplementary_action_miscellaneous
python interface
• Unlikely to be caused by the Facebook App.

www.Infovista.com | 8
• Requires trp and logcat for troubleshooting
by R&D.

113 report_supplementary_action_state error • Error when calling


report_supplementary_action_ state python
interface
• Unlikely to be caused by the Facebook App.
• Requires trp and logcat for troubleshooting
by R&D.

114 report_supplementary_action_ui_automation_action • Error when calling


error report_supplementary_action
ui_automation_action python interface
• Unlikely to be caused by the Facebook App.
• Requires trp and logcat for troubleshooting
by R&D.

115 start_test error • Error when calling the start_test python


interface.
• Unlikely to be caused by the Facebook App.
• Requires trp and logcat for troubleshooting
by R&D.

140 Post status failure. Failed to share post • Failed to share to Facebook.
• Failed when checking if the post was
shared.
• Refer to common checking above.

151 Failed to find like button. • Failed to like the post from facebook
• Could be either facebook doesn’t load or no
post available.
• A very slow internet connection could cause
this error.

www.Infovista.com | 9
152 Failed to find comment tab • Failed to find comment tab from facebook
• Could be either facebook doesn’t load or no
post available.
• A very slow internet connection could cause
this error.

153 Failed to find send button • Failed to click send button from facebook
• Could be either facebook doesn’t load or no
post available.
• A very slow internet connection could cause
this error.

154 Failed to find post button. • Failed to click menu button from facebook
post
• Could be either facebook doesn’t load or no
post available.
• A very slow internet connection could cause
this error.

155 Failed to click move to recycle bin button • Failed to click move to recycle bin button
from facebook post
• Could be either facebook doesn’t load or no
post available.

www.Infovista.com | 10
• A very slow internet connection could cause
this error.
• In the case UI shown different from the
screenshot, it could be facebook account is
not created with gmail or Hotmail account
extension. If the facebook account created
with yahoo extension, the UI will be slightly
different from the screenshot.

156 Failed to click delete button • Failed to click delete button from facebook
post
• Could be either facebook doesn’t load or no
post available.
• A very slow internet connection could cause
this error.

www.Infovista.com | 11
161 Failed to load user profile • Failed to load user page from facebook post
• Could be either facebook doesn’t load
• A very slow internet connection could cause
this error.

162 Failed to load page profile • Failed to load page from facebook post
• Could be either facebook doesn’t load
• A very slow internet connection could cause
this error.

www.Infovista.com | 12
6 Known Limitations

6.1 Hidden UI Component Resource Identity

Facebook has developed the application with the intention to make it hard for UI automation by
removing/hiding/altering the Resource Id property for each UI Component displayed by the application.

This made it harder to identify the correct UI Component to control during testing. We need to infer or use
workarounds in the python script which normally would not be required.

6.2 Caching

The pm clear command cannot be used to clear the application cache as it will also clear the application data as
well. Clearing the application data will result in user getting logged out.

Caching causes the payload and thus throughput for subsequent tests to be lower.

There is currently no workaround.

6.3 Facebook Account Types

There are issues when using Facebook accounts created using Gmail email or the phone number itself. The UI
Components are more hidden (See Known Limitation 5.1), thus will not be supported for now. Try creating Facebook
accounts using yahoo email instead.

www.Infovista.com | 13
7 Other Notes

www.Infovista.com | 14

You might also like