提交 8d59f70f 编写于 作者: Z zhaohaoran9

master acts补充ISV厂商基于OHOS发行的操作信息名称、版本、apiversion和发布类型等属性参数XTS用例

Signed-off-by: Nzhaohaoran9 <zhaohaoran9@huawei.com>
Change-Id: Iabc7e6695cc45313e87b86a9fb1158bd6a4db2fa
上级 c628157c
...@@ -1753,16 +1753,16 @@ export default function DeviceInfoTest() { ...@@ -1753,16 +1753,16 @@ export default function DeviceInfoTest() {
it('device_info_test_0669', 0, function () { it('device_info_test_0669', 0, function () {
console.info('device_info_test_0669 start'); console.info('device_info_test_0669 start');
let osReleaseTypeInfo = deviceinfo.osReleaseType; let distributionOSReleaseTypeInfo = deviceinfo.distributionOSReleaseType;
console.info('the value of the deviceinfo distributionOSReleaseType is :' + osReleaseTypeInfo); console.info('the value of the deviceinfo distributiondistributionOSReleaseType is :' + distributionOSReleaseTypeInfo);
expect(osReleaseTypeInfo).assertInstanceOf('String'); expect(distributionOSReleaseTypeInfo).assertInstanceOf('String');
if (osReleaseTypeInfo != "" && osReleaseTypeInfo != null && osReleaseTypeInfo != undefined) { if (distributionOSReleaseTypeInfo != "" && distributionOSReleaseTypeInfo != null && distributionOSReleaseTypeInfo != undefined) {
let str = /[\w-\.\(\)]/g; let str = /[\w-\.\(\)]/g;
let arr = osReleaseTypeInfo.match(str); let arr = distributionOSReleaseTypeInfo.match(str);
let bufferstr = arr.join(''); let bufferstr = arr.join('');
console.info('the value of the bufferstr is :' + bufferstr); console.info('the value of the bufferstr is :' + bufferstr);
expect(osReleaseTypeInfo).assertEqual(bufferstr); expect(distributionOSReleaseTypeInfo).assertEqual(bufferstr);
} else { } else {
console.info('the return value is null or incorrect.'); console.info('the return value is null or incorrect.');
expect().assertFail(); expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册