## 自动化测试使用说明文档 ​ 本文档主要介绍了蓝牙专项测试程序的自动测试模块的功能使用说明。 ### 自动化测试界面 ![自动化测试界面](自动化测试界面1.png) ​ 本程序的自动测试实现的是可以在点击一次"自动测试"按键后,调用对应api测试下的所有接口方法,并将所有返回值显示出来。只为了进行了简单了传值和调用动作,查看接口是否可以正常调用,所以并没有严格遵从用例的逻辑顺序关系。 #### 1. Br自动测试(ohos.bluetooth.d.ts) ![Br自动化测试](Br自动化测试.png) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetooth.d.ts中经典蓝牙类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 2. BluetoothManager自动测试(ohos.bluetoothManager.d.ts) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetoothManager.d.ts中经典蓝牙类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 3. Ble自动测试(ohos.bluetooth.d.ts) ![Ble自动化测试](Ble自动化测试.png) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetooth.d.ts中BLE类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 4. BleManager自动测试(ohos.bluetoothManager.d.ts) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetoothManager.d.ts中BLE类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 5. Gatt自动测试(ohos.bluetooth.d.ts) ![Gatt自动化测试](Gatt自动化测试.png) GattClient ![GattClient自动化测试](GattClient自动化测试.png) GattServer ![GattServer自动化测试](GattServer自动化测试.png) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetooth.d.ts中Gatt类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 6. GattManager自动测试(ohos.bluetoothManager.d.ts) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetoothManager.d.ts中Gatt类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 7. Spp自动测试(ohos.bluetooth.d.ts) ![SPP自动化测试](SPP自动化测试.png) SPPClient ![SPPClient自动化测试](SPPClient自动化测试.png) SPPServer ![SPPServer自动化测试](SPPServer自动化测试.png) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetooth.d.ts中Spp类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 8. SppManager自动测试(ohos.bluetoothManager.d.ts) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetoothManager.d.ts中Spp类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 9. Profile自动测试(ohos.bluetooth.d.ts) ![Profile自动化测试](Profile自动化测试.png) ProfileA2dpSource ![ProfileA2dpSource自动化测试](ProfileA2dpSource自动化测试.png) ProfileHandsFreeAudioGateway ![ProfileHandsFreeAudioGateway自动化测试](ProfileHandsFreeAudioGateway自动化测试.png) ProfileHitHost ![ProfileHitHost自动化测试](ProfileHitHost自动化测试.png) ProfilePanNetwork ![ProfilePanNetwork自动化测试](ProfilePanNetwork自动化测试.png) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetooth.d.ts中profile类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。 #### 10. Profile自动测试(ohos.bluetoothManager.d.ts) ​ 进入界面后,点击"自动测试"按钮,自动遍历测试ohos.bluetoothManager.d.ts中profile类的所有接口,测试顺序并没有任何逻辑先后关系,只是保证在使能蓝牙的情况完成自动测试,最后关闭蓝牙。