提交 0540f561 编写于 作者: N nan-xiansen

【startup_standard】【master】solve problematic cases

Signed-off-by: Nnan-xiansen <nanjinbin@huawei.com>
Change-Id: I13f1b060c4a79e093af8d503d1b80139e4723bfd
上级 fe3a4d30
...@@ -29,10 +29,11 @@ describe('DeviceInfoTest', function () { ...@@ -29,10 +29,11 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_001', 0, function () { it('device_info_test_001', 0, function () {
console.info('device_info_test_001 start'); console.info('device_info_test_001 start');
var deviceTypeInfo = deviceinfo.deviceType;
var ret = false; var ret = false;
console.info('AceApplication onCreate startup para getDeviceType ' + deviceTypeInfo); var deviceTypeInfo = deviceinfo.deviceType;
expect(deviceTypeInfo).assertEqual('default') console.info('the value of the deviceType is :' + deviceTypeInfo);
expect(deviceTypeInfo).assertInstanceOf('String');
if (deviceTypeInfo !== null) { if (deviceTypeInfo !== null) {
ret = true; ret = true;
} }
...@@ -50,12 +51,14 @@ describe('DeviceInfoTest', function () { ...@@ -50,12 +51,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_002', 0, function () { it('device_info_test_002', 0, function () {
console.info('device_info_test_002 start'); console.info('device_info_test_002 start');
var manufactureInfo = deviceinfo.manufacture;
var ret = false; var ret = false;
var manufactureInfo = deviceinfo.manufacture;
console.info('the value of the manufactureInfo is :' + manufactureInfo);
expect(manufactureInfo).assertInstanceOf('String');
if (manufactureInfo !== null){ if (manufactureInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceType is :' + manufactureInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('device_info_test_002 :PASS'); console.info('device_info_test_002 :PASS');
}) })
...@@ -69,12 +72,14 @@ describe('DeviceInfoTest', function () { ...@@ -69,12 +72,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_003', 0, function () { it('device_info_test_003', 0, function () {
console.info('testGetProductBrand01 start'); console.info('testGetProductBrand01 start');
var brandInfo = deviceinfo.brand;
var ret = false; var ret = false;
var brandInfo = deviceinfo.brand;
console.info('the value of the deviceinfo brand is :' + brandInfo);
expect(brandInfo).assertInstanceOf('String');
if (brandInfo !== null){ if (brandInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo brand is :' + brandInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetProductBrand01 :PASS'); console.info('testGetProductBrand01 :PASS');
}) })
...@@ -89,9 +94,11 @@ describe('DeviceInfoTest', function () { ...@@ -89,9 +94,11 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_004', 0, function () { it('device_info_test_004', 0, function () {
console.info('testGetMarketName01 start') console.info('testGetMarketName01 start')
var marketNameInfo = deviceinfo.marketName;
var ret = false; var ret = false;
var marketNameInfo = deviceinfo.marketName;
console.info('the value of the deviceinfo marketName is :' + marketNameInfo); console.info('the value of the deviceinfo marketName is :' + marketNameInfo);
expect(marketNameInfo).assertInstanceOf('String');
if(marketNameInfo !== null){ if(marketNameInfo !== null){
ret = true; ret = true;
} }
...@@ -109,12 +116,14 @@ describe('DeviceInfoTest', function () { ...@@ -109,12 +116,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_005', 0, function () { it('device_info_test_005', 0, function () {
console.info('testGetProductSeries01 start'); console.info('testGetProductSeries01 start');
var productSeriesInfo = deviceinfo.productSeries;
var ret = false; var ret = false;
var productSeriesInfo = deviceinfo.productSeries;
console.info('the value of the deviceinfo productSeries is :' + productSeriesInfo);
expect(productSeriesInfo).assertInstanceOf('String');
if(productSeriesInfo !== null){ if(productSeriesInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo productSeries is :' + productSeriesInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetProductSeries01 :PASS'); console.info('testGetProductSeries01 :PASS');
}) })
...@@ -129,12 +138,14 @@ describe('DeviceInfoTest', function () { ...@@ -129,12 +138,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_006', 0, function () { it('device_info_test_006', 0, function () {
console.info('testGetProductModel01 start'); console.info('testGetProductModel01 start');
var productModelInfo = deviceinfo.productModel;
var ret = false; var ret = false;
var productModelInfo = deviceinfo.productModel;
console.info('the value of the deviceinfo productModel is :' + productModelInfo);
expect(productModelInfo).assertInstanceOf('String');
if(productModelInfo !== null){ if(productModelInfo !== null){
ret =true; ret =true;
} }
console.info('the value of the deviceinfo productModel is :' + productModelInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetProductModel01 :PASS'); console.info('testGetProductModel01 :PASS');
}) })
...@@ -149,12 +160,14 @@ describe('DeviceInfoTest', function () { ...@@ -149,12 +160,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_007', 0, function () { it('device_info_test_007', 0, function () {
console.info('testGetSoftwareModel01 start'); console.info('testGetSoftwareModel01 start');
var softwareModelInfo = deviceinfo.softwareModel;
var ret = false; var ret = false;
var softwareModelInfo = deviceinfo.softwareModel;
console.info('the value of the deviceinfo softwareModel is :' + softwareModelInfo);
expect(softwareModelInfo).assertInstanceOf('String');
if(softwareModelInfo !== null){ if(softwareModelInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo softwareModel is :' + softwareModelInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSoftwareModel01 :PASS'); console.info('testGetSoftwareModel01 :PASS');
}) })
...@@ -169,12 +182,14 @@ describe('DeviceInfoTest', function () { ...@@ -169,12 +182,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_008', 0, function () { it('device_info_test_008', 0, function () {
console.info('testGetHardWareModel01 start'); console.info('testGetHardWareModel01 start');
var hardwareModelInfo = deviceinfo.hardwareModel;
var ret = false; var ret = false;
var hardwareModelInfo = deviceinfo.hardwareModel;
console.info('the value of the deviceinfo hardwareModel is :' + hardwareModelInfo);
expect(hardwareModelInfo).assertInstanceOf('String');
if(hardwareModelInfo !== null){ if(hardwareModelInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo hardwareModel is :' + hardwareModelInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetHardWareModel01 :PASS'); console.info('testGetHardWareModel01 :PASS');
}) })
...@@ -189,12 +204,14 @@ describe('DeviceInfoTest', function () { ...@@ -189,12 +204,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_009', 0, function () { it('device_info_test_009', 0, function () {
console.info('testGetHardWareProfile01 start'); console.info('testGetHardWareProfile01 start');
var hardwareProfileInfo = deviceinfo.hardwareProfile;
var ret = false; var ret = false;
var hardwareProfileInfo = deviceinfo.hardwareProfile;
console.info('the value of the deviceinfo hardwareProfile is :' + hardwareProfileInfo);
expect(hardwareProfileInfo).assertInstanceOf('String');
if(hardwareProfileInfo !== null){ if(hardwareProfileInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo hardwareProfile is :' + hardwareProfileInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetHardWareProfile01 :PASS'); console.info('testGetHardWareProfile01 :PASS');
}) })
...@@ -209,12 +226,14 @@ describe('DeviceInfoTest', function () { ...@@ -209,12 +226,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_010', 0, function () { it('device_info_test_010', 0, function () {
console.info('testGetSerial01 start'); console.info('testGetSerial01 start');
var serialInfo = deviceinfo.serial;
var ret = false; var ret = false;
var serialInfo = deviceinfo.serial;
console.info('the value of the deviceinfo serial is :' + serialInfo);
expect(serialInfo).assertInstanceOf('String');
if(serialInfo !== null){ if(serialInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo serial is :' + serialInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSerial01 :PASS'); console.info('testGetSerial01 :PASS');
}) })
...@@ -229,12 +248,14 @@ describe('DeviceInfoTest', function () { ...@@ -229,12 +248,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_011', 0, function () { it('device_info_test_011', 0, function () {
console.info('testGetBootLoaderVersion01 start'); console.info('testGetBootLoaderVersion01 start');
var bootloaderVersionInfo = deviceinfo.bootloaderVersion;
var ret = false; var ret = false;
var bootloaderVersionInfo = deviceinfo.bootloaderVersion;
console.info('the value of the deviceinfo bootloaderVersion is :' + bootloaderVersionInfo);
expect(bootloaderVersionInfo).assertInstanceOf('String');
if(bootloaderVersionInfo !== null){ if(bootloaderVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo bootloaderVersion is :' + bootloaderVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBootLoaderVersion01 :PASS') console.info('testGetBootLoaderVersion01 :PASS')
}) })
...@@ -249,12 +270,14 @@ describe('DeviceInfoTest', function () { ...@@ -249,12 +270,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_012', 0, function () { it('device_info_test_012', 0, function () {
console.info('testGetabiList01 start'); console.info('testGetabiList01 start');
var abiListInfo = deviceinfo.abiList;
var ret = false; var ret = false;
var abiListInfo = deviceinfo.abiList;
console.info('the value of the deviceinfo abiList is :' + abiListInfo);
expect(abiListInfo).assertInstanceOf('String');
if(abiListInfo !== null){ if(abiListInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo abiList is :' + abiListInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetabiList01 :PASS'); console.info('testGetabiList01 :PASS');
}) })
...@@ -269,12 +292,14 @@ describe('DeviceInfoTest', function () { ...@@ -269,12 +292,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_013', 0, function () { it('device_info_test_013', 0, function () {
console.info('testGetSecurityPatchTag01 start'); console.info('testGetSecurityPatchTag01 start');
var securityPatchTagInfo = deviceinfo.securityPatchTag;
var ret = false; var ret = false;
var securityPatchTagInfo = deviceinfo.securityPatchTag;
console.info('the value of the deviceinfo securityPatchTag is :' + securityPatchTagInfo);
expect(securityPatchTagInfo).assertInstanceOf('String');
if(securityPatchTagInfo !== null){ if(securityPatchTagInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo securityPatchTag is :' + securityPatchTagInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSecurityPatchTag01 :PASS'); console.info('testGetSecurityPatchTag01 :PASS');
}) })
...@@ -289,12 +314,14 @@ describe('DeviceInfoTest', function () { ...@@ -289,12 +314,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_014', 0, function () { it('device_info_test_014', 0, function () {
console.info('testGetDisplayVersion01 start'); console.info('testGetDisplayVersion01 start');
var displayVersionInfo = deviceinfo.displayVersion;
var ret = false; var ret = false;
var displayVersionInfo = deviceinfo.displayVersion;
console.info('the value of the deviceinfo displayVersion is :' + displayVersionInfo);
expect(displayVersionInfo).assertInstanceOf('String');
if(displayVersionInfo !== null){ if(displayVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo displayVersion is :' + displayVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetDisplayVersion01 :PASS'); console.info('testGetDisplayVersion01 :PASS');
}) })
...@@ -309,12 +336,14 @@ describe('DeviceInfoTest', function () { ...@@ -309,12 +336,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_015', 0, function () { it('device_info_test_015', 0, function () {
console.info('testGetIncrementalVersion01 start'); console.info('testGetIncrementalVersion01 start');
var incrementalVersionInfo = deviceinfo.incrementalVersion;
var ret = false; var ret = false;
var incrementalVersionInfo = deviceinfo.incrementalVersion;
console.info('the value of the deviceinfo incrementalVersion is :' + incrementalVersionInfo);
expect(incrementalVersionInfo).assertInstanceOf('String');
if(incrementalVersionInfo !== null){ if(incrementalVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo incrementalVersion is :' + incrementalVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetIncrementalVersion01 :PASS'); console.info('testGetIncrementalVersion01 :PASS');
}) })
...@@ -329,12 +358,14 @@ describe('DeviceInfoTest', function () { ...@@ -329,12 +358,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_016', 0, function () { it('device_info_test_016', 0, function () {
console.info('testGetOSReleaserType01 start'); console.info('testGetOSReleaserType01 start');
var osReleaseTypeInfo = deviceinfo.osReleaseType;
var ret = false; var ret = false;
var osReleaseTypeInfo = deviceinfo.osReleaseType;
console.info('the value of the deviceinfo osReleaseType is :' + osReleaseTypeInfo);
expect(osReleaseTypeInfo).assertInstanceOf('String');
if(osReleaseTypeInfo !== null){ if(osReleaseTypeInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo osReleaseType is :' + osReleaseTypeInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetOSReleaserType01 :PASS'); console.info('testGetOSReleaserType01 :PASS');
}) })
...@@ -349,12 +380,14 @@ describe('DeviceInfoTest', function () { ...@@ -349,12 +380,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_017', 0, function () { it('device_info_test_017', 0, function () {
console.info('testGetOSFullName01 start'); console.info('testGetOSFullName01 start');
var osFullNameInfo = deviceinfo.osFullName;
var ret = false; var ret = false;
var osFullNameInfo = deviceinfo.osFullName;
console.info('the value of the deviceinfo osFullName is :' + osFullNameInfo);
expect(osFullNameInfo).assertInstanceOf('String');
if(osFullNameInfo !== null){ if(osFullNameInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo osFullName is :' + osFullNameInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetOSFullName01 :PASS'); console.info('testGetOSFullName01 :PASS');
}) })
...@@ -369,12 +402,14 @@ describe('DeviceInfoTest', function () { ...@@ -369,12 +402,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_018', 0, function () { it('device_info_test_018', 0, function () {
console.info('testGetMajorVersion01 start'); console.info('testGetMajorVersion01 start');
var majorVersionInfo = deviceinfo.majorVersion;
var ret = false; var ret = false;
var majorVersionInfo = deviceinfo.majorVersion;
console.info('the value of the deviceinfo majorVersion is :' + majorVersionInfo);
expect(majorVersionInfo).assertInstanceOf('Number');
if(majorVersionInfo !== null){ if(majorVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo majorVersion is :' + majorVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetMajorVersion01 :PASS'); console.info('testGetMajorVersion01 :PASS');
}) })
...@@ -389,12 +424,14 @@ describe('DeviceInfoTest', function () { ...@@ -389,12 +424,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_019', 0, function () { it('device_info_test_019', 0, function () {
console.info('testGetSeniorVersion01 start'); console.info('testGetSeniorVersion01 start');
var seniorVersionInfo = deviceinfo.seniorVersion;
var ret = false; var ret = false;
var seniorVersionInfo = deviceinfo.seniorVersion;
console.info('the value of the deviceinfo seniorVersion is :' + seniorVersionInfo);
expect(seniorVersionInfo).assertInstanceOf('Number');
if(seniorVersionInfo !== null){ if(seniorVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo seniorVersion is :' + seniorVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSeniorVersion01 :PASS'); console.info('testGetSeniorVersion01 :PASS');
}) })
...@@ -409,12 +446,14 @@ describe('DeviceInfoTest', function () { ...@@ -409,12 +446,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_020', 0, function () { it('device_info_test_020', 0, function () {
console.info('testGetFeatureVersion01 start'); console.info('testGetFeatureVersion01 start');
var featureVersionInfo = deviceinfo.featureVersion;
var ret = false; var ret = false;
var featureVersionInfo = deviceinfo.featureVersion;
console.info('the value of the deviceinfo featureVersion is :' + featureVersionInfo);
expect(featureVersionInfo).assertInstanceOf('Number');
if(featureVersionInfo !== null){ if(featureVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo featureVersion is :' + featureVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetFeatureVersion01 :PASS'); console.info('testGetFeatureVersion01 :PASS');
}) })
...@@ -429,12 +468,14 @@ describe('DeviceInfoTest', function () { ...@@ -429,12 +468,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_021', 0, function () { it('device_info_test_021', 0, function () {
console.info('testGetBuildVersion01 start'); console.info('testGetBuildVersion01 start');
var buildVersionInfo = deviceinfo.buildVersion;
var ret = false; var ret = false;
var buildVersionInfo = deviceinfo.buildVersion;
console.info('the value of the deviceinfo buildVersion is :' + buildVersionInfo);
expect(buildVersionInfo).assertInstanceOf('Number');
if(buildVersionInfo !== null){ if(buildVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo buildVersion is :' + buildVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildVersion01 :PASS'); console.info('testGetBuildVersion01 :PASS');
}) })
...@@ -449,12 +490,14 @@ describe('DeviceInfoTest', function () { ...@@ -449,12 +490,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_022', 0, function () { it('device_info_test_022', 0, function () {
console.info('testGetSdkApiVersion01 start'); console.info('testGetSdkApiVersion01 start');
var sdkApiVersionInfo = deviceinfo.sdkApiVersion;
var ret = false; var ret = false;
var sdkApiVersionInfo = deviceinfo.sdkApiVersion;
console.info('the value of the deviceinfo sdkApiVersion is :' + sdkApiVersionInfo);
expect(sdkApiVersionInfo).assertInstanceOf('Number');
if(sdkApiVersionInfo !== null){ if(sdkApiVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo sdkApiVersion is :' + sdkApiVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSdkApiVersion01 :PASS'); console.info('testGetSdkApiVersion01 :PASS');
}) })
...@@ -468,13 +511,15 @@ describe('DeviceInfoTest', function () { ...@@ -468,13 +511,15 @@ describe('DeviceInfoTest', function () {
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('device_info_test_023', 0, function () { it('device_info_test_023', 0, function () {
console.info('testGetFirstApiVersion01 start') console.info('testGetFirstApiVersion01 start');
var firstApiVersionInfo = deviceinfo.firstApiVersion;
var ret = true; var ret = true;
var firstApiVersionInfo = deviceinfo.firstApiVersion;
console.info('the value of the deviceinfo firstApiVersion is :' + firstApiVersionInfo);
expect(firstApiVersionInfo).assertInstanceOf('Number');
if(firstApiVersionInfo !== null){ if(firstApiVersionInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo firstApiVersion is :' + firstApiVersionInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetFirstApiVersion01 :PASS'); console.info('testGetFirstApiVersion01 :PASS');
}) })
...@@ -489,12 +534,14 @@ describe('DeviceInfoTest', function () { ...@@ -489,12 +534,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_024', 0, function () { it('device_info_test_024', 0, function () {
console.info('testGetVersionId01 start'); console.info('testGetVersionId01 start');
var versionIdInfo = deviceinfo.versionId;
var ret = false; var ret = false;
var versionIdInfo = deviceinfo.versionId;
console.info('the value of the deviceinfo versionId is :' + versionIdInfo);
expect(versionIdInfo).assertInstanceOf('String');
if(versionIdInfo !== null){ if(versionIdInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo versionId is :' + versionIdInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetVersionId01 :PASS'); console.info('testGetVersionId01 :PASS');
}) })
...@@ -509,12 +556,14 @@ describe('DeviceInfoTest', function () { ...@@ -509,12 +556,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_025', 0, function () { it('device_info_test_025', 0, function () {
console.info('testGetBuildType01 start'); console.info('testGetBuildType01 start');
var buildTypeInfo = deviceinfo.buildType;
var ret = false; var ret = false;
var buildTypeInfo = deviceinfo.buildType;
console.info('the value of the deviceinfo buildType is :' + buildTypeInfo);
expect(buildTypeInfo).assertInstanceOf('String');
if(buildTypeInfo !== null){ if(buildTypeInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo buildType is :' + buildTypeInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildType01 :PASS'); console.info('testGetBuildType01 :PASS');
}) })
...@@ -529,12 +578,14 @@ describe('DeviceInfoTest', function () { ...@@ -529,12 +578,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_026', 0, function () { it('device_info_test_026', 0, function () {
console.info('testGetBuildUser01 start'); console.info('testGetBuildUser01 start');
var buildUserInfo = deviceinfo.buildUser;
var ret = true; var ret = true;
var buildUserInfo = deviceinfo.buildUser;
console.info('the value of the deviceinfo buildUser is :' + buildUserInfo);
expect(buildUserInfo).assertInstanceOf('String');
if(buildUserInfo !== null){ if(buildUserInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo buildUser is :' + buildUserInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildUser01 :PASS'); console.info('testGetBuildUser01 :PASS');
}) })
...@@ -549,12 +600,14 @@ describe('DeviceInfoTest', function () { ...@@ -549,12 +600,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_027', 0, function () { it('device_info_test_027', 0, function () {
console.info('testGetBuildHost01 start'); console.info('testGetBuildHost01 start');
var buildHostInfo = deviceinfo.buildHost;
var ret = false; var ret = false;
var buildHostInfo = deviceinfo.buildHost;
console.info('the value of the deviceinfo buildHost is :' + buildHostInfo);
expect(buildHostInfo).assertInstanceOf('String');
if(buildHostInfo !== null){ if(buildHostInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo buildHost is :' + buildHostInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildHost01 :PASS'); console.info('testGetBuildHost01 :PASS');
}) })
...@@ -569,12 +622,14 @@ describe('DeviceInfoTest', function () { ...@@ -569,12 +622,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_028', 0, function () { it('device_info_test_028', 0, function () {
console.info('testGetBuildTime01 start'); console.info('testGetBuildTime01 start');
var buildTimeInfo = deviceinfo.buildTime;
var ret = false; var ret = false;
var buildTimeInfo = deviceinfo.buildTime;
console.info('the value of the deviceinfo buildTime is :' + buildTimeInfo);
expect(buildTimeInfo).assertInstanceOf('String');
if(buildTimeInfo !== null){ if(buildTimeInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo buildTime is :' + buildTimeInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildTime01 :PASS'); console.info('testGetBuildTime01 :PASS');
}) })
...@@ -589,12 +644,14 @@ describe('DeviceInfoTest', function () { ...@@ -589,12 +644,14 @@ describe('DeviceInfoTest', function () {
*/ */
it('device_info_test_029', 0, function () { it('device_info_test_029', 0, function () {
console.info('testGetBuildRootHash01 start'); console.info('testGetBuildRootHash01 start');
var buildRootHashInfo = deviceinfo.buildRootHash;
var ret = false; var ret = false;
var buildRootHashInfo = deviceinfo.buildRootHash;
console.info('the value of the deviceinfo buildRootHash is :' + buildRootHashInfo);
expect(buildRootHashInfo).assertInstanceOf('String');
if(buildRootHashInfo !== null){ if(buildRootHashInfo !== null){
ret = true; ret = true;
} }
console.info('the value of the deviceinfo buildRootHash is :' + buildRootHashInfo);
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildRootHash01 :PASS'); console.info('testGetBuildRootHash01 :PASS');
}) })
...@@ -610,15 +667,10 @@ describe('DeviceInfoTest', function () { ...@@ -610,15 +667,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_030', 0, function () { it('device_info_test_030', 0, function () {
console.info('device_info_test_030 start'); console.info('device_info_test_030 start');
var deviceTypeInfo = deviceinfo.deviceType; var deviceTypeInfo = deviceinfo.deviceType;
var ret = false; console.info('the value of the deviceinfo deviceType is:' + deviceTypeInfo);
if(deviceTypeInfo !== null){
ret = true;
}
expect(deviceTypeInfo).assertEqual('default')
expect(ret).assertTrue();
let len = deviceTypeInfo.length let len = deviceTypeInfo.length
console.info('the value of the device type characters:' + len) console.info('the value of the device type characters:' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_030 :PASS') console.info('device_info_test_030 :PASS')
}) })
...@@ -634,14 +686,10 @@ describe('DeviceInfoTest', function () { ...@@ -634,14 +686,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_031', 0, function () { it('device_info_test_031', 0, function () {
console.info('device_info_test_031 start'); console.info('device_info_test_031 start');
var manufactureInfo = deviceinfo.manufacture; var manufactureInfo = deviceinfo.manufacture;
var ret = false; console.info('the value of the deviceinfo manufacture is :' + manufactureInfo);
if(manufactureInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = manufactureInfo.length let len = manufactureInfo.length
console.info('the value of the manufacture characters is :' + len) console.info('the value of the manufacture characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_031 :PASS') console.info('device_info_test_031 :PASS')
}) })
...@@ -657,14 +705,10 @@ describe('DeviceInfoTest', function () { ...@@ -657,14 +705,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_032', 0, function () { it('device_info_test_032', 0, function () {
console.info('device_info_test_032 start'); console.info('device_info_test_032 start');
var brandInfo = deviceinfo.brand; var brandInfo = deviceinfo.brand;
var ret = false; console.info('the value of the deviceinfo brand is :' + brandInfo);
if(brandInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = brandInfo.length let len = brandInfo.length
console.info('the value of the external product family name characters is :' + len) console.info('the value of the external product family name characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_032 :PASS') console.info('device_info_test_032 :PASS')
}) })
...@@ -680,14 +724,10 @@ describe('DeviceInfoTest', function () { ...@@ -680,14 +724,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_033', 0, function () { it('device_info_test_033', 0, function () {
console.info('device_info_test_033 start'); console.info('device_info_test_033 start');
var marketNameInfo = deviceinfo.marketName; var marketNameInfo = deviceinfo.marketName;
var ret = false; console.info('the value of the deviceinfo marketName is :' + marketNameInfo);
if(marketNameInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = marketNameInfo.length let len = marketNameInfo.length
console.info('the value of the product series characters is :' + len) console.info('the value of the product series characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_033 :PASS') console.info('device_info_test_033 :PASS')
}) })
...@@ -703,14 +743,10 @@ describe('DeviceInfoTest', function () { ...@@ -703,14 +743,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_034', 0, function () { it('device_info_test_034', 0, function () {
console.info('device_info_test_034 start'); console.info('device_info_test_034 start');
var productSeriesInfo = deviceinfo.productSeries; var productSeriesInfo = deviceinfo.productSeries;
var ret = false; console.info('the value of the deviceinfo productSeries is :' + productSeriesInfo);
if(productSeriesInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = productSeriesInfo.length let len = productSeriesInfo.length
console.info('the value of the product series characters is :' + len) console.info('the value of the product series characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_034 :PASS') console.info('device_info_test_034 :PASS')
}) })
...@@ -726,14 +762,10 @@ describe('DeviceInfoTest', function () { ...@@ -726,14 +762,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_035', 0, function () { it('device_info_test_035', 0, function () {
console.info('device_info_test_035 start'); console.info('device_info_test_035 start');
var productModelInfo = deviceinfo.productModel; var productModelInfo = deviceinfo.productModel;
var ret = false; console.info('the value of the deviceinfo productModel is :' + productModelInfo);
if(productModelInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = productModelInfo.length let len = productModelInfo.length
console.info('the value of the certified model characters is :' + len) console.info('the value of the certified model characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_035 :PASS') console.info('device_info_test_035 :PASS')
}) })
...@@ -749,14 +781,10 @@ describe('DeviceInfoTest', function () { ...@@ -749,14 +781,10 @@ describe('DeviceInfoTest', function () {
it('device_info_test_036', 0, function () { it('device_info_test_036', 0, function () {
console.info('device_info_test_036 start'); console.info('device_info_test_036 start');
var softwareModelInfo = deviceinfo.softwareModel; var softwareModelInfo = deviceinfo.softwareModel;
var ret = false; console.info('the value of the deviceinfo softwareModel is :' + softwareModelInfo);
if(softwareModelInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = softwareModelInfo.length let len = softwareModelInfo.length
console.info('the value of the internal software sub-model characters is :' + len) console.info('the value of the internal software sub-model characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_036 :PASS') console.info('device_info_test_036 :PASS')
}) })
...@@ -772,16 +800,12 @@ describe('DeviceInfoTest', function () { ...@@ -772,16 +800,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_037', 0, function () { it('device_info_test_037', 0, function () {
console.info('device_info_test_037 start'); console.info('device_info_test_037 start');
var hardwareModelInfo = deviceinfo.hardwareModel; var hardwareModelInfo = deviceinfo.hardwareModel;
var ret = false; console.info('the value of the deviceinfo hardwareModel is :' + hardwareModelInfo);
if(hardwareModelInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = hardwareModelInfo.length let len = hardwareModelInfo.length;
console.info('the value of the hardware version characters is :' + len) console.info('the value of the hardware version characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32)
console.info('device_info_test_037 :PASS') console.info('device_info_test_037 :PASS');
}) })
/** /**
...@@ -795,16 +819,12 @@ describe('DeviceInfoTest', function () { ...@@ -795,16 +819,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_038', 0, function () { it('device_info_test_038', 0, function () {
console.info('device_info_test_038 start'); console.info('device_info_test_038 start');
var hardwareProfileInfo = deviceinfo.hardwareProfile; var hardwareProfileInfo = deviceinfo.hardwareProfile;
var ret = false; console.info('the value of the deviceinfo hardwareProfile is :' + hardwareProfileInfo);
if(hardwareProfileInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = hardwareProfileInfo.length let len = hardwareProfileInfo.length;
console.info('the value of the hardware version characters is :' + len) console.info('the value of the hardware version characters is :' + len);
expect(len).assertLess(1000) expect(len).assertLess(1000);
console.info('device_info_test_038 :PASS') console.info('device_info_test_038 :PASS');
}) })
/** /**
...@@ -818,16 +838,12 @@ describe('DeviceInfoTest', function () { ...@@ -818,16 +838,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_039', 0, function () { it('device_info_test_039', 0, function () {
console.info('device_info_test_039 start'); console.info('device_info_test_039 start');
var serialInfo = deviceinfo.serial; var serialInfo = deviceinfo.serial;
var ret = false; console.info('the value of the deviceinfo serial is :' + serialInfo);
if(serialInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = serialInfo.length let len = serialInfo.length;
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len);
expect(len).assertLess(64) expect(len).assertLess(64);
console.info('device_info_test_039 :PASS') console.info('device_info_test_039 :PASS');
}) })
/** /**
...@@ -841,16 +857,12 @@ describe('DeviceInfoTest', function () { ...@@ -841,16 +857,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_040', 0, function () { it('device_info_test_040', 0, function () {
console.info('device_info_test_040 start'); console.info('device_info_test_040 start');
var displayVersionInfo = deviceinfo.displayVersion; var displayVersionInfo = deviceinfo.displayVersion;
var ret = false; console.info('the value of the deviceinfo displayVersion is :' + displayVersionInfo);
if(displayVersionInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = displayVersionInfo.length let len = displayVersionInfo.length;
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len);
expect(len).assertLess(64) expect(len).assertLess(64);
console.info('device_info_test_040 :PASS') console.info('device_info_test_040 :PASS');
}) })
/** /**
...@@ -864,16 +876,12 @@ describe('DeviceInfoTest', function () { ...@@ -864,16 +876,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_041', 0, function () { it('device_info_test_041', 0, function () {
console.info('device_info_test_041 start'); console.info('device_info_test_041 start');
var osFullNameInfo = deviceinfo.osFullName; var osFullNameInfo = deviceinfo.osFullName;
var ret = false; console.info('the value of the deviceinfo osFullName is :' + osFullNameInfo);
if(osFullNameInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = osFullNameInfo.length let len = osFullNameInfo.length;
console.info('the value of the operating system full name characters is :' + len) console.info('the value of the operating system full name characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(32);
console.info('device_info_test_041 :PASS') console.info('device_info_test_041 :PASS');
}) })
/** /**
...@@ -887,15 +895,11 @@ describe('DeviceInfoTest', function () { ...@@ -887,15 +895,11 @@ describe('DeviceInfoTest', function () {
it('device_info_test_042', 0, function () { it('device_info_test_042', 0, function () {
console.info('device_info_test_042 start'); console.info('device_info_test_042 start');
var versionIdInfo = deviceinfo.versionId; var versionIdInfo = deviceinfo.versionId;
var ret = false; console.info('the value of the deviceinfo versionId is :' + versionIdInfo);
if(versionIdInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = versionIdInfo.length let len = versionIdInfo.length;
console.info('the value of the operating system full name characters is :' + len) console.info('the value of the operating system full name characters is :' + len)
expect(len).assertLess(127) expect(len).assertLess(127);
console.info('device_info_test_042 :PASS') console.info('device_info_test_042 :PASS')
}) })
...@@ -910,12 +914,8 @@ describe('DeviceInfoTest', function () { ...@@ -910,12 +914,8 @@ describe('DeviceInfoTest', function () {
it('device_info_test_043', 0, function () { it('device_info_test_043', 0, function () {
console.info('device_info_test_043 start'); console.info('device_info_test_043 start');
var buildUserInfo = deviceinfo.buildUser; var buildUserInfo = deviceinfo.buildUser;
var ret = false; console.info('the value of the deviceinfo buildUser is :' + buildUserInfo);
if(buildUserInfo !== null){
ret = true;
}
console.info('the value of thebuildUser is :' + buildUserInfo);
expect(ret).assertTrue();
console.info('the value of the different build user of the same baseline code characters is :' + buildUserInfo.length); console.info('the value of the different build user of the same baseline code characters is :' + buildUserInfo.length);
expect(buildUserInfo.length).assertLess(32) expect(buildUserInfo.length).assertLess(32)
console.info('device_info_test_043 :PASS') console.info('device_info_test_043 :PASS')
...@@ -932,11 +932,7 @@ describe('DeviceInfoTest', function () { ...@@ -932,11 +932,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_044', 0, function () { it('device_info_test_044', 0, function () {
console.info('device_info_test_044 start'); console.info('device_info_test_044 start');
var buildHostInfo = deviceinfo.buildHost; var buildHostInfo = deviceinfo.buildHost;
var ret = false; console.info('the value of the deviceinfo buildHost is :' + buildHostInfo);
if(buildHostInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = buildHostInfo.length let len = buildHostInfo.length
console.info('the value of the different build host of the same baseline code characters is :' + len) console.info('the value of the different build host of the same baseline code characters is :' + len)
...@@ -955,17 +951,12 @@ describe('DeviceInfoTest', function () { ...@@ -955,17 +951,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_045', 0, function () { it('device_info_test_045', 0, function () {
console.info('device_info_test_045 start'); console.info('device_info_test_045 start');
var deviceTypeInfo = deviceinfo.deviceType; var deviceTypeInfo = deviceinfo.deviceType;
var ret = false; console.info('the value of the deviceinfo deviceType is :' + deviceTypeInfo);
if(deviceTypeInfo !== null){
ret = true;
}
expect(deviceTypeInfo).assertEqual('default')
expect(ret).assertTrue();
let len = deviceTypeInfo.length let len = deviceTypeInfo.length;
console.info('the value of the device type characters:' + len) console.info('the value of the device type characters:' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_045 :PASS') console.info('device_info_test_045 :PASS');
}) })
/** /**
...@@ -979,11 +970,7 @@ describe('DeviceInfoTest', function () { ...@@ -979,11 +970,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_046', 0, function () { it('device_info_test_046', 0, function () {
console.info('device_info_test_046 start'); console.info('device_info_test_046 start');
var manufactureInfo = deviceinfo.manufacture; var manufactureInfo = deviceinfo.manufacture;
var ret = false; console.info('the value of the deviceinfo manufacture is :' + manufactureInfo);
if(manufactureInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = manufactureInfo.length let len = manufactureInfo.length
console.info('the value of the manufacture characters is :' + len) console.info('the value of the manufacture characters is :' + len)
...@@ -1002,16 +989,12 @@ describe('DeviceInfoTest', function () { ...@@ -1002,16 +989,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_047', 0, function () { it('device_info_test_047', 0, function () {
console.info('device_info_test_047 start'); console.info('device_info_test_047 start');
var brandInfo = deviceinfo.brand; var brandInfo = deviceinfo.brand;
var ret = false; console.info('the value of the deviceinfo brand is :' + brandInfo);
if(brandInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = brandInfo.length let len = brandInfo.length;
console.info('the value of the external product family name characters is :' + len) console.info('the value of the external product family name characters is :' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_047 :PASS') console.info('device_info_test_047 :PASS');
}) })
/** /**
...@@ -1025,16 +1008,12 @@ describe('DeviceInfoTest', function () { ...@@ -1025,16 +1008,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_048', 0, function () { it('device_info_test_048', 0, function () {
console.info('device_info_test_048 start'); console.info('device_info_test_048 start');
var marketNameInfo = deviceinfo.marketName; var marketNameInfo = deviceinfo.marketName;
var ret = false; console.info('the value of the deviceinfo marketName is :' + marketNameInfo);
if(marketNameInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = marketNameInfo.length let len = marketNameInfo.length;
console.info('the value of the product series characters is :' + len) console.info('the value of the product series characters is :' + len)
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_048 :PASS') console.info('device_info_test_048 :PASS');
}) })
/** /**
...@@ -1048,16 +1027,12 @@ describe('DeviceInfoTest', function () { ...@@ -1048,16 +1027,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_049', 0, function () { it('device_info_test_049', 0, function () {
console.info('device_info_test_049 start'); console.info('device_info_test_049 start');
var productSeriesInfo = deviceinfo.productSeries; var productSeriesInfo = deviceinfo.productSeries;
var ret = false; console.info('the value of the deviceinfo productSeries is :' + productSeriesInfo);
if(productSeriesInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = productSeriesInfo.length let len = productSeriesInfo.length;
console.info('the value of the product series characters is :' + len) console.info('the value of the product series characters is :' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_049 :PASS') console.info('device_info_test_049 :PASS');
}) })
/** /**
...@@ -1071,11 +1046,7 @@ describe('DeviceInfoTest', function () { ...@@ -1071,11 +1046,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_050', 0, function () { it('device_info_test_050', 0, function () {
console.info('device_info_test_050 start'); console.info('device_info_test_050 start');
var productModelInfo = deviceinfo.productModel; var productModelInfo = deviceinfo.productModel;
var ret = false; console.info('the value of the deviceinfo productModel is :' + productModelInfo);
if(productModelInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = productModelInfo.length let len = productModelInfo.length
console.info('the value of the certified model characters is :' + len) console.info('the value of the certified model characters is :' + len)
...@@ -1094,11 +1065,7 @@ describe('DeviceInfoTest', function () { ...@@ -1094,11 +1065,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_051', 0, function () { it('device_info_test_051', 0, function () {
console.info('device_info_test_036 start'); console.info('device_info_test_036 start');
var softwareModelInfo = deviceinfo.softwareModel; var softwareModelInfo = deviceinfo.softwareModel;
var ret = false; console.info('the value of the deviceinfo softwareModel is :' + softwareModelInfo);
if(softwareModelInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = softwareModelInfo.length let len = softwareModelInfo.length
console.info('the value of the internal software sub-model characters is :' + len) console.info('the value of the internal software sub-model characters is :' + len)
...@@ -1117,16 +1084,12 @@ describe('DeviceInfoTest', function () { ...@@ -1117,16 +1084,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_052', 0, function () { it('device_info_test_052', 0, function () {
console.info('device_info_test_052 start'); console.info('device_info_test_052 start');
var hardwareModelInfo = deviceinfo.hardwareModel; var hardwareModelInfo = deviceinfo.hardwareModel;
var ret = false; console.info('the value of the deviceinfo hardwareModel is :' + hardwareModelInfo);
if(hardwareModelInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = hardwareModelInfo.length let len = hardwareModelInfo.length;
console.info('the value of the hardware version characters is :' + len) console.info('the value of the hardware version characters is :' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_052 :PASS') console.info('device_info_test_052 :PASS');
}) })
/** /**
...@@ -1140,16 +1103,12 @@ describe('DeviceInfoTest', function () { ...@@ -1140,16 +1103,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_053', 0, function () { it('device_info_test_053', 0, function () {
console.info('device_info_test_053 start'); console.info('device_info_test_053 start');
var hardwareProfileInfo = deviceinfo.hardwareProfile; var hardwareProfileInfo = deviceinfo.hardwareProfile;
var ret = false; console.info('the value of the deviceinfo hardwareProfile is :' + hardwareProfileInfo);
if(hardwareProfileInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = hardwareProfileInfo.length let len = hardwareProfileInfo.length;
console.info('the value of the hardware version characters is :' + len) console.info('the value of the hardware version characters is :' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_053 :PASS') console.info('device_info_test_053 :PASS');
}) })
/** /**
...@@ -1163,16 +1122,12 @@ describe('DeviceInfoTest', function () { ...@@ -1163,16 +1122,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_054', 0, function () { it('device_info_test_054', 0, function () {
console.info('device_info_test_054 start'); console.info('device_info_test_054 start');
var serialInfo = deviceinfo.serial; var serialInfo = deviceinfo.serial;
var ret = false; console.info('the value of the deviceinfo serial is :' + serialInfo);
if(serialInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = serialInfo.length let len = serialInfo.length;
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_054 :PASS') console.info('device_info_test_054 :PASS');
}) })
/** /**
...@@ -1186,16 +1141,12 @@ describe('DeviceInfoTest', function () { ...@@ -1186,16 +1141,12 @@ describe('DeviceInfoTest', function () {
it('device_info_test_055', 0, function () { it('device_info_test_055', 0, function () {
console.info('device_info_test_055 start'); console.info('device_info_test_055 start');
var displayVersionInfo = deviceinfo.displayVersion; var displayVersionInfo = deviceinfo.displayVersion;
var ret = false; console.info('the value of the deviceinfo displayVersion is :' + displayVersionInfo);
if(displayVersionInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = displayVersionInfo.length let len = displayVersionInfo.length;
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len);
expect(len).assertLarger(0) expect(len).assertLarger(0);
console.info('device_info_test_055 :PASS') console.info('device_info_test_055 :PASS');
}) })
/** /**
...@@ -1209,11 +1160,7 @@ describe('DeviceInfoTest', function () { ...@@ -1209,11 +1160,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_056', 0, function () { it('device_info_test_056', 0, function () {
console.info('device_info_test_056 start'); console.info('device_info_test_056 start');
var incrementalVersionInfo = deviceinfo.incrementalVersion; var incrementalVersionInfo = deviceinfo.incrementalVersion;
var ret = false; console.info('the value of the deviceinfo incrementalVersion is :' + incrementalVersionInfo);
if(incrementalVersionInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = incrementalVersionInfo.length let len = incrementalVersionInfo.length
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len)
...@@ -1232,11 +1179,7 @@ describe('DeviceInfoTest', function () { ...@@ -1232,11 +1179,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_057', 0, function () { it('device_info_test_057', 0, function () {
console.info('device_info_test_057 start'); console.info('device_info_test_057 start');
var incrementalVersionInfo = deviceinfo.incrementalVersion; var incrementalVersionInfo = deviceinfo.incrementalVersion;
var ret = false; console.info('the value of the deviceinfo incrementalVersion is :' + incrementalVersionInfo);
if(incrementalVersionInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = incrementalVersionInfo.length let len = incrementalVersionInfo.length
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len)
...@@ -1255,11 +1198,7 @@ describe('DeviceInfoTest', function () { ...@@ -1255,11 +1198,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_058', 0, function () { it('device_info_test_058', 0, function () {
console.info('device_info_test_058 start'); console.info('device_info_test_058 start');
var versionIdInfo = deviceinfo.versionId; var versionIdInfo = deviceinfo.versionId;
var ret = false; console.info('the value of the deviceinfo versionId is :' + versionIdInfo);
if(versionIdInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = versionIdInfo.length let len = versionIdInfo.length
console.info('the value of the operating system full name characters is :' + len) console.info('the value of the operating system full name characters is :' + len)
...@@ -1278,12 +1217,8 @@ describe('DeviceInfoTest', function () { ...@@ -1278,12 +1217,8 @@ describe('DeviceInfoTest', function () {
it('device_info_test_059', 0, function () { it('device_info_test_059', 0, function () {
console.info('device_info_test_043 start'); console.info('device_info_test_043 start');
var buildUserInfo = deviceinfo.buildUser; var buildUserInfo = deviceinfo.buildUser;
var ret = false;
if(buildUserInfo !== null){
ret = true;
}
console.info('the value of thebuildUser is :' + buildUserInfo); console.info('the value of thebuildUser is :' + buildUserInfo);
expect(ret).assertTrue();
console.info('the value of the different build user of the same baseline code characters is :' + buildUserInfo.length); console.info('the value of the different build user of the same baseline code characters is :' + buildUserInfo.length);
expect(buildUserInfo.length).assertLarger(0) expect(buildUserInfo.length).assertLarger(0)
console.info('device_info_test_059 :PASS') console.info('device_info_test_059 :PASS')
...@@ -1300,11 +1235,7 @@ describe('DeviceInfoTest', function () { ...@@ -1300,11 +1235,7 @@ describe('DeviceInfoTest', function () {
it('device_info_test_060', 0, function () { it('device_info_test_060', 0, function () {
console.info('device_info_test_060 start'); console.info('device_info_test_060 start');
var buildHostInfo = deviceinfo.buildHost; var buildHostInfo = deviceinfo.buildHost;
var ret = false; console.info('the value of the deviceinfo buildHost is :' + buildHostInfo);
if(buildHostInfo !== null){
ret = true;
}
expect(ret).assertTrue();
let len = buildHostInfo.length let len = buildHostInfo.length
console.info('the value of the different build host of the same baseline code characters is :' + len); console.info('the value of the different build host of the same baseline code characters is :' + len);
......
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import updateTest from '@ohos.update'
describe('UpdateTest', function () {
console.info('start################################start');
/**
* @tc.number SUB_STARTUP_JS_UPDATE_0100
* @tc.name testVerifyUpdatePackage01
* @tc.desc Get Updater handler for the calling device.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('verify_update_packaget_est_001', 0, function () {
console.info('testVerifyUpdatePackage01 start');
var ret = false;
var getVar = updateTest.getUpdater();
try {
console.info('zpz AceApplication onCreate1');
getVar.on("verifyProgress", function (aaa){
console.info('zpz xxxxx ' + aaa.percent);
console.info('zpz AceApplication onCreate2');
getVar.verifyUpdatePackage(null, null);
getVar.off("verifyProgress", function (aaa){
console.info('zpz xxxxx ' + aaa.percent);
})
});
} catch (e){
console.info(" 567 callback get inputttt error:" + e);
ret = true;
}
setTimeout("expect(ret).assertTrue()", "10");
console.info('testVerifyUpdatePackage01 : PASS');
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册