From 5dbbc4b3f5c0a7db89ba40def640b8359a60dfd8 Mon Sep 17 00:00:00 2001 From: tianwenzhe Date: Thu, 16 Mar 2023 16:49:03 +0800 Subject: [PATCH] change UI Signed-off-by: tian-wenzhe411 --- .../ets/pages/Experience/ColdStartTest.ets | 6 +++--- .../src/main/ets/pages/Experience/DeskFps.ets | 2 +- .../ets/pages/Experience/HotStartTest.ets | 21 +++---------------- .../pages/Experience/KeyboardDisplayTest.ets | 2 +- .../main/ets/pages/Experience/PhotoFps.ets | 2 +- .../pages/Experience/StartNotification.ets | 2 +- 6 files changed, 10 insertions(+), 25 deletions(-) diff --git a/validator/acts_validator/src/main/ets/pages/Experience/ColdStartTest.ets b/validator/acts_validator/src/main/ets/pages/Experience/ColdStartTest.ets index 4b10d89cc..bbdfda389 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/ColdStartTest.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/ColdStartTest.ets @@ -47,12 +47,12 @@ struct CustomContainerUser { Flex({direction:FlexDirection.Column,alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { Column(){ Row(){ - Text(`根据以下操作步骤完成测试`+ '\n' + '\n' + '\n' + '\n'+ '\n' + '\n' + '\n' + '\n') + Text(`根据以下操作步骤完成测试`+ '\n' + '\n' ) .fontColor(Color.White).fontSize('24fp') } Row(){ Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用`+ '\n' + '\n' - + `3.双击执行DeskFps.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用冷启动返回validator界面` + + `3.双击执行.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用冷启动返回validator界面` + '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若所有冷启动测试均在规定时延内完成则通过测试` + '\n' + '\n' ) .fontColor(Color.White).fontSize('20fp') @@ -160,7 +160,7 @@ struct CustomContainerUser { } } Row(){ - Text('\n' + '\n' + `测试结果:` + '设置冷启动时延' + this.setNum + 'ms' + '\n' + '图库冷启动时延' + this.photosNum + Text('\n' + '\n' + `测试结果:` + '\n' + '设置冷启动时延' + this.setNum + 'ms' + '\n' + '图库冷启动时延' + this.photosNum + 'ms' + '\n'+ '信息冷启动时延' + this.mmsNum + 'ms' + '\n' + '相机冷启动时延' + this.cameraNum + 'ms' + '\n' + '联系人冷启动时延' + this.contactsNum + 'ms' + '\n' + '通过冷启动测试项' + this.num + '个') .fontColor(Color.White).fontSize('24fp') diff --git a/validator/acts_validator/src/main/ets/pages/Experience/DeskFps.ets b/validator/acts_validator/src/main/ets/pages/Experience/DeskFps.ets index 941b36cd7..781d4db21 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/DeskFps.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/DeskFps.ets @@ -44,7 +44,7 @@ struct CustomContainerUser { } Row(){ Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' - + `2.双击执行DeskFps.bat`+ '\n' + '\n' +`3.左右滑动系统桌面连续10s以上` + '\n' + '\n' + + `2.双击执行.bat选择帧率>桌面`+ '\n' + '\n' +`3.左右滑动系统桌面连续10s以上` + '\n' + '\n' + '4.回到DeskFps测试项点击停止键' + '\n' + '\n' + `5.若测试最高帧率大于54帧则通过测试` + '\n' + '\n' + '\n' + '\n' + '\n' + '\n' + '\n' + '\n' ) .fontColor(Color.White).fontSize('20fp') diff --git a/validator/acts_validator/src/main/ets/pages/Experience/HotStartTest.ets b/validator/acts_validator/src/main/ets/pages/Experience/HotStartTest.ets index ae456fe9b..f5e668165 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/HotStartTest.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/HotStartTest.ets @@ -22,7 +22,6 @@ let path = globalThis.dir; let SettingsColdPath = path + '/HotStartSetting.log'; let PhotosColdPath = path + '/HotStartPhotos.log'; let MmsColdPath = path + '/HotStartMms.log'; -let CameraColdPath = path + '/HotStartCamera.log'; let ContactsColdPath = path + '/HotStartContacts.log'; @Entry @Component @@ -127,19 +126,6 @@ struct CustomContainerUser { if( this.mmsNum < 1000 ) { this.num++ } - /* - camera - */ - let CameraFd = fileio.openSync(CameraColdPath, 0o100 | 0o2002, 0o664); - let CameraBuf = new ArrayBuffer(4096); - fileio.readSync(CameraFd,CameraBuf); - let CameraReport = String.fromCharCode.apply(null,new Uint8Array(CameraBuf)); - let CameraHead = CameraReport.indexOf(':'); - let CameraTime = CameraReport.substring(CameraHead+1); - this.cameraNum = parseFloat(CameraTime); - if( this.cameraNum < 1000 ) { - this.num++ - } /* mms */ @@ -153,17 +139,16 @@ struct CustomContainerUser { if( this.contactsNum < 1000 ) { this.num++ } - if( this.num === 5 ) { + if( this.num === 4 ) { this.Vue = true; } }) } } Row(){ - Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '设置热启动时延' + this.setNum + 'ms' + Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '设置热启动时延' + this.setNum + 'ms' + '\n' + '图库热启动时延' + this.photosNum + 'ms' + '\n'+ '信息热启动时延' + this.mmsNum + 'ms' + '\n' - + '相机热启动时延' + this.cameraNum + 'ms' + '\n'+ '联系人热启动时延' + this.contactsNum + 'ms' + '\n' - + '通过热启动测试项' + this.num + '个' ) + + '联系人热启动时延' + this.contactsNum + 'ms' + '\n' + '通过热启动测试项' + this.num + '个' ) .fontColor(Color.White).fontSize('24fp') } } diff --git a/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets b/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets index bffc4cb9f..41c3c9714 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets @@ -42,7 +42,7 @@ struct CustomContainerUser { } Row(){ Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入信息` + '\n' + '\n' +'2.新建一条信息显示输入框'+ '\n' + '\n' - + `3.双击执行.bat选择完成时延>键盘按键弹出`+ '\n' + '\n' +`4.点击一张图库缩略图等待响应` + '\n' + '\n' + + `3.双击执行.bat选择完成时延>键盘按键弹出`+ '\n' + '\n' +`4.点击输入框等待键盘弹出` + '\n' + '\n' + '5.待脚本执行结束回到Validator点击停止键' + '\n' + '\n' + `6.若弹出键盘时延小于或等于1000ms则通过测试` + '\n' + '\n' + '\n' + '\n' ) .fontColor(Color.White).fontSize('20fp') diff --git a/validator/acts_validator/src/main/ets/pages/Experience/PhotoFps.ets b/validator/acts_validator/src/main/ets/pages/Experience/PhotoFps.ets index d7d75f17c..76c18d9db 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/PhotoFps.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/PhotoFps.ets @@ -42,7 +42,7 @@ struct CustomContainerUser { } Row(){ Text(`测试步骤:`+ '\n' + '\n' +`1.在图库中预置500张图片`+ '\n' + '\n' +`2.点击开始键进入图库`+ '\n' + '\n' - + `3.双击执行PhotoFps.bat`+ '\n' + '\n' +`4.滑动图库缩略图界面连续10s以上` + '\n' + '\n' + + `3.双击执行.bat选择帧率>图库`+ '\n' + '\n' +`4.滑动图库缩略图界面连续10s以上` + '\n' + '\n' + '5.回到PhotoFps测试项点击停止键' + '\n' + '\n' + `6.若测试最高帧率大于或等于54帧则通过测试` + '\n' + '\n' + '\n' + '\n' + '\n' + '\n' + '\n' + '\n' ) .fontColor(Color.White).fontSize('20fp') diff --git a/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets b/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets index 226403d9f..ae5d0a252 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets @@ -19,7 +19,7 @@ import context from '@ohos.app.ability.common'; let abilityContext = getContext(this) as context.UIAbilityContext; let path = globalThis.dir; -let Xpath = path + '/CompleteTimeLauncher.log'; +let Xpath = path + '/ResponseTimeLauncher.log'; @Entry @Component -- GitLab