未验证 提交 d15931d1 编写于 作者: O openharmony_ci 提交者: Gitee

!4219 revise power and battery test name

Merge pull request !4219 from liuzixuan/master
......@@ -18,1401 +18,1401 @@ describe('appInfoTest_battery_1', function () {
console.log("*************Battery commonEvent Test Begin*************");
/**
* @tc.number BatteryCommonEventTest_001
* @tc.name subscribe battery changed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0100
* @tc.name Subscribe_Battery_Changed_Common_Event
* @tc.desc battery acquisition kit
*/
it('BatteryCommonEventTest_001', 0, function (done) {
it('Subscribe_Battery_Changed_Common_Event', 0, function (done) {
createBatteryChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_002
* @tc.name subscribe battery okay common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0110
* @tc.name Subscribe_Battery_Okay_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_002', 0, function (done) {
it('Subscribe_Battery_Okay_Common_Event', 0, function (done) {
createBatteryOkaySubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_003
* @tc.name subscribe battery low common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0120
* @tc.name Subscribe_Battery_Low_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_003', 0, function (done) {
it('Subscribe_Battery_Low_Common_Event', 0, function (done) {
createBatteryLowSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_004
* @tc.name subscribe power connected common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0130
* @tc.name Subscribe_Power_Connected_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_004', 0, function (done) {
it('Subscribe_Power_Connected_Common_Event', 0, function (done) {
createBatteryPowerConnectedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_005
* @tc.name subscribe power disconnected common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0140
* @tc.name Subscribe_Power_Disconnected_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_005', 0, function (done) {
it('Subscribe_Power_Disconnected_Common_Event', 0, function (done) {
createBatteryPowerDisconnectedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_006
* @tc.name subscribe battery charging common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0150
* @tc.name Subscribe_Battery_Charging_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_006', 0, function (done) {
it('Subscribe_Battery_Charging_Common_Event', 0, function (done) {
createBatteryChargingSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_007
* @tc.name subscribe battery discharging common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0160
* @tc.name Subscribe_Battery_Discharging_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_007', 0, function (done) {
it('Subscribe_Battery_Discharging_Common_Event', 0, function (done) {
createBatteryDischargingSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_008
* @tc.name subscribe boot completed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0170
* @tc.name Subscribe_Boot_Completed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_008', 0, function (done) {
it('Subscribe_Boot_Completed_Common_Event', 0, function (done) {
createBootCompletedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_009
* @tc.name subscribe locked boot completed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0180
* @tc.name Subscribe_Locked_Boot_Completed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_009', 0, function (done) {
it('Subscribe_Locked_Boot_Completed_Common_Event', 0, function (done) {
createLockedBootCompletedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_010
* @tc.name subscribe shutdown common event
* @tc.number Usb_powersystem_batterymanager_jstest_0190
* @tc.name Subscribe_Shutdown_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_010', 0, function (done) {
it('Subscribe_Shutdown_Common_Event', 0, function (done) {
createShutdownSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_011
* @tc.name subscribe screen on common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0200
* @tc.name Subscribe_Screen_On_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_011', 0, function (done) {
it('Subscribe_Screen_On_Common_Event', 0, function (done) {
createScreenOnSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_012
* @tc.name subscribe user present common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0210
* @tc.name Subscribe_User_Present_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_012', 0, function (done) {
it('Subscribe_User_Present_Common_Event', 0, function (done) {
createUserPresentSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_013
* @tc.name subscribe time tick common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0220
* @tc.name Subscribe_Time_Tick_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_013', 0, function (done) {
it('Subscribe_Time_Tick_Common_Event', 0, function (done) {
createTimeTickSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_014
* @tc.name subscribe screen off common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0230
* @tc.name Subscribe_Screen_Off_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_014', 0, function (done) {
it('Subscribe_Screen_Off_Common_Event', 0, function (done) {
createScreenOffSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_015
* @tc.name subscribe time changed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0240
* @tc.name Subscribe_Time_Changed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_015', 0, function (done) {
it('Subscribe_Time_Changed_Common_Event', 0, function (done) {
createTimeChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_016
* @tc.name subscribe date changed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0250
* @tc.name Subscribe_Date_Changed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_016', 0, function (done) {
it('Subscribe_Date_Changed_Common_Event', 0, function (done) {
createDateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_017
* @tc.name subscribe timezone changed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0260
* @tc.name Subscribe_Timezone_Changed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_017', 0, function (done) {
it('Subscribe_Timezone_Changed_Common_Event', 0, function (done) {
createTimezoneChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_018
* @tc.name subscribe close system dialogs common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0270
* @tc.name Subscribe_Close_System_Dialogs_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_018', 0, function (done) {
it('Subscribe_Close_System_Dialogs_Common_Event', 0, function (done) {
createCloseSystemDialogsSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_019
* @tc.name subscribe package added common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0280
* @tc.name Subscribe_Package_Added_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_019', 0, function (done) {
it('Subscribe_Package_Added_Common_Event', 0, function (done) {
createPackageAddedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_020
* @tc.name subscribe package replaced common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0290
* @tc.name Subscribe_Package_Replaced_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_020', 0, function (done) {
it('Subscribe_Package_Replaced_Common_Event', 0, function (done) {
createPackageReplacedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_021
* @tc.name subscribe my package replaced common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0300
* @tc.name Subscribe_My_Package_Replaced_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_021', 0, function (done) {
it('Subscribe_My_Package_Replaced_Common_Event', 0, function (done) {
createMyPackageReplacedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_022
* @tc.name subscribe package removed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0310
* @tc.name Subscribe_Package_Removed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_022', 0, function (done) {
it('Subscribe_Package_Removed_Common_Event', 0, function (done) {
createPackageRemovedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_023
* @tc.name subscribe bundle removed common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0320
* @tc.name Subscribe_Bundle_Removed_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_023', 0, function (done) {
it('Subscribe_Bundle_Removed_Common_Event', 0, function (done) {
createBundleRemovedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_024
* @tc.name subscribe PackageFullyRemoved common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0330
* @tc.name Subscribe_Packagefullyremoved_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_024', 0, function (done) {
it('Subscribe_Packagefullyremoved_Common_Event', 0, function (done) {
createPackageFullyRemovedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_025
* @tc.name subscribe PackageChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0340
* @tc.name Subscribe_Packagechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_025', 0, function (done) {
it('Subscribe_Packagechanged_Common_Event', 0, function (done) {
createPackageChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_026
* @tc.name subscribe PackageRestarted common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0350
* @tc.name Subscribe_Packagerestarted_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_026', 0, function (done) {
it('Subscribe_Packagerestarted_Common_Event', 0, function (done) {
createPackageRestartedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_027
* @tc.name subscribe PackageDataCleared common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0360
* @tc.name Subscribe_Packagedatacleared_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_027', 0, function (done) {
it('Subscribe_Packagedatacleared_Common_Event', 0, function (done) {
createPackageDataClearedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_028
* @tc.name subscribe PackageSuspended common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0370
* @tc.name Subscribe_Packagesuspended_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_028', 0, function (done) {
it('Subscribe_Packagesuspended_Common_Event', 0, function (done) {
createPackageSuspendedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_029
* @tc.name subscribe PackagesUnsuspended common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0380
* @tc.name Subscribe_Packagesunsuspended_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_029', 0, function (done) {
it('Subscribe_Packagesunsuspended_Common_Event', 0, function (done) {
createPackagesUnsuspendedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_030
* @tc.name subscribe MyPackageSuspended common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0390
* @tc.name Subscribe_Mypackagesuspended_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_030', 0, function (done) {
it('Subscribe_Mypackagesuspended_Common_Event', 0, function (done) {
createMyPackageSuspendedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_031
* @tc.name subscribe MyPackageUnsuspended common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0400
* @tc.name Subscribe_Mypackageunsuspended_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_031', 0, function (done) {
it('Subscribe_Mypackageunsuspended_Common_Event', 0, function (done) {
createMyPackageUnsuspendedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_032
* @tc.name subscribe MyPackageFirstLaunch common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0410
* @tc.name Subscribe_Mypackagefirstlaunch_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_032', 0, function (done) {
it('Subscribe_Mypackagefirstlaunch_Common_Event', 0, function (done) {
createMyPackageFirstLaunchSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_033
* @tc.name subscribe MyPackageNeedsVerification common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0420
* @tc.name Subscribe_Mypackageneedsverification_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_033', 0, function (done) {
it('Subscribe_Mypackageneedsverification_Common_Event', 0, function (done) {
createMyPackageNeedsVerificationSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_034
* @tc.name subscribe ExternalApplicationsAvailable common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0430
* @tc.name Subscribe_Externalapplicationsavailable_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_034', 0, function (done) {
it('Subscribe_Externalapplicationsavailable_Common_Event', 0, function (done) {
createExternalApplicationsAvailableSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_035
* @tc.name subscribe ExternalApplicationsUnAvailable common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0440
* @tc.name Subscribe_Externalapplicationsunavailable_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_035', 0, function (done) {
it('Subscribe_Externalapplicationsunavailable_Common_Event', 0, function (done) {
createExternalApplicationsUnAvailableSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_036
* @tc.name subscribe ConfigurationChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0450
* @tc.name Subscribe_Configurationchanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_036', 0, function (done) {
it('Subscribe_Configurationchanged_Common_Event', 0, function (done) {
createConfigurationChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_037
* @tc.name subscribe LocateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0460
* @tc.name Subscribe_Locatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_037', 0, function (done) {
it('Subscribe_Locatechanged_Common_Event', 0, function (done) {
createLocateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_038
* @tc.name subscribe ManagePackageStorage common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0470
* @tc.name Subscribe_Managepackagestorage_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_038', 0, function (done) {
it('Subscribe_Managepackagestorage_Common_Event', 0, function (done) {
createManagePackageStorageSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_039
* @tc.name subscribe DriveMode common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0480
* @tc.name Subscribe_Drivemode_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_039', 0, function (done) {
it('Subscribe_Drivemode_Common_Event', 0, function (done) {
createDriveModeSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_040
* @tc.name subscribe HomeMode common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0490
* @tc.name Subscribe_Homemode_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_040', 0, function (done) {
it('Subscribe_Homemode_Common_Event', 0, function (done) {
createHomeModeSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_041
* @tc.name subscribe OfficeMode common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0500
* @tc.name Subscribe_Officemode_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_041', 0, function (done) {
it('Subscribe_Officemode_Common_Event', 0, function (done) {
createOfficeModeSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_042
* @tc.name subscribe UserStarted common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0510
* @tc.name Subscribe_Userstarted_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_042', 0, function (done) {
it('Subscribe_Userstarted_Common_Event', 0, function (done) {
createUserStartedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_043
* @tc.name subscribe UserBackground common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0520
* @tc.name Subscribe_Userbackground_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_043', 0, function (done) {
it('Subscribe_Userbackground_Common_Event', 0, function (done) {
createUserBackgroundSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_044
* @tc.name subscribe UserForground common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0530
* @tc.name Subscribe_Userforground_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_044', 0, function (done) {
it('Subscribe_Userforground_Common_Event', 0, function (done) {
createUserForgroundSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_045
* @tc.name subscribe UserSwitched common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0540
* @tc.name Subscribe_Userswitched_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_045', 0, function (done) {
it('Subscribe_Userswitched_Common_Event', 0, function (done) {
createUserSwitchedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_046
* @tc.name subscribe UserStarting common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0550
* @tc.name Subscribe_Userstarting_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_046', 0, function (done) {
it('Subscribe_Userstarting_Common_Event', 0, function (done) {
createUserStartingSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_047
* @tc.name subscribe UserUnlocked common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0560
* @tc.name Subscribe_Userunlocked_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_047', 0, function (done) {
it('Subscribe_Userunlocked_Common_Event', 0, function (done) {
createUserUnlockedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_048
* @tc.name subscribe UserStopping common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0570
* @tc.name Subscribe_Userstopping_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_048', 0, function (done) {
it('Subscribe_Userstopping_Common_Event', 0, function (done) {
createUserStoppingSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_049
* @tc.name subscribe UserStopped common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0580
* @tc.name Subscribe_Userstopped_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_049', 0, function (done) {
it('Subscribe_Userstopped_Common_Event', 0, function (done) {
createUserStoppedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_050
* @tc.name subscribe HwidLogin common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0590
* @tc.name Subscribe_Hwidlogin_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_050', 0, function (done) {
it('Subscribe_Hwidlogin_Common_Event', 0, function (done) {
createHwidLoginSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_051
* @tc.name subscribe HwidLogout common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0600
* @tc.name Subscribe_Hwidlogout_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_051', 0, function (done) {
it('Subscribe_Hwidlogout_Common_Event', 0, function (done) {
createHwidLogoutSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_052
* @tc.name subscribe HwidTokenInvalid common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0610
* @tc.name Subscribe_Hwidtokeninvalid_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_052', 0, function (done) {
it('Subscribe_Hwidtokeninvalid_Common_Event', 0, function (done) {
createHwidTokenInvalidSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_053
* @tc.name subscribe HwidLogOff common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0620
* @tc.name Subscribe_Hwidlogoff_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_053', 0, function (done) {
it('Subscribe_Hwidlogoff_Common_Event', 0, function (done) {
createHwidLogOffSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_054
* @tc.name subscribe WifiPowerState common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0630
* @tc.name Subscribe_Wifipowerstate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_054', 0, function (done) {
it('Subscribe_Wifipowerstate_Common_Event', 0, function (done) {
createWifiPowerStateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_055
* @tc.name subscribe WifiScanFinished common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0640
* @tc.name Subscribe_Wifiscanfinished_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_055', 0, function (done) {
it('Subscribe_Wifiscanfinished_Common_Event', 0, function (done) {
createWifiScanFinishedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_056
* @tc.name subscribe WifiRssiValue common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0650
* @tc.name Subscribe_Wifirssivalue_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_056', 0, function (done) {
it('Subscribe_Wifirssivalue_Common_Event', 0, function (done) {
createWifiRssiValueSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_057
* @tc.name subscribe WifiConnState common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0660
* @tc.name Subscribe_Wificonnstate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_057', 0, function (done) {
it('Subscribe_Wificonnstate_Common_Event', 0, function (done) {
createWifiConnStateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_058
* @tc.name subscribe WifiHostpotState common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0670
* @tc.name Subscribe_Wifihostpotstate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_058', 0, function (done) {
it('Subscribe_Wifihostpotstate_Common_Event', 0, function (done) {
createWifiHostpotStateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_059
* @tc.name subscribe WifiApStaJoin common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0680
* @tc.name Subscribe_Wifiapstajoin_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_059', 0, function (done) {
it('Subscribe_Wifiapstajoin_Common_Event', 0, function (done) {
createWifiApStaJoinSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_060
* @tc.name subscribe WifiApStaLeave common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0690
* @tc.name Subscribe_Wifiapstaleave_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_060', 0, function (done) {
it('Subscribe_Wifiapstaleave_Common_Event', 0, function (done) {
createWifiApStaLeaveSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_061
* @tc.name subscribe WifiMplinkStateChange common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0700
* @tc.name Subscribe_Wifimplinkstatechange_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_061', 0, function (done) {
it('Subscribe_Wifimplinkstatechange_Common_Event', 0, function (done) {
createWifiMplinkStateChangeSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_062
* @tc.name subscribe WifiP2PConnState common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0710
* @tc.name Subscribe_Wifip2pconnstate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_062', 0, function (done) {
it('Subscribe_Wifip2pconnstate_Common_Event', 0, function (done) {
createWifiP2PConnStateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_063
* @tc.name subscribe WifiP2PStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0720
* @tc.name Subscribe_Wifip2pstatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_063', 0, function (done) {
it('Subscribe_Wifip2pstatechanged_Common_Event', 0, function (done) {
createWifiP2PStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_064
* @tc.name subscribe WifiP2PPeersStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0730
* @tc.name Subscribe_Wifip2ppeersstatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_064', 0, function (done) {
it('Subscribe_Wifip2ppeersstatechanged_Common_Event', 0, function (done) {
createWifiP2PPeersStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_065
* @tc.name subscribe WifiP2PPeersDiscoveryStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0740
* @tc.name Subscribe_Wifip2ppeersdiscoverystatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_065', 0, function (done) {
it('Subscribe_Wifip2ppeersdiscoverystatechanged_Common_Event', 0, function (done) {
createWifiP2PPeersDiscoveryStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_066
* @tc.name subscribe WifiP2PCurrentDeviceStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0750
* @tc.name Subscribe_Wifip2pcurrentdevicestatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_066', 0, function (done) {
it('Subscribe_Wifip2pcurrentdevicestatechanged_Common_Event', 0, function (done) {
createWifiP2PCurrentDeviceStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_067
* @tc.name subscribe WifiP2PGroupStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0760
* @tc.name Subscribe_Wifip2pgroupstatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_067', 0, function (done) {
it('Subscribe_Wifip2pgroupstatechanged_Common_Event', 0, function (done) {
createWifiP2PGroupStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_068
* @tc.name subscribe BluetoothHandsfreeAgConntectStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0770
* @tc.name Subscribe_Bluetoothhandsfreeagconntectstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_068', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeagconntectstateupdate_Common_Event', 0, function (done) {
createBluetoothHandsfreeAgConntectStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_069
* @tc.name subscribe BluetoothHandsfreeAgConntectDeviceUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0780
* @tc.name Subscribe_Bluetoothhandsfreeagconntectdeviceupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_069', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeagconntectdeviceupdate_Common_Event', 0, function (done) {
createBluetoothHandsfreeAgConntectDeviceUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_070
* @tc.name subscribe BluetoothHandsfreeAgAudioStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0790
* @tc.name Subscribe_Bluetoothhandsfreeagaudiostateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_070', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeagaudiostateupdate_Common_Event', 0, function (done) {
createBluetoothHandsfreeAgAudioStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_071
* @tc.name subscribe BluetoothA2DPsourceConnectStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0800
* @tc.name Subscribe_Bluetootha2dpsourceconnectstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_071', 0, function (done) {
it('Subscribe_Bluetootha2dpsourceconnectstateupdate_Common_Event', 0, function (done) {
createBluetoothA2DPsourceConnectStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_072
* @tc.name subscribe BluetoothA2DPsourceCurrentDeviceUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0810
* @tc.name Subscribe_Bluetootha2dpsourcecurrentdeviceupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_072', 0, function (done) {
it('Subscribe_Bluetootha2dpsourcecurrentdeviceupdate_Common_Event', 0, function (done) {
createBluetoothA2DPsourceCurrentDeviceUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_073
* @tc.name subscribe BluetoothA2DPsourcePlayingStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0820
* @tc.name Subscribe_Bluetootha2dpsourceplayingstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_073', 0, function (done) {
it('Subscribe_Bluetootha2dpsourceplayingstateupdate_Common_Event', 0, function (done) {
createBluetoothA2DPsourcePlayingStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_074
* @tc.name subscribe BluetoothA2DPsourceAvrcpConntectStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0830
* @tc.name Subscribe_Bluetootha2dpsourceavrcpconntectstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_074', 0, function (done) {
it('Subscribe_Bluetootha2dpsourceavrcpconntectstateupdate_Common_Event', 0, function (done) {
createBluetoothA2DPsourceAvrcpConntectStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_075
* @tc.name subscribe BluetoothA2DPsourceCodecValueUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0840
* @tc.name Subscribe_Bluetootha2dpsourcecodecvalueupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_075', 0, function (done) {
it('Subscribe_Bluetootha2dpsourcecodecvalueupdate_Common_Event', 0, function (done) {
createBluetoothA2DPsourceCodecValueUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_076
* @tc.name subscribe BluetoothRemotedeviceDiscovered common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0850
* @tc.name Subscribe_Bluetoothremotedevicediscovered_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_076', 0, function (done) {
it('Subscribe_Bluetoothremotedevicediscovered_Common_Event', 0, function (done) {
createBluetoothRemotedeviceDiscoveredSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_077
* @tc.name subscribe BluetoothRemotedeviceClassValueUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0860
* @tc.name Subscribe_Bluetoothremotedeviceclassvalueupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_077', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceclassvalueupdate_Common_Event', 0, function (done) {
createBluetoothRemotedeviceClassValueUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_078
* @tc.name subscribe BluetoothRemotedeviceAclConnected common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0870
* @tc.name Subscribe_Bluetoothremotedeviceaclconnected_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_078', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceaclconnected_Common_Event', 0, function (done) {
createBluetoothRemotedeviceAclConnectedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_079
* @tc.name subscribe BluetoothRemotedeviceAclDisconnected common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0880
* @tc.name Subscribe_Bluetoothremotedeviceacldisconnected_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_079', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceacldisconnected_Common_Event', 0, function (done) {
createBluetoothRemotedeviceAclDisconnectedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_080
* @tc.name subscribe BluetoothRemotedeviceNameUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0890
* @tc.name Subscribe_Bluetoothremotedevicenameupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_080', 0, function (done) {
it('Subscribe_Bluetoothremotedevicenameupdate_Common_Event', 0, function (done) {
createBluetoothRemotedeviceNameUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_081
* @tc.name subscribe BluetoothRemotedevicePairState common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0900
* @tc.name Subscribe_Bluetoothremotedevicepairstate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_081', 0, function (done) {
it('Subscribe_Bluetoothremotedevicepairstate_Common_Event', 0, function (done) {
createBluetoothRemotedevicePairStateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_082
* @tc.name subscribe BluetoothRemotedeviceBateryValueUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0910
* @tc.name Subscribe_Bluetoothremotedevicebateryvalueupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_082', 0, function (done) {
it('Subscribe_Bluetoothremotedevicebateryvalueupdate_Common_Event', 0, function (done) {
createBluetoothRemotedeviceBateryValueUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_083
* @tc.name subscribe BluetoothRemotedeviceSdpResult common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0920
* @tc.name Subscribe_Bluetoothremotedevicesdpresult_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_083', 0, function (done) {
it('Subscribe_Bluetoothremotedevicesdpresult_Common_Event', 0, function (done) {
createBluetoothRemotedeviceSdpResultSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_084
* @tc.name subscribe BluetoothRemotedeviceUuidValue common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0930
* @tc.name Subscribe_Bluetoothremotedeviceuuidvalue_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_084', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceuuidvalue_Common_Event', 0, function (done) {
createBluetoothRemotedeviceUuidValueSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_085
* @tc.name subscribe BluetoothPairingReq common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0940
* @tc.name Subscribe_Bluetoothpairingreq_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_085', 0, function (done) {
it('Subscribe_Bluetoothpairingreq_Common_Event', 0, function (done) {
createBluetoothPairingReqSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_086
* @tc.name subscribe BluetoothRemotedevicePairingCancel common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0950
* @tc.name Subscribe_Bluetoothremotedevicepairingcancel_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_086', 0, function (done) {
it('Subscribe_Bluetoothremotedevicepairingcancel_Common_Event', 0, function (done) {
createBluetoothRemotedevicePairingCancelSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_087
* @tc.name subscribe BluetoothRemotedeviceConntectReq common event
* @tc.desc Battery acquisition kit
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0960
* @tc.name Subscribe_Bluetoothremotedeviceconntectreq_Common_Event
* @tc.desc Battery acquisition Kit
*/
it('BatteryCommonEventTest_087', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceconntectreq_Common_Event', 0, function (done) {
createBluetoothRemotedeviceConntectReqSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_088
* @tc.name subscribe BluetoothRemotedeviceConntectReply common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0970
* @tc.name Subscribe_Bluetoothremotedeviceconntectreply_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_088', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceconntectreply_Common_Event', 0, function (done) {
createBluetoothRemotedeviceConntectReplySubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_089
* @tc.name subscribe BluetoothRemotedeviceConntectCancel common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0980
* @tc.name Subscribe_Bluetoothremotedeviceconntectcancel_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_089', 0, function (done) {
it('Subscribe_Bluetoothremotedeviceconntectcancel_Common_Event', 0, function (done) {
createBluetoothRemotedeviceConntectCancelSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_090
* @tc.name subscribe BluetoothHandsfreeunitConntectStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0990
* @tc.name Subscribe_Bluetoothhandsfreeunitconntectstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_090', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeunitconntectstateupdate_Common_Event', 0, function (done) {
createBluetoothHandsfreeunitConntectStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_091
* @tc.name subscribe BluetoothHandsfreeunitAudioStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1010
* @tc.name Subscribe_Bluetoothhandsfreeunitaudiostateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_091', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeunitaudiostateupdate_Common_Event', 0, function (done) {
createBluetoothHandsfreeunitAudioStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_092
* @tc.name subscribe BluetoothHandsfreeunitAgCommonEvent common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1020
* @tc.name Subscribe_Bluetoothhandsfreeunitagcommonevent_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_092', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeunitagcommonevent_Common_Event', 0, function (done) {
createBluetoothHandsfreeunitAgCommonEventSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_093
* @tc.name subscribe BluetoothHandsfreeunitAgCallStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1030
* @tc.name Subscribe_Bluetoothhandsfreeunitagcallstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_093', 0, function (done) {
it('Subscribe_Bluetoothhandsfreeunitagcallstateupdate_Common_Event', 0, function (done) {
createBluetoothHandsfreeunitAgCallStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_094
* @tc.name subscribe BluetoothHostStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1040
* @tc.name Subscribe_Bluetoothhoststateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_094', 0, function (done) {
it('Subscribe_Bluetoothhoststateupdate_Common_Event', 0, function (done) {
createBluetoothHostStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_095
* @tc.name subscribe BluetoothHostReqDiscoverable common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1050
* @tc.name Subscribe_Bluetoothhostreqdiscoverable_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_095', 0, function (done) {
it('Subscribe_Bluetoothhostreqdiscoverable_Common_Event', 0, function (done) {
createBluetoothHostReqDiscoverableSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_096
* @tc.name subscribe CommonEventHostReqEnable common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1060
* @tc.name Subscribe_Commoneventhostreqenable_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_096', 0, function (done) {
it('Subscribe_Commoneventhostreqenable_Common_Event', 0, function (done) {
createCommonEventHostReqEnableSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_097
* @tc.name subscribe CommonEventHostReqDisable common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1070
* @tc.name Subscribe_Commoneventhostreqdisable_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_097', 0, function (done) {
it('Subscribe_Commoneventhostreqdisable_Common_Event', 0, function (done) {
createCommonEventHostReqDisableSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_098
* @tc.name subscribe CommonEventHostScanModeUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1080
* @tc.name Subscribe_Commoneventhostscanmodeupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_098', 0, function (done) {
it('Subscribe_Commoneventhostscanmodeupdate_Common_Event', 0, function (done) {
createCommonEventHostScanModeUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_099
* @tc.name subscribe CommonEventHostDiscovetyStarted common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1090
* @tc.name Subscribe_Commoneventhostdiscovetystarted_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_099', 0, function (done) {
it('Subscribe_Commoneventhostdiscovetystarted_Common_Event', 0, function (done) {
createCommonEventHostDiscovetyStartedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_100
* @tc.name subscribe CommonEventHostDiscovetyFinished common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1100
* @tc.name Subscribe_Commoneventhostdiscovetyfinished_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_100', 0, function (done) {
it('Subscribe_Commoneventhostdiscovetyfinished_Common_Event', 0, function (done) {
createCommonEventHostDiscovetyFinishedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_101
* @tc.name subscribe CommonEventHostNameUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1110
* @tc.name Subscribe_Commoneventhostnameupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_101', 0, function (done) {
it('Subscribe_Commoneventhostnameupdate_Common_Event', 0, function (done) {
createCommonEventHostNameUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_102
* @tc.name subscribe CommonEventHostStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1120
* @tc.name Subscribe_Commoneventhoststateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_102', 0, function (done) {
it('Subscribe_Commoneventhoststateupdate_Common_Event', 0, function (done) {
createCommonEventHostStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_103
* @tc.name subscribe CommonEventA2DPsinkPlayingStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1130
* @tc.name Subscribe_Commoneventa2dpsinkplayingstateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_103', 0, function (done) {
it('Subscribe_Commoneventa2dpsinkplayingstateupdate_Common_Event', 0, function (done) {
createCommonEventA2DPsinkPlayingStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_104
* @tc.name subscribe CommonEventA2DPsinkAudioStateUpdate common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1140
* @tc.name Subscribe_Commoneventa2dpsinkaudiostateupdate_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_104', 0, function (done) {
it('Subscribe_Commoneventa2dpsinkaudiostateupdate_Common_Event', 0, function (done) {
createCommonEventA2DPsinkAudioStateUpdateSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_105
* @tc.name subscribe CommonEventNFCActionAdapterStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1150
* @tc.name Subscribe_Commoneventnfcactionadapterstatechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_105', 0, function (done) {
it('Subscribe_Commoneventnfcactionadapterstatechanged_Common_Event', 0, function (done) {
createCommonEventNFCActionAdapterStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_106
* @tc.name subscribe CommonEventNFCActionRFFieldOnDetected common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1160
* @tc.name Subscribe_Commoneventnfcactionrffieldondetected_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_106', 0, function (done) {
it('Subscribe_Commoneventnfcactionrffieldondetected_Common_Event', 0, function (done) {
createCommonEventNFCActionRFFieldOnDetectedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_107
* @tc.name subscribe CommonEventNFCActionRFFieldOffDetected common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1170
* @tc.name Subscribe_Commoneventnfcactionrffieldoffdetected_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_107', 0, function (done) {
it('Subscribe_Commoneventnfcactionrffieldoffdetected_Common_Event', 0, function (done) {
createCommonEventNFCActionRFFieldOffDetectedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_108
* @tc.name subscribe CommonEventDeviceIdleModeChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1180
* @tc.name Subscribe_Commoneventdeviceidlemodechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_108', 0, function (done) {
it('Subscribe_Commoneventdeviceidlemodechanged_Common_Event', 0, function (done) {
createCommonEventDeviceIdleModeChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_109
* @tc.name subscribe CommonEventPowerSaveModeChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1190
* @tc.name Subscribe_Commoneventpowersavemodechanged_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_109', 0, function (done) {
it('Subscribe_Commoneventpowersavemodechanged_Common_Event', 0, function (done) {
createCommonEventPowerSaveModeChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_110
* @tc.name subscribe CommonEventUserAdded common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1200
* @tc.name Subscribe_Commoneventuseradded_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_110', 0, function (done) {
it('Subscribe_Commoneventuseradded_Common_Event', 0, function (done) {
createCommonEventUserAddedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_111
* @tc.name subscribe CommonEventUserRemoved common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1210
* @tc.name Subscribe_Commoneventuserremoved_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_111', 0, function (done) {
it('Subscribe_Commoneventuserremoved_Common_Event', 0, function (done) {
createCommonEventUserRemovedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_112
* @tc.name subscribe CommonEventAbilityAdded common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1220
* @tc.name Subscribe_Commoneventabilityadded_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_112', 0, function (done) {
it('Subscribe_Commoneventabilityadded_Common_Event', 0, function (done) {
createCommonEventAbilityAddedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_113
* @tc.name subscribe CommonEventAbilityRemoved common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1230
* @tc.name subscribe_CommonEventAbilityRemoved_common_event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_113', 0, function (done) {
it('subscribe_CommonEventAbilityRemoved_common_event', 0, function (done) {
createCommonEventAbilityRemovedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_114
* @tc.name subscribe CommonEventAbilityUpdated common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1240
* @tc.name subscribe_CommonEventAbilityUpdated_common_event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_114', 0, function (done) {
it('subscribe_CommonEventAbilityUpdated_common_event', 0, function (done) {
createCommonEventAbilityUpdatedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_115
* @tc.name subscribe CommonEventLocationModeStateChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1250
* @tc.name subscribe_CommonEventLocationModeStateChanged_common_event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_115', 0, function (done) {
it('subscribe_CommonEventLocationModeStateChanged_common_event', 0, function (done) {
createCommonEventLocationModeStateChangedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_116
* @tc.name subscribe CommonEventIVISleep common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1260
* @tc.name subscribe_CommonEventIVISleep_common_event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_116', 0, function (done) {
it('subscribe_CommonEventIVISleep_common_event', 0, function (done) {
createCommonEventIVISleepSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_117
* @tc.name subscribe CommonEventIVIPause common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1270
* @tc.name subscribe_CommonEventIVIPause_common_event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_117', 0, function (done) {
it('subscribe_CommonEventIVIPause_common_event', 0, function (done) {
createCommonEventIVIPauseSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_118
* @tc.name subscribe CommonEventIVIStandBy common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1280
* @tc.name Subscribe_Commoneventivistandby_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_118', 0, function (done) {
it('Subscribe_Commoneventivistandby_Common_Event', 0, function (done) {
createCommonEventIVIStandBySubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_119
* @tc.name subscribe CommonEventIVILastmodeSave common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1290
* @tc.name Subscribe_Commoneventivilastmodesave_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_119', 0, function (done) {
it('Subscribe_Commoneventivilastmodesave_Common_Event', 0, function (done) {
createCommonEventIVILastmodeSaveSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_120
* @tc.name subscribe CommonEventIVIVoltageAbnormal common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1300
* @tc.name Subscribe_Commoneventivivoltageabnormal_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_120', 0, function (done) {
it('Subscribe_Commoneventivivoltageabnormal_Common_Event', 0, function (done) {
createCommonEventIVIVoltageAbnormalSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_121
* @tc.name subscribe CommonEventIVIHightTemperature common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1310
* @tc.name Subscribe_Commoneventivihighttemperature_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_121', 0, function (done) {
it('Subscribe_Commoneventivihighttemperature_Common_Event', 0, function (done) {
createCommonEventIVIHightTemperatureSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_122
* @tc.name subscribe CommonEventIVIExtremeTemperature common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1320
* @tc.name Subscribe_Commoneventiviextremetemperature_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_122', 0, function (done) {
it('Subscribe_Commoneventiviextremetemperature_Common_Event', 0, function (done) {
createCommonEventIVIExtremeTemperatureSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_123
* @tc.name subscribe CommonEventIVITemperatureAbnormal common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1330
* @tc.name Subscribe_Commoneventivitemperatureabnormal_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_123', 0, function (done) {
it('Subscribe_Commoneventivitemperatureabnormal_Common_Event', 0, function (done) {
createCommonEventIVITemperatureAbnormalSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_124
* @tc.name subscribe CommonEventIVIVoltageRecovery common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1340
* @tc.name Subscribe_Commoneventivivoltagerecovery_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_124', 0, function (done) {
it('Subscribe_Commoneventivivoltagerecovery_Common_Event', 0, function (done) {
createCommonEventIVIVoltageRecoverySubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_125
* @tc.name subscribe CommonEventIVITempratureRecovery common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1350
* @tc.name Subscribe_Commoneventivitempraturerecovery_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_125', 0, function (done) {
it('Subscribe_Commoneventivitempraturerecovery_Common_Event', 0, function (done) {
createCommonEventIVITempratureRecoverySubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_126
* @tc.name subscribe CommonEventIVIActive common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1360
* @tc.name Subscribe_Commoneventiviactive_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_126', 0, function (done) {
it('Subscribe_Commoneventiviactive_Common_Event', 0, function (done) {
createCommonEventIVIActiveSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_127
* @tc.name subscribe CommonEventUSBDevidceAttached common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1370
* @tc.name Subscribe_Commoneventusbdevidceattached_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_127', 0, function (done) {
createCommonEventUSBDevidceAttachedSubscriber();
it('Subscribe_Commoneventusbdevidceattached_Common_Event', 0, function (done) {
createCommonEventSUBDevidceAttachedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_128
* @tc.name subscribe CommonEventUSBDevidceDetached common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1380
* @tc.name Subscribe_Commoneventusbdevidcedetached_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_128', 0, function (done) {
createCommonEventUSBDevidceDetachedSubscriber();
it('Subscribe_Commoneventusbdevidcedetached_Common_Event', 0, function (done) {
createCommonEventSUBDevidceDetachedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_129
* @tc.name subscribe CommonEventUSBAccessoryAttached common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1390
* @tc.name Subscribe_Commoneventusbaccessoryattached_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_129', 0, function (done) {
createCommonEventUSBAccessoryAttachedSubscriber();
it('Subscribe_Commoneventusbaccessoryattached_Common_Event', 0, function (done) {
createCommonEventSUBAccessoryAttachedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_130
* @tc.name subscribe CommonEventUSBAccessoryDetached common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1400
* @tc.name Subscribe_Commoneventusbaccessorydetached_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_130', 0, function (done) {
createCommonEventUSBAccessoryDetachedSubscriber();
it('Subscribe_Commoneventusbaccessorydetached_Common_Event', 0, function (done) {
createCommonEventSUBAccessoryDetachedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_131
* @tc.name subscribe CommonEventDickRemoved common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1410
* @tc.name Subscribe_Commoneventdickremoved_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_131', 0, function (done) {
it('Subscribe_Commoneventdickremoved_Common_Event', 0, function (done) {
createCommonEventDickRemovedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_132
* @tc.name subscribe CommonEventDickUnmounted common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1420
* @tc.name Subscribe_Commoneventdickunmounted_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_132', 0, function (done) {
it('Subscribe_Commoneventdickunmounted_Common_Event', 0, function (done) {
createCommonEventDickUnmountedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_133
* @tc.name subscribe CommonEventDickMounted common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1430
* @tc.name Subscribe_Commoneventdickmounted_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_133', 0, function (done) {
it('Subscribe_Commoneventdickmounted_Common_Event', 0, function (done) {
createCommonEventDickMountedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_134
* @tc.name subscribe CommonEventDickNadRemoval common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1440
* @tc.name Subscribe_Commoneventdicknadremoval_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_134', 0, function (done) {
it('Subscribe_Commoneventdicknadremoval_Common_Event', 0, function (done) {
createCommonEventDickNadRemovalSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_135
* @tc.name subscribe CommonEventDickUnmoutable common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1450
* @tc.name Subscribe_Commoneventdickunmoutable_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_135', 0, function (done) {
it('Subscribe_Commoneventdickunmoutable_Common_Event', 0, function (done) {
createCommonEventDickUnmoutableSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_136
* @tc.name subscribe CommonEventDickEject common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1460
* @tc.name Subscribe_CommonEventDickEject_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_136', 0, function (done) {
it('Subscribe_CommonEventDickEject_Common_Event', 0, function (done) {
createCommonEventDickEjectSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_137
* @tc.name subscribe CommonEventVisibleAccountsUpdated common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1470
* @tc.name Subscribe_CommonEventVisibleAccountsUpdated_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_137', 0, function (done) {
it('Subscribe_CommonEventVisibleAccountsUpdated_Common_Event', 0, function (done) {
createCommonEventVisibleAccountsUpdatedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_138
* @tc.name subscribe CommonEventAccountDeleted common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1480
* @tc.name Subscribe_CommonEventAccountDeleted_Common_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_138', 0, function (done) {
it('Subscribe_CommonEventAccountDeleted_Common_Event', 0, function (done) {
createCommonEventAccountDeletedSubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_139
* @tc.name subscribe CommonEventFoundationReady common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1490
* @tc.name Subscribe_CommonEventFoundation_ReadyCommon_Event
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_139', 0, function (done) {
it('Subscribe_CommonEventFoundation_ReadyCommon_Event', 0, function (done) {
createCommonEventFoundationReadySubscriber();
done();
})
/**
* @tc.number BatteryCommonEventTest_140
* @tc.name subscribe CommonEventAirplaneModeChanged common event
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1500
* @tc.name Subscribe_CommonEventAirplane_ModeChanged_CommonEvent
* @tc.desc Battery acquisition kit
*/
it('BatteryCommonEventTest_140', 0, function (done) {
it('Subscribe_CommonEventAirplane_ModeChanged_CommonEvent', 0, function (done) {
createCommonEventAirplaneModeChangedSubscriber();
done();
})
......@@ -1851,13 +1851,13 @@ function createCommonEventDickRemovedSubscriber() {
});
}
function createCommonEventUSBAccessoryDetachedSubscriber() {
function createCommonEventSUBAccessoryDetachedSubscriber() {
var commonEventSubscribeInfo = {
events: [commonEvent.Support.COMMON_EVENT_USB_ACCESSORY_DETACHED],
events: [commonEvent.Support.COMMON_EVENT_SUB_ACCESSORY_DETACHED],
};
commonEvent.createSubscriber(commonEventSubscribeInfo)
.then(subscriber => {
console.info('createCommonEventUSBAccessoryDetachedSubscriber success');
console.info('createCommonEventSUBAccessoryDetachedSubscriber success');
var mySubscriber = subscriber;
console.log(subscriber);
......@@ -1876,7 +1876,7 @@ function createCommonEventUSBAccessoryDetachedSubscriber() {
}).catch((error) => {
console.error('Subscriber getData error because: ' + JSON.stringify(error));
})
console.info('subscribe Common_Event_USB_Accessory_Detached begin ');
console.info('subscribe Common_Event_SUB_Accessory_Detached begin ');
commonEvent.subscribe(mySubscriber, (error, commonEventData) => {
console.error('err code: ' + JSON.stringify(error));
......@@ -1894,13 +1894,13 @@ function createCommonEventUSBAccessoryDetachedSubscriber() {
});
}
function createCommonEventUSBAccessoryAttachedSubscriber() {
function createCommonEventSUBAccessoryAttachedSubscriber() {
var commonEventSubscribeInfo = {
events: [commonEvent.Support.COMMON_EVENT_USB_ACCESSORY_ATTACHED],
events: [commonEvent.Support.COMMON_EVENT_SUB_ACCESSORY_ATTACHED],
};
commonEvent.createSubscriber(commonEventSubscribeInfo)
.then(subscriber => {
console.info('createCommonEventUSBAccessoryAttachedSubscriber success');
console.info('createCommonEventSUBAccessoryAttachedSubscriber success');
var mySubscriber = subscriber;
console.log(subscriber);
......@@ -1919,7 +1919,7 @@ function createCommonEventUSBAccessoryAttachedSubscriber() {
}).catch((error) => {
console.error('Subscriber getData error because: ' + JSON.stringify(error));
})
console.info('subscribe Common_Event_USB_Accessory_Attached begin ');
console.info('subscribe Common_Event_SUB_Accessory_Attached begin ');
commonEvent.subscribe(mySubscriber, (error, commonEventData) => {
console.error('err code: ' + JSON.stringify(error));
......@@ -1937,13 +1937,13 @@ function createCommonEventUSBAccessoryAttachedSubscriber() {
});
}
function createCommonEventUSBDevidceDetachedSubscriber() {
function createCommonEventSUBDevidceDetachedSubscriber() {
var commonEventSubscribeInfo = {
events: [commonEvent.Support.COMMON_EVENT_USB_DEVICE_DETACHED],
events: [commonEvent.Support.COMMON_EVENT_SUB_DEVICE_DETACHED],
};
commonEvent.createSubscriber(commonEventSubscribeInfo)
.then(subscriber => {
console.info('createCommonEventUSBDevidceDetachedSubscriber success');
console.info('createCommonEventSUBDevidceDetachedSubscriber success');
var mySubscriber = subscriber;
console.log(subscriber);
......@@ -1962,7 +1962,7 @@ function createCommonEventUSBDevidceDetachedSubscriber() {
}).catch((error) => {
console.error('Subscriber getData error because: ' + JSON.stringify(error));
})
console.info('subscribe Common_Event_USB_Devidce_Detached begin ');
console.info('subscribe Common_Event_SUB_Devidce_Detached begin ');
commonEvent.subscribe(mySubscriber, (error, commonEventData) => {
console.error('err code: ' + JSON.stringify(error));
......@@ -1980,13 +1980,13 @@ function createCommonEventUSBDevidceDetachedSubscriber() {
});
}
function createCommonEventUSBDevidceAttachedSubscriber() {
function createCommonEventSUBDevidceAttachedSubscriber() {
var commonEventSubscribeInfo = {
events: [commonEvent.Support.COMMON_EVENT_USB_DEVICE_ATTACHED],
events: [commonEvent.Support.COMMON_EVENT_SUB_DEVICE_ATTACHED],
};
commonEvent.createSubscriber(commonEventSubscribeInfo)
.then(subscriber => {
console.info('createCommonEventUSBDevidceAttachedSubscriber success');
console.info('createCommonEventSUBDevidceAttachedSubscriber success');
var mySubscriber = subscriber;
console.log(subscriber);
......@@ -2005,7 +2005,7 @@ function createCommonEventUSBDevidceAttachedSubscriber() {
}).catch((error) => {
console.error('Subscriber getData error because: ' + JSON.stringify(error));
})
console.info('subscribe Common_Event_USB_Devidce_Attached begin ');
console.info('subscribe Common_Event_SUB_Devidce_Attached begin ');
commonEvent.subscribe(mySubscriber, (error, commonEventData) => {
console.error('err code: ' + JSON.stringify(error));
......
......@@ -22,242 +22,242 @@ describe('appInfoTest_battery_2', function () {
console.log("*************Battery Unit Test Begin*************");
/**
* @tc.number battery_manager_js_0100
* @tc.name battery_soc_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1510
* @tc.name battery_soc_JSTest
* @tc.desc Battery acquisition kit
*/
it('battery_soc_test', 0, function () {
it('battery_soc_JSTest', 0, function () {
let batterySoc = batteryInfo.batterySOC;
console.info('batterySoc = ' + batterySoc);
expect(batterySoc >= -1 && batterySoc <= 100).assertTrue()
})
/**
* @tc.number battery_manager_js_0200
* @tc.name charging_status_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1520
* @tc.name charging_status_JSTest
* @tc.desc Battery charging kit
*/
it('charging_status_test', 0, function () {
it('charging_status_JSTest', 0, function () {
let chargingStatus = batteryInfo.chargingStatus;
console.info('chargingStatus = ' + chargingStatus);
expect(chargingStatus >= 0 && chargingStatus <= 4).assertTrue()
})
/**
* @tc.number battery_manager_js_0300
* @tc.name health_status_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1530
* @tc.name health_status_JSTest
* @tc.desc Get Battery Health Get KIT
*/
it('health_status_test', 0, function () {
it('health_status_JSTest', 0, function () {
let healthStatus = batteryInfo.healthStatus;
console.info('healthStatus = ' + healthStatus);
expect(healthStatus >= 0 && healthStatus <= 6).assertTrue()
})
/**
* @tc.number battery_manager_js_0400
* @tc.name plugged_type_test
* @tc.desc Obtaining the USB Connection Type KIT
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1540
* @tc.name plugged_type_JSTest
* @tc.desc Obtaining the SUB Connection Type KIT
*/
it('plugged_type_test', 0, function () {
it('plugged_type_JSTest', 0, function () {
let pluggedType = batteryInfo.pluggedType;
console.info('pluggedType = ' + pluggedType);
expect(pluggedType >= 0 && pluggedType <= 4).assertTrue()
})
/**
* @tc.number battery_manager_js_0500
* @tc.name voltage_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1550
* @tc.name voltage_JSTest
* @tc.desc Obtaining the Voltage Interface KIT
*/
it('voltage_test', 0, function () {
it('voltage_JSTest', 0, function () {
let voltage = batteryInfo.voltage;
console.info('voltage = ' + voltage);
expect(voltage >= -1).assertTrue()
})
/**
* @tc.number battery_manager_js_0600
* @tc.name technology_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1560
* @tc.name technology_JSTest
* @tc.desc Obtaining the Battery Technology Interface KIT
*/
it('technology_test', 0, function () {
it('technology_JSTest', 0, function () {
let technology = batteryInfo.technology;
console.info('technology = ' + technology);
expect(technology !== null).assertTrue()
})
/**
* @tc.number battery_manager_js_0700
* @tc.name battery_temperature_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1570
* @tc.name battery_temperature_JSTest
* @tc.desc BatteryTemperature values Interface Test
*/
it('battery_temperature_test', 0, function () {
it('battery_temperature_JSTest', 0, function () {
let batteryTemperature = batteryInfo.batteryTemperature;
console.info('batteryTemperature = ' + batteryTemperature);
expect(batteryTemperature <= 700).assertTrue()
})
/**
* @tc.number battery_manager_js_0800
* @tc.name enum_health_state_test_unknown
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1580
* @tc.name enum_health_state_JSTest_unknown
* @tc.desc BatteryHealthState values Interface Test
*/
it('enum_health_state_test_unknown', 0, function () {
it('enum_health_state_JSTest_unknown', 0, function () {
let batteryHealthState = batteryInfo.BatteryHealthState.UNKNOWN;
console.info('batteryHealthState = ' + batteryHealthState);
expect(batteryHealthState == 0).assertTrue()
})
/**
* @tc.number battery_manager_js_0900
* @tc.name enum_health_state_test_good
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1590
* @tc.name enum_health_state_JSTest_good
* @tc.desc BatteryHealthState values Interface Test
*/
it('enum_health_state_test_good', 0, function () {
it('enum_health_state_JSTest_good', 0, function () {
let batteryHealthState = batteryInfo.BatteryHealthState.GOOD;
console.info('batteryHealthState = ' + batteryHealthState);
expect(batteryHealthState == 1).assertTrue()
})
/**
* @tc.number battery_manager_js_1000
* @tc.name enum_health_state_test_overheat
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1600
* @tc.name enum_health_state_JSTest_overheat
* @tc.desc BatteryHealthState values Interface Test
*/
it('enum_health_state_test_overheat', 0, function () {
it('enum_health_state_JSTest_overheat', 0, function () {
let batteryHealthState = batteryInfo.BatteryHealthState.OVERHEAT;
console.info('batteryHealthState = ' + batteryHealthState);
expect(batteryHealthState == 2).assertTrue()
})
/**
* @tc.number battery_manager_js_1100
* @tc.name enum_health_state_test_overvoltage
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1610
* @tc.name enum_health_state_JSTest_overvoltage
* @tc.desc BatteryHealthState values Interface Test
*/
it('enum_health_state_test_overvoltage', 0, function () {
it('enum_health_state_JSTest_overvoltage', 0, function () {
let batteryHealthState = batteryInfo.BatteryHealthState.OVERVOLTAGE;
console.info('batteryHealthState = ' + batteryHealthState);
expect(batteryHealthState == 3).assertTrue()
})
/**
* @tc.number battery_manager_js_1200
* @tc.name enum_health_state_test_cold
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1620
* @tc.name enum_health_state_JSTest_cold
* @tc.desc BatteryHealthState values Interface Test
*/
it('enum_health_state_test_cold', 0, function () {
it('enum_health_state_JSTest_cold', 0, function () {
let batteryHealthState = batteryInfo.BatteryHealthState.COLD;
console.info('batteryHealthState = ' + batteryHealthState);
expect(batteryHealthState == 4).assertTrue()
})
/**
* @tc.number battery_manager_js_1300
* @tc.name enum_health_state_test_dead
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1630
* @tc.name enum_health_state_JSTest_dead
* @tc.desc BatteryHealthState values Interface Test
*/
it('enum_health_state_test_dead', 0, function () {
it('enum_health_state_JSTest_dead', 0, function () {
let batteryHealthState = batteryInfo.BatteryHealthState.DEAD;
console.info('batteryHealthState = ' + batteryHealthState);
expect(batteryHealthState == 5).assertTrue()
})
/**
* @tc.number battery_manager_js_1400
* @tc.name enum_charge_state_test_none
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1640
* @tc.name enum_charge_state_JSTest_none
* @tc.desc BatteryChargeState values Interface Test
*/
it('enum_charge_state_test_none', 0, function () {
it('enum_charge_state_JSTest_none', 0, function () {
let batteryChargeState = batteryInfo.BatteryChargeState.NONE;
console.info('batteryChargeState = ' + batteryChargeState);
expect(batteryChargeState == 0).assertTrue()
})
/**
* @tc.number battery_manager_js_1500
* @tc.name enum_charge_state_test_enable
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1650
* @tc.name enum_charge_state_JSTest_enable
* @tc.desc BatteryChargeState values Interface Test
*/
it('enum_charge_state_test_enable', 0, function () {
it('enum_charge_state_JSTest_enable', 0, function () {
let batteryChargeState = batteryInfo.BatteryChargeState.ENABLE;
console.info('batteryChargeState = ' + batteryChargeState);
expect(batteryChargeState == 1).assertTrue()
})
/**
* @tc.number battery_manager_js_1600
* @tc.name enum_charge_state_test_disable
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1660
* @tc.name enum_charge_state_JSTest_disable
* @tc.desc BatteryChargeState values Interface Test
*/
it('enum_charge_state_test_disable', 0, function () {
it('enum_charge_state_JSTest_disable', 0, function () {
let batteryChargeState = batteryInfo.BatteryChargeState.DISABLE;
console.info('batteryChargeState = ' + batteryChargeState);
expect(batteryChargeState == 2).assertTrue()
})
/**
* @tc.number battery_manager_js_1700
* @tc.name enum_charge_state_test_full
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1670
* @tc.name enum_charge_state_JSTest_full
* @tc.desc BatteryChargeState values Interface Test
*/
it('enum_charge_state_test_full', 0, function () {
it('enum_charge_state_JSTest_full', 0, function () {
let batteryChargeState = batteryInfo.BatteryChargeState.FULL;
console.info('batteryChargeState = ' + batteryChargeState);
expect(batteryChargeState == 3).assertTrue()
})
/**
* @tc.number battery_manager_js_1800
* @tc.name enum_plugged_type_test_none
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1680
* @tc.name enum_plugged_type_JSTest_none
* @tc.desc BatteryPluggedType values Interface Test
*/
it('enum_plugged_type_test_none', 0, function () {
it('enum_plugged_type_JSTest_none', 0, function () {
let batteryPluggedType = batteryInfo.BatteryPluggedType.NONE;
console.info('batteryPluggedType = ' + batteryPluggedType);
expect(batteryPluggedType == 0).assertTrue()
})
/**
* @tc.number battery_manager_js_1900
* @tc.name enum_plugged_type_test_ac
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1690
* @tc.name enum_plugged_type_JSTest_ac
* @tc.desc BatteryPluggedType values Interface Test
*/
it('enum_plugged_type_test_ac', 0, function () {
it('enum_plugged_type_JSTest_ac', 0, function () {
let batteryPluggedType = batteryInfo.BatteryPluggedType.AC;
console.info('batteryPluggedType = ' + batteryPluggedType);
expect(batteryPluggedType == 1).assertTrue()
})
/**
* @tc.number battery_manager_js_2000
* @tc.name enum_plugged_type_test_usb
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1700
* @tc.name enum_plugged_type_JSTest_usb
* @tc.desc BatteryPluggedType values Interface Test
*/
it('enum_plugged_type_test_usb', 0, function () {
it('enum_plugged_type_JSTest_usb', 0, function () {
let batteryPluggedType = batteryInfo.BatteryPluggedType.USB;
console.info('batteryPluggedType = ' + batteryPluggedType);
expect(batteryPluggedType == 2).assertTrue()
})
/**
* @tc.number battery_manager_js_2100
* @tc.name enum_plugged_type_test_wireless
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1710
* @tc.name enum_plugged_type_JSTest_wireless
* @tc.desc BatteryPluggedType values Interface Test
*/
it('enum_plugged_type_test_wireless', 0, function () {
it('enum_plugged_type_JSTest_wireless', 0, function () {
let batteryPluggedType = batteryInfo.BatteryPluggedType.WIRELESS;
console.info('batteryPluggedType = ' + batteryPluggedType);
expect(batteryPluggedType == 3).assertTrue()
})
/**
* @tc.number battery_manager_js_2200
* @tc.name brightness_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1720
* @tc.name brightness_JSTest
* @tc.desc Set Value Interface Test
*/
it('brightness_test', 0, function () {
it('brightness_JSTest', 0, function () {
brightness.setValue(10);
brightness.setValue(0);
brightness.setValue(255);
......@@ -265,11 +265,11 @@ describe('appInfoTest_battery_2', function () {
})
/**
* @tc.number battery_manager_js_2300
* @tc.name is_battery_present_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1730
* @tc.name is_battery_present_JSTest
* @tc.desc Battry Present Interface Test
*/
it('is_battery_present_test', 0, function () {
it('is_battery_present_JSTest', 0, function () {
let isBatteryPresent = batteryInfo.isBatteryPresent;
console.info('isBatteryPresent = ' + isBatteryPresent);
if (isBatteryPresent) {
......@@ -280,44 +280,44 @@ describe('appInfoTest_battery_2', function () {
})
/**
* @tc.number battery_manager_js_2400
* @tc.name nowCurrent_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1740
* @tc.name nowCurrent_JSTest
* @tc.desc Battry Present Interface Test
*/
it('nowCurrent_test', 0, function () {
it('nowCurrent_JSTest', 0, function () {
let nowCurrent = batteryInfo.nowCurrent;
console.info('nowCurrent = ' + nowCurrent);
expect((nowCurrent >= -20000 && nowCurrent <= 20000)).assertTrue();
})
/**
* @tc.number battery_manager_js_2500
* @tc.name remainingEnergy_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1750
* @tc.name remainingEnergy_JSTest
* @tc.desc Battry Present Interface Test
*/
it('remainingEnergy_test', 0, function () {
it('remainingEnergy_JSTest', 0, function () {
let remainingEnergy = batteryInfo.remainingEnergy;
console.info('remEnergy = ' + remainingEnergy);
expect(remainingEnergy >= 0).assertTrue();
})
/**
* @tc.number battery_manager_js_2600
* @tc.name totalEnergy_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1760
* @tc.name totalEnergy_JSTest
* @tc.desc Battry Present Interface Test
*/
it('totalEnergy_test', 0, function () {
it('totalEnergy_JSTest', 0, function () {
let totalEnergy = batteryInfo.totalEnergy;
console.info('totalenergy = ' + totalEnergy);
expect(totalEnergy >= 0).assertTrue();
})
/**
* @tc.number battery_manager_js_2700
* @tc.name batterylevel_test
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1780
* @tc.name batterylevel_JSTest
* @tc.desc Battry Present Interface Test
*/
it('batterylevel_test', 0, function () {
it('batterylevel_JSTest', 0, function () {
let batteryLevel = batteryInfo.batteryCapacityLevel;
console.info('batteryLevel = ' + batteryLevel);
expect(batteryLevel >= batteryInfo.BatteryCapacityLevel.LEVEL_NONE &&
......@@ -325,198 +325,198 @@ describe('appInfoTest_battery_2', function () {
})
/**
* @tc.number battery_manager_js_2800
* @tc.name enum_level_state_test_none
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1790
* @tc.name enum_level_state_JSTest_none
* @tc.desc Battry Present Interface Test
*/
it('enum_level_state_test_none', 0, function () {
it('enum_level_state_JSTest_none', 0, function () {
let batterylevelState = batteryInfo.BatteryCapacityLevel.LEVEL_NONE;
console.info('batterylevelState = ' + batterylevelState);
expect(batterylevelState == 0).assertTrue();
})
/**
* @tc.number battery_manager_js_2900
* @tc.name enum_level_state_test_full
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1800
* @tc.name enum_level_state_JSTest_full
* @tc.desc Battry Present Interface Test
*/
it('enum_level_state_test_full', 0, function () {
it('enum_level_state_JSTest_full', 0, function () {
let batteryLevelState = batteryInfo.BatteryCapacityLevel.LEVEL_FULL;
console.info('batteryLevelState = ' + batteryLevelState);
expect(batteryLevelState == 1).assertTrue();
})
/**
* @tc.number battery_manager_js_3000
* @tc.name enum_level_state_test_high
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1810
* @tc.name enum_level_state_JSTest_high
* @tc.desc Battry Present Interface Test
*/
it('enum_level_state_test_high', 0, function () {
it('enum_level_state_JSTest_high', 0, function () {
let batteryLevelState = batteryInfo.BatteryCapacityLevel.LEVEL_HIGH;
console.info('batteryLevelState = ' + batteryLevelState);
expect(batteryLevelState == 2).assertTrue();
})
/**
* @tc.number battery_manager_js_3100
* @tc.name enum_level_state_test_normal
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1820
* @tc.name enum_level_state_JSTest_normal
* @tc.desc Battry Present Interface Test
*/
it('enum_level_state_test_normal', 0, function () {
it('enum_level_state_JSTest_normal', 0, function () {
let batteryLevelState = batteryInfo.BatteryCapacityLevel.LEVEL_NORMAL;
console.info('batteryLevelState = ' + batteryLevelState);
expect(batteryLevelState == 3).assertTrue();
})
/**
* @tc.number battery_manager_js_3200
* @tc.name enum_level_state_test_low
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1830
* @tc.name enum_level_state_JSTest_low
* @tc.desc Battry Present Interface Test
*/
it('enum_level_state_test_low', 0, function () {
it('enum_level_state_JSTest_low', 0, function () {
let batteryLevelState = batteryInfo.BatteryCapacityLevel.LEVEL_LOW;
console.info('batteryLevelState = ' + batteryLevelState);
expect(batteryLevelState == 4).assertTrue();
})
/**
* @tc.number battery_manager_js_3300
* @tc.name enum_level_state_test_emergency
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1840
* @tc.name enum_level_state_JSTest_emergency
* @tc.desc Battry Present Interface Test
*/
it('enum_level_state_test_emergency', 0, function () {
it('enum_level_state_JSTest_emergency', 0, function () {
let batteryLevelState = batteryInfo.BatteryCapacityLevel.LEVEL_CRITICAL;
console.info('batteryLevelState = ' + batteryLevelState);
expect(batteryLevelState == 5).assertTrue();
})
/**
* @tc.number battery_manager_js_3400
* @tc.name battery_manager_js_3400
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1850
* @tc.name SUB_PowerSystem_BatteryManager_JSTest_3400
* @tc.desc Battry Present Interface Test
*/
it('remainingChargeTime_test', 0, function () {
it('remainingChargeTime_JSTest', 0, function () {
let remainingChargeTime = batteryInfo.estimatedRemainingChargeTime;
console.info('remainingChargeTime = ' + remainingChargeTime);
expect(remainingChargeTime >= 0).assertTrue();
})
/**
* @tc.number battery_manager_js_3500
* @tc.name battery_manager_js_3500
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1860
* @tc.name CommonEventBatteryChangedCode_EXTRA_SOC_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_SOC_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_SOC_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_SOC = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_SOC);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_SOC == 0).assertTrue();
})
/**
* @tc.number battery_manager_js_3600
* @tc.name battery_manager_js_3600
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1870
* @tc.name CommonEventBatteryChangedCode_EXTRA_VOLTAGE_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_VOLTAGE_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_VOLTAGE_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_VOLTAGE = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_VOLTAGE);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_VOLTAGE == 1).assertTrue();
})
/**
* @tc.number battery_manager_js_3700
* @tc.name battery_manager_js_3700
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1880
* @tc.name CommonEventBatteryChangedCode_EXTRA_TEMPERATURE_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_TEMPERATURE_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_TEMPERATURE_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_TEMPERATURE = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_TEMPERATURE);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_TEMPERATURE == 2).assertTrue();
})
/**
* @tc.number battery_manager_js_3800
* @tc.name battery_manager_js_3800
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1890
* @tc.name CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_HEALTH_STATE);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_HEALTH_STATE == 3).assertTrue();
})
/**
* @tc.number battery_manager_js_3900
* @tc.name battery_manager_js_3900
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1900
* @tc.name CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_PLUGGED_TYPE);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_PLUGGED_TYPE == 4).assertTrue();
})
/**
* @tc.number battery_manager_js_4000
* @tc.name battery_manager_js_4000
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1910
* @tc.name CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_MAX_CURRENT);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_MAX_CURRENT == 5).assertTrue();
})
/**
* @tc.number battery_manager_js_4100
* @tc.name battery_manager_js_4100
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1920
* @tc.name CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_MAX_VOLTAGE);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_MAX_VOLTAGE == 6).assertTrue();
})
/**
* @tc.number battery_manager_js_4200
* @tc.name battery_manager_js_4200
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1930
* @tc.name CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_CHARGE_STATE);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_CHARGE_STATE == 7).assertTrue();
})
/**
* @tc.number battery_manager_js_4300
* @tc.name battery_manager_js_4300
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1940
* @tc.name CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_CHARGE_COUNTER);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_CHARGE_COUNTER == 8).assertTrue();
})
/**
* @tc.number battery_manager_js_4400
* @tc.name battery_manager_js_4400
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1950
* @tc.name CommonEventBatteryChangedCode_EXTRA_PRESENT_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_PRESENT_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_PRESENT_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_PRESENT = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_PRESENT);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_PRESENT == 9).assertTrue();
})
/**
* @tc.number battery_manager_js_4500
* @tc.name battery_manager_js_4500
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_1960
* @tc.name CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY_JSTest
* @tc.desc Battry Present Interface Test
*/
it('CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY_test', 0, function () {
it('CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY_JSTest', 0, function () {
console.info('CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY = '
+ batteryInfo.CommonEventBatteryChangedCode.EXTRA_TECHNOLOGY);
expect(batteryInfo.CommonEventBatteryChangedCode.EXTRA_TECHNOLOGY == 10).assertTrue();
......
......@@ -43,7 +43,7 @@ describe('appInfoTest_battery_3', function () {
console.log("*************System Battery Unit Test Begin*************");
/**
* @tc.number system_battery_js_0100
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0010
* @tc.name get_status_success_test
* @tc.desc Battery acquisition kit
*/
......@@ -69,7 +69,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0200
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0020
* @tc.name get_status_success_null_test
* @tc.desc Battery acquisition kit
*/
......@@ -90,7 +90,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0300
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0030
* @tc.name get_status_success_empty_test
* @tc.desc Battery acquisition kit
*/
......@@ -110,7 +110,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0400
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0040
* @tc.name get_status_fail_null_test
* @tc.desc Battery acquisition kit
*/
......@@ -134,7 +134,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0500
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0050
* @tc.name get_status_fail_empty_test
* @tc.desc Battery acquisition kit
*/
......@@ -157,7 +157,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0600
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0060
* @tc.name get_status_complete_null_test
* @tc.desc Battery acquisition kit
*/
......@@ -178,7 +178,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0700
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0070
* @tc.name get_status_complete_empty_test
* @tc.desc Battery acquisition kit
*/
......@@ -198,7 +198,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0800
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0080
* @tc.name get_status_all_null
* @tc.desc Battery acquisition kit
*/
......@@ -213,7 +213,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number system_battery_js_0800
* @tc.number SUB_PowerSystem_BatteryManager_JSTest_0090
* @tc.name get_status_all_empty
* @tc.desc Battery acquisition kit
*/
......
......@@ -21,41 +21,41 @@ describe('appInfoTest_power_1', function () {
console.log("*************Power Unit Test Begin*************");
/**
* @tc.number power_js_001
* @tc.name power_is_screen_on_promise_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0010
* @tc.name Power_Is_Screnn_On_Promise_JSTest0010
* @tc.desc Checks whether the screen of a device is on or off
*/
it('power_is_screen_on_promise_test', 0, async function (done) {
power.wakeupDevice("power_is_screen_on_promise_test");
it('Power_Is_Screnn_On_Promise_JSTest0010', 0, async function (done) {
power.wakeupDevice("Power_Is_Screnn_On_Promise_JSTest0010");
power.isScreenOn()
.then(screenOn => {
console.info('power_is_screen_on_promise_test screenOn is ' + screenOn);
console.info('Power_Is_Screnn_On_Promise_JSTest0010 screenOn is ' + screenOn);
expect(screenOn).assertTrue();
console.info('power_is_screen_on_promise_test success');
console.info('Power_Is_Screnn_On_Promise_JSTest0010 success');
done();
})
.catch(error => {
console.log('power_is_screen_on_promise_test error: ' + error);
console.log('Power_Is_Screnn_On_Promise_JSTest0010 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number power_js_002
* @tc.name power_is_screen_on_callback_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0020
* @tc.name Power_Is_Screnn_On_Callback_JSTest0020
* @tc.desc Checks whether the screen of a device is on or off
*/
it('power_is_screen_on_callback_test', 0, async function (done) {
power.wakeupDevice("power_is_screen_on_callback_test");
it('Power_Is_Screnn_On_Callback_JSTest0020', 0, async function (done) {
power.wakeupDevice("Power_Is_Screnn_On_Callback_JSTest0020");
power.isScreenOn((error, screenOn) => {
if (typeof error === "undefined") {
console.info('power_is_screen_on_callback_test screenOn is ' + screenOn);
console.info('Power_Is_Screnn_On_Callback_JSTest0020 screenOn is ' + screenOn);
expect(screenOn).assertTrue();
console.info('power_is_screen_on_callback_test success');
console.info('Power_Is_Screnn_On_Callback_JSTest0020 success');
done();
} else {
console.log('power_is_screen_on_callback_test: ' + error);
console.log('Power_Is_Screnn_On_Callback_JSTest0020: ' + error);
expect().assertFail();
done();
}
......@@ -63,34 +63,34 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number power_js_003
* @tc.name power_wakeupDevice_test_string
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0030
* @tc.name Power_WakeupDevices_String_JSTest0030
* @tc.desc Try to wakeup the device and let screen on
*/
it('power_wakeupDevice_test_string', 0, async function (done) {
it('Power_WakeupDevices_String_JSTest0030', 0, async function (done) {
power.isScreenOn()
.then(screenOn => {
console.info('power_wakeupDevice_test_string: The current screenOn is ' + screenOn);
console.info('Power_WakeupDevices_String_JSTest0030: The current screenOn is ' + screenOn);
if (screenOn) {
power.suspendDevice();
}
})
.catch(error => {
console.log('power_wakeupDevice_test_string error: ' + error);
console.log('Power_WakeupDevices_String_JSTest0030 error: ' + error);
expect().assertFail();
done();
})
setTimeout(function(){
power.wakeupDevice("power_wakeupDevice_test_string");
power.wakeupDevice("Power_WakeupDevices_String_JSTest0030");
power.isScreenOn()
.then(screenOn => {
console.info('power_wakeupDevice_test_string: The current screenOn is ' + screenOn);
console.info('Power_WakeupDevices_String_JSTest0030: The current screenOn is ' + screenOn);
expect(screenOn).assertTrue();
console.info('power_wakeupDevice_test_string success');
console.info('Power_WakeupDevices_String_JSTest0030 success');
done();
})
.catch(error => {
console.log('power_wakeupDevice_test_string error: ' + error);
console.log('Power_WakeupDevices_String_JSTest0030 error: ' + error);
expect().assertFail();
done();
})
......@@ -98,35 +98,35 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number power_js_004
* @tc.name power_suspendDevice_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0040
* @tc.name Power_SuspendDevices_JSTest0040
* @tc.desc Try to suspend the device and let screen off
*/
it('power_suspendDevice_test', 0, async function (done) {
it('Power_SuspendDevices_JSTest0040', 0, async function (done) {
power.isScreenOn()
.then(screenOn => {
console.info('power_suspendDevice_test: The current screenOn is ' + screenOn);
console.info('Power_SuspendDevices_JSTest0040: The current screenOn is ' + screenOn);
if (!screenOn) {
power.wakeupDevice("power_suspendDevice_test");
power.wakeupDevice("Power_SuspendDevices_JSTest0040");
}
})
.catch(error => {
console.log('power_suspendDevice_test error: ' + error);
console.log('Power_SuspendDevices_JSTest0040 error: ' + error);
expect().assertFail();
done();
})
setTimeout(function(){
power.suspendDevice();
console.info('power_suspendDevice_test: SuspendDevice end');
console.info('Power_SuspendDevices_JSTest0040: SuspendDevice end');
power.isScreenOn()
.then(screenOn => {
console.info('power_suspendDevice_test: The current screenOn is ' + screenOn);
console.info('Power_SuspendDevices_JSTest0040: The current screenOn is ' + screenOn);
expect(screenOn).assertFalse();
console.info('power_suspendDevice_test success');
console.info('Power_SuspendDevices_JSTest0040 success');
done();
})
.catch(error => {
console.log('power_suspendDevice_test error: ' + error);
console.log('Power_SuspendDevices_JSTest0040 error: ' + error);
expect().assertFail();
done();
})
......@@ -134,37 +134,37 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number power_js_005
* @tc.name power_set_power_mode_promise
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0050
* @tc.name Power_Get_PowerMode_Callback_JSTest0050
* @tc.desc Get The mode the device
*/
it('power_get_power_mode_promise', 0, async function (done) {
it('Power_Get_PowerMode_Callback_JSTest0050', 0, async function (done) {
power.getPowerMode()
.then(powerMode => {
console.info('power_get_set_power_mode_promise power mode is ' + powerMode);
console.info('Power_Get_PowerMode_Callback_JSTest0050 power mode is ' + powerMode);
expect(powerMode >= 600 && powerMode <= 603).assertTrue();
done();
})
.catch(error => {
console.log('power_get_set_power_mode_promise error: ' + error);
console.log('Power_Get_PowerMode_Callback_JSTest0050 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number power_js_006
* @tc.name power_get_power_mode_callback
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0060
* @tc.name Power_Get_PowerMode_Promise_JSTest0060
* @tc.desc Get The mode the device
*/
it('power_get_power_mode_callback', 0, async function (done) {
it('Power_Get_PowerMode_Promise_JSTest0060', 0, async function (done) {
power.getPowerMode((error, powerMode) => {
if (typeof error === "undefined") {
console.info('power_power_mode_callback power mode is ' + powerMode);
console.info('Power_Get_PowerMode_Promise_JSTest0060 power mode is ' + powerMode);
expect(powerMode >= 600 && powerMode <= 603).assertTrue();
done();
} else {
console.log('power_get_power_mode_callback: ' + error);
console.log('Power_Get_PowerMode_Promise_JSTest0060: ' + error);
expect().assertFail();
done();
}
......@@ -172,44 +172,44 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number power_js_007
* @tc.name power_device_power_mode_MODE_NORMAL
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0070
* @tc.name Power_Device_Power_Mode_MODENORMAL_JSTest0070
* @tc.desc Get device power mode MODE_NORMAL
*/
it('power_device_power_mode_normal', 0, function () {
it('Power_Device_Power_Mode_MODENORMAL_JSTest0070', 0, function () {
let devicePowerMode = power.DevicePowerMode.MODE_NORMAL;
console.info('MODE_NORMAL = ' + devicePowerMode);
expect(devicePowerMode === 600).assertTrue();
})
/**
* @tc.number power_js_008
* @tc.name power_device_power_mode_MODE_POWER_SAVE
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0080
* @tc.name Power_Device_Power_Mode_MODEPOWERSAVE_JSTest0080
* @tc.desc Get device power mode MODE_POWER_SAVE
*/
it('power_device_power_mode_power_save', 0, function () {
it('Power_Device_Power_Mode_MODEPOWERSAVE_JSTest0080', 0, function () {
let devicePowerMode = power.DevicePowerMode.MODE_POWER_SAVE;
console.info('MODE_POWER_SAVE = ' + devicePowerMode);
expect(devicePowerMode === 601).assertTrue();
})
/**
* @tc.number power_js_009
* @tc.name power_device_power_mode_MODE_PERFORMANCE
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0090
* @tc.name Power_Device_pPower_Mode_MODEPERFORMANCE_JSTest0090
* @tc.desc Get device power mode MODE_PERFORMANCE
*/
it('power_device_power_mode_performance', 0, function () {
it('Power_Device_pPower_Mode_MODEPERFORMANCE_JSTest0090', 0, function () {
let devicePowerMode = power.DevicePowerMode.MODE_PERFORMANCE;
console.info('MODE_PERFORMANCE = ' + devicePowerMode);
expect(devicePowerMode === 602).assertTrue();
})
/**
* @tc.number power_js_010
* @tc.name power_device_power_mode_MODE_EXTREME_POWER_SAVE
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0100
* @tc.name Power_Device_Power_Mode_MODE_EXTREME_POWER_SAVE_JSTest0100
* @tc.desc Get device power mode MODE_EXTREME_POWER_SAVE
*/
it('power_device_power_mode_extreme_power_save', 0, function () {
it('Power_Device_Power_Mode_MODE_EXTREME_POWER_SAVE_JSTest0100', 0, function () {
let devicePowerMode = power.DevicePowerMode.MODE_EXTREME_POWER_SAVE;
console.info('MODE_EXTREME_POWER_SAVE = ' + devicePowerMode);
expect(devicePowerMode === 603).assertTrue();
......
......@@ -21,46 +21,46 @@ describe('appInfoTest_power_2', function () {
console.log("*************RunningLock Unit Test Begin*************");
/**
* @tc.number running_lock_js_001
* @tc.name create_running_lock_promise_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0110
* @tc.name Create_Running_Lock_Promise_JSTest0010
* @tc.desc Create running lock
*/
it('create_running_lock_promise_test', 0, async function (done) {
it('Create_Running_Lock_Promise_JSTest0010', 0, async function (done) {
runningLock.createRunningLock("running_lock_test_1", runningLock.RunningLockType.BACKGROUND)
.then(runninglock => {
expect(runninglock !== null).assertTrue();
console.info('create_running_lock_promise_test success');
console.info('Create_Running_Lock_Promise_JSTest0010 success');
done();
})
.catch(error => {
console.log('create_running_lock_promise_test error: ' + error);
console.log('Create_Running_Lock_Promise_JSTest0010 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number running_lock_js_002
* @tc.name create_running_lock_callback_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0120
* @tc.name Create_Running_Lock_CallBack_JSTest0020
* @tc.desc Create running lock
*/
it('create_running_lock_callback_test', 0, async function (done) {
it('Create_Running_Lock_CallBack_JSTest0020', 0, async function (done) {
runningLock.createRunningLock("running_lock_test_2", runningLock.RunningLockType.BACKGROUND,
(error, runninglock) => {
if (typeof error === "undefined") {
console.info('create_running_lock_callback_test: runningLock is ' + runninglock);
console.info('Create_Running_Lock_CallBack_JSTest0020: runningLock is ' + runninglock);
expect(runninglock !== null).assertTrue();
let used = runninglock.isUsed();
console.info('create_running_lock_callback_test is used: ' + used);
console.info('Create_Running_Lock_CallBack_JSTest0020 is used: ' + used);
expect(used).assertFalse();
runninglock.lock(500);
used = runninglock.isUsed();
console.info('after lock create_running_lock_callback_test is used: ' + used);
console.info('after lock Create_Running_Lock_CallBack_JSTest0020 is used: ' + used);
expect(used).assertTrue();
console.info('create_running_lock_callback_test success');
console.info('Create_Running_Lock_CallBack_JSTest0020 success');
done();
} else {
console.log('create_running_lock_callback_test: ' + error);
console.log('Create_Running_Lock_CallBack_JSTest0020: ' + error);
expect().assertFail();
done();
}
......@@ -68,113 +68,113 @@ describe('appInfoTest_power_2', function () {
})
/**
* @tc.number running_lock_js_003
* @tc.name running_lock_lock_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0130
* @tc.name Running_Lock_Lock_JSTest0030
* @tc.desc Prevents the system from hibernating and sets the lock duration
*/
it('running_lock_lock_test', 0, async function (done) {
it('Running_Lock_Lock_JSTest0030', 0, async function (done) {
runningLock.createRunningLock("running_lock_test_3", runningLock.RunningLockType.BACKGROUND)
.then(runninglock => {
expect(runninglock !== null).assertTrue();
let used = runninglock.isUsed();
console.info('running_lock_lock_test is used: ' + used);
console.info('Running_Lock_Lock_JSTest0030 is used: ' + used);
expect(used).assertFalse();
runninglock.lock(500);
used = runninglock.isUsed();
console.info('after lock running_lock_lock_test is used: ' + used);
console.info('after lock Running_Lock_Lock_JSTest0030 is used: ' + used);
expect(used).assertTrue();
console.info('running_lock_lock_test success');
console.info('Running_Lock_Lock_JSTest0030 success');
done();
})
.catch(error => {
console.log('running_lock_lock_test error: ' + error);
console.log('Running_Lock_Lock_JSTest0030 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number running_lock_js_004
* @tc.name running_lock_lock_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0140
* @tc.name Running_Lock_used_JSTest0040
* @tc.desc Checks whether a lock is held or in use
*/
it('running_lock_isused_test', 0, async function (done) {
it('Running_Lock_used_JSTest0040', 0, async function (done) {
runningLock.createRunningLock("running_lock_test_4", runningLock.RunningLockType.BACKGROUND)
.then(runninglock => {
expect(runninglock !== null).assertTrue();
let used = runninglock.isUsed();
console.info('running_lock_isused_test used: ' + used);
console.info('Running_Lock_used_JSTest0040 used: ' + used);
expect(used).assertFalse();
console.info('running_lock_isused_test success');
console.info('Running_Lock_used_JSTest0040 success');
done();
})
.catch(error => {
console.log('running_lock_isused_test error: ' + error);
console.log('Running_Lock_used_JSTest0040 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number running_lock_js_005
* @tc.name running_lock_unlock_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0150
* @tc.name Running_Lock_Unlock_JSTest0050
* @tc.desc Release running lock
*/
it('running_lock_unlock_test', 0, async function (done) {
it('Running_Lock_Unlock_JSTest0050', 0, async function (done) {
runningLock.createRunningLock("running_lock_test_5", runningLock.RunningLockType.BACKGROUND)
.then(runninglock => {
expect(runninglock !== null).assertTrue();
let used = runninglock.isUsed();
console.info('running_lock_unlock_test is used: ' + used);
console.info('Running_Lock_Unlock_JSTest0050 is used: ' + used);
expect(used).assertFalse();
runninglock.lock(500);
used = runninglock.isUsed();
console.info('after lock running_lock_unlock_test is used: ' + used);
console.info('after lock Running_Lock_Unlock_JSTest0050 is used: ' + used);
expect(used).assertTrue();
runninglock.unlock();
used = runninglock.isUsed();
console.info('after unlock running_lock_unlock_test is used: ' + used);
console.info('after unlock Running_Lock_Unlock_JSTest0050 is used: ' + used);
expect(used).assertFalse();
console.info('running_lock_unlock_test success');
console.info('Running_Lock_Unlock_JSTest0050 success');
done();
})
.catch(error => {
console.log('running_lock_unlock_test error: ' + error);
console.log('Running_Lock_Unlock_JSTest0050 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number running_lock_js_006
* @tc.name enum_runningLock_type_background_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0160
* @tc.name Enum_RunningLock_Type_Background_JSTest0060
* @tc.desc The lock type is BACKGROUND
*/
it('enum_runningLock_type_background_test', 0, function () {
it('Enum_RunningLock_Type_Background_JSTest0060', 0, function () {
let runningLockType = runningLock.RunningLockType.BACKGROUND;
console.info('runningLockType = ' + runningLockType);
expect(runningLockType == 1).assertTrue();
console.info('enum_runningLock_type_background_test success');
console.info('Enum_RunningLock_Type_Background_JSTest0060 success');
})
/**
* @tc.number running_lock_js_007
* @tc.name enum_runningLock_type_proximityscreencontrol_test
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0170
* @tc.name Enum_RunningLock_Type_Proximityscreencontrol_JSTest0070
* @tc.desc The lock type is PROXIMITY_SCREEN_CONTROL
*/
it('enum_runningLock_type_proximityscreencontrol_test', 0, function () {
it('Enum_RunningLock_Type_Proximityscreencontrol_JSTest0070', 0, function () {
let runningLockType = runningLock.RunningLockType.PROXIMITY_SCREEN_CONTROL;
console.info('runningLockType = ' + runningLockType);
expect(runningLockType == 2).assertTrue();
console.info('enum_runningLock_type_proximityscreencontrol_test success');
console.info('Enum_RunningLock_Type_Proximityscreencontrol_JSTest0070 success');
})
/**
* @tc.number running_lock_js_008
* @tc.name is_runninglock_type_supported_promise_test_1
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0180
* @tc.name Is_Runninglock_Type_Supported_Promise_Test1_JSTest0080
* @tc.desc Checks whether the specified RunningLockType is supported.
*/
it('is_runninglock_type_supported_promise_test_1', 0, async function (done) {
it('Is_Runninglock_Type_Supported_Promise_Test1_JSTest0080', 0, async function (done) {
runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.PROXIMITY_SCREEN_CONTROL)
.then(supported => {
console.info('is_runninglock_type_supported_test_1 PROXIMITY_SCREEN_CONTROL supported is ' + supported);
......@@ -190,39 +190,39 @@ describe('appInfoTest_power_2', function () {
})
/**
* @tc.number running_lock_js_009
* @tc.name is_runninglock_type_supported_promise_test_2
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0190
* @tc.name Is_Runninglock_Type_Supported_Promise_Test2_JSTest0090
* @tc.desc Checks whether the specified RunningLockType is supported.
*/
it('is_runninglock_type_supported_promise_test_2', 0, async function (done) {
it('Is_Runninglock_Type_Supported_Promise_Test2_JSTest0090', 0, async function (done) {
runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND)
.then(supported => {
console.info('is_runninglock_type_supported_promise_test_2 BACKGROUND supported is ' + supported);
console.info('Is_Runninglock_Type_Supported_Promise_Test2 BACKGROUND supported is ' + supported);
expect(supported).assertTrue();
console.info('is_runninglock_type_supported_promise_test_2 success');
console.info('Is_Runninglock_Type_Supported_Promise_Test2 success');
done();
})
.catch(error => {
console.log('is_runninglock_type_supported_promise_test_2 error: ' + error);
console.log('Is_Runninglock_Type_Supported_Promise_Test2 error: ' + error);
expect().assertFail();
done();
})
})
/**
* @tc.number running_lock_js_010
* @tc.name is_runninglock_type_supported_callback_test_3
* @tc.number SUB_PowerSystem_PowerManager_JSTest_0200
* @tc.name Is_Runninglock_Type_Supported_Callback_test3_JSTest0100
* @tc.desc Checks whether the specified RunningLockType is supported.
*/
it('is_runninglock_type_supported_callback_test_3', 0, async function (done) {
it('Is_Runninglock_Type_Supported_Callback_test3_JSTest0100', 0, async function (done) {
runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND, (error, supported) => {
if (typeof error === "undefined") {
console.info('is_runninglock_type_supported_callback_test_3 BACKGROUND supported is ' + supported);
console.info('Is_Runninglock_Type_Supported_Callback_test3_JSTest supported is ' + supported);
expect(supported).assertTrue();
console.info('is_runninglock_type_supported_callback_test_3 success');
console.info('Is_Runninglock_Type_Supported_Callback_test3_JSTest success');
done();
} else {
console.log('is_runninglock_type_supported_callback_test_3: ' + error);
console.log('Is_Runninglock_Type_Supported_Callback_test3_JSTest: ' + error);
expect().assertFail();
done();
}
......
......@@ -40,11 +40,11 @@ describe('appInfoTest_thermal_2', function () {
function test1() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_001
* @tc.name Thermal_001
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0010
* @tc.name Thermal_JSTest0010
* @tc.desc Thermal acquisition kit
*/
it('Thermal_001', 0, async function (done) {
it('Thermal_JSTest0010', 0, async function (done) {
console.info("enter");
await new Promise((resolve, reject) => {
setTimeout(() => {
......@@ -61,11 +61,11 @@ function test1() {
function test2() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_002
* @tc.name Thermal_002
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0020
* @tc.name Thermal_JSTest0020
* @tc.desc Thermal acquisition kit
*/
it('Thermal_002', 0, async function (done) {
it('Thermal_JSTest0020', 0, async function (done) {
await new Promise((resolve, reject) => {
setTimeout(() => {
let warm = thermal.getThermalLevel();
......@@ -81,11 +81,11 @@ function test2() {
function test3() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_003
* @tc.name Thermal_003
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0030
* @tc.name Thermal_JSTest0030
* @tc.desc Thermal acquisition kit
*/
it('Thermal_003', 0, async function (done) {
it('Thermal_JSTest0030', 0, async function (done) {
await new Promise((resolve, reject) => {
setTimeout(() => {
let hot = thermal.getThermalLevel();
......@@ -101,11 +101,11 @@ function test3() {
function test4() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_004
* @tc.name Thermal_004
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0040
* @tc.name Thermal_JSTest0040
* @tc.desc Thermal acquisition kit
*/
it('Thermal_004', 0, async function (done) {
it('Thermal_JSTest0040', 0, async function (done) {
await new Promise((resolve, reject) => {
setTimeout(() => {
let overheated = thermal.getThermalLevel();
......@@ -122,11 +122,11 @@ function test4() {
function test5() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_005
* @tc.name Thermal_005
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0050
* @tc.name Thermal_JSTest0050
* @tc.desc Thermal acquisition kit
*/
it('Thermal_005', 0, async function (done) {
it('Thermal_JSTest0050', 0, async function (done) {
await new Promise((resolve, reject) => {
setTimeout(() => {
let warning = thermal.getThermalLevel();
......@@ -142,11 +142,11 @@ function test5() {
function test6() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_006
* @tc.name Thermal_006
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0060
* @tc.name Thermal_JSTest0060
* @tc.desc Thermal acquisition kit
*/
it('Thermal_006', 0, async function (done) {
it('Thermal_JSTest0060', 0, async function (done) {
await new Promise((resolve, reject) => {
setTimeout(() => {
let emergency = thermal.getThermalLevel();
......@@ -163,11 +163,11 @@ function test6() {
function test7() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_007
* @tc.name Thermal_007
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0070
* @tc.name Thermal_JSTest0070
* @tc.desc Thermal acquisition kit
*/
it('Thermal_007', 0, async function (done) {
it('Thermal_JSTest0070', 0, async function (done) {
thermal.subscribeThermalLevel((cool) => {
console.info("warm level is: " + cool);
expect(cool >= thermal.ThermalLevel.COOL && cool <= thermal.ThermalLevel.EMERGENCY).assertTrue();
......@@ -187,11 +187,11 @@ function test7() {
function test8() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_008
* @tc.name Thermal_008
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0080
* @tc.name Thermal_JSTest0080
* @tc.desc Thermal acquisition kit
*/
it('Thermal_008', 0, async function (done) {
it('Thermal_JSTest0080', 0, async function (done) {
thermal.subscribeThermalLevel((warm) => {
console.info("warm level is: " + warm);
expect(warm >= thermal.ThermalLevel.COOL && warm <= thermal.ThermalLevel.EMERGENCY).assertTrue();
......@@ -211,11 +211,11 @@ function test8() {
function test9() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_009
* @tc.name Thermal_009
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0090
* @tc.name Thermal_JSTest0090
* @tc.desc Thermal acquisition kit
*/
it('Thermal_009', 0, async function (done) {
it('Thermal_JSTest0090', 0, async function (done) {
thermal.subscribeThermalLevel((hot) => {
console.info("hot level is: " + hot);
expect(hot >= thermal.ThermalLevel.COOL && hot <= thermal.ThermalLevel.EMERGENCY).assertTrue();
......@@ -236,11 +236,11 @@ function test9() {
function test10() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_010
* @tc.name Thermal_010
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0100
* @tc.name Thermal_JSTest0100
* @tc.desc Thermal acquisition kit
*/
it('Thermal_010', 0, async function (done) {
it('Thermal_JSTest0100', 0, async function (done) {
thermal.subscribeThermalLevel((overheated) => {
console.info("overheated level is: " + overheated);
expect(overheated >= thermal.ThermalLevel.COOL &&
......@@ -261,11 +261,11 @@ function test10() {
function test11() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_011
* @tc.name Thermal_011
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0110
* @tc.name Thermal_JSTest0110
* @tc.desc Thermal acquisition kit
*/
it('Thermal_011', 0, async function (done) {
it('Thermal_JSTest0110', 0, async function (done) {
thermal.subscribeThermalLevel((warning) => {
console.info("warning level is: " + warning);
expect(warning >= thermal.ThermalLevel.COOL && warning <= thermal.ThermalLevel.EMERGENCY).assertTrue();
......@@ -285,11 +285,11 @@ function test11() {
function test12() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_012
* @tc.name Thermal_012
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0120
* @tc.name Thermal_JSTest0120
* @tc.desc Thermal acquisition kit
*/
it('Thermal_012', 0, async function (done) {
it('Thermal_JSTest0120', 0, async function (done) {
thermal.subscribeThermalLevel((emergency) => {
console.info("emergency level is: " + emergency);
expect(emergency >= thermal.ThermalLevel.COOL && emergency <= thermal.ThermalLevel.EMERGENCY).assertTrue();
......@@ -309,11 +309,11 @@ function test12() {
function test13() {
const MSEC_1000 = 1000;
/* @tc.number thermal_manager_js_013
* @tc.name Thermal_013
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0130
* @tc.name Thermal_JSTest0130
* @tc.desc Thermal acquisition kit
*/
it('Thermal_013', 0, async function (done) {
it('Thermal_JSTest0130', 0, async function (done) {
thermal.subscribeThermalLevel((cool) => {
console.info("cool level is: " + cool);
expect(cool >= thermal.ThermalLevel.COOL && cool <= thermal.ThermalLevel.EMERGENCY).assertTrue();
......
......@@ -27,7 +27,7 @@ describe('appInfoTest_thermal_1', function () {
function test14() {
/* @tc.number thermal_manager_js_014
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0010
* @tc.name Thermal_014
* @tc.desc Thermal acquisition kit
*/
......@@ -47,7 +47,7 @@ function test14() {
function test15() {
/* @tc.number thermal_manager_js_015
/* @tc.number USB_PowerSystem_ThermalManager_JSTest_0020
* @tc.name Thermal_015
* @tc.desc Thermal acquisition kit
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册