The following document provides an overview of automatic tests of ServiceBluetooth (henceforth referred to as S-BT) functionalities.
Each test may consists of consecutive steps:
DB data injectionTests shall be grouped (and named respectively) in categories by one of the following Test run-step based perspectives:
hmi_perspective - test is performed in the user perspective (using HMI - human-machine interface), allowing tester to
observe and verify consecutive event handlingdev_perspective - test is performed and analysed using appropriate developer's mode endpoints and the internal system request-response systemThe HMI interface shall be accessed by harness for automation purposes.
For analyzing content inside displayed windows, the DOM functionality shall be used.
Each S-BT hmi_perspective test shall start in ApplicationSettings:Bluetooth main window, with Bluetooth in turned off state by default.
This can be achieved by following logic enforcement:
BT on/offThe test's goal is to ensure that the BT device power states can be controlled by PurePhone via internal request-response system.
The test's goal is to ensure that the BT device visibility states can be controlled by PurePhone via internal request-response system.
The test's goal is to ensure that the BT device pairing ability work, can be controlled by PurePhone via internal request-response system.
Also once a device is paired with the Pure, it should stay paired despite turning the BT off and on.
The test inputs:
BT device name (required)The test's goal is to ensure that the PurePhone can establish Pure - BT device connection via internal request-response system.
The test inputs:
BT device name (required)The test's goal is to ensure that the user can establish Pure - BT device pair via HMI.
The test inputs:
BT device name (required)BT device password (optional)The test's goal is to ensure that the user will be correctly notified if the device stored in DB
(the user has paired with the device in the past successfully) cannot be reached at the moment.
The test's goal is to ensure that the user can make Pure forget BT devices stored in DB.