Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
84a55a69
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
84a55a69
编写于
3月 31, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 31, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8307 validator部分文字修改,可视化报告修改
Merge pull request !8307 from 田文哲/master
上级
893af23d
c26f08d5
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
68 addition
and
78 deletion
+68
-78
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowOffsetX.ets
...alidator/src/main/ets/pages/ArkUI/CanvasShadowOffsetX.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/CameraColdStartTest.ets
...tor/src/main/ets/pages/Experience/CameraColdStartTest.ets
+6
-7
validator/acts_validator/src/main/ets/pages/Experience/ContactsColdStartTest.ets
...r/src/main/ets/pages/Experience/ContactsColdStartTest.ets
+6
-7
validator/acts_validator/src/main/ets/pages/Experience/ContactsHotStartTest.ets
...or/src/main/ets/pages/Experience/ContactsHotStartTest.ets
+4
-4
validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets
...tor/src/main/ets/pages/Experience/KeyboardDisplayTest.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/KeyboardInputTest.ets
...dator/src/main/ets/pages/Experience/KeyboardInputTest.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/MmsColdStartTest.ets
...idator/src/main/ets/pages/Experience/MmsColdStartTest.ets
+7
-8
validator/acts_validator/src/main/ets/pages/Experience/MmsHotStartTest.ets
...lidator/src/main/ets/pages/Experience/MmsHotStartTest.ets
+5
-6
validator/acts_validator/src/main/ets/pages/Experience/PhotosColdStartTest.ets
...tor/src/main/ets/pages/Experience/PhotosColdStartTest.ets
+7
-9
validator/acts_validator/src/main/ets/pages/Experience/PhotosHotStartTest.ets
...ator/src/main/ets/pages/Experience/PhotosHotStartTest.ets
+5
-6
validator/acts_validator/src/main/ets/pages/Experience/ScrollPhotosList.ets
...idator/src/main/ets/pages/Experience/ScrollPhotosList.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/SettingsColdStartTest.ets
...r/src/main/ets/pages/Experience/SettingsColdStartTest.ets
+7
-9
validator/acts_validator/src/main/ets/pages/Experience/SettingsHotStartTest.ets
...or/src/main/ets/pages/Experience/SettingsHotStartTest.ets
+5
-6
validator/acts_validator/src/main/ets/pages/Experience/StartBackgroundTask.ets
...tor/src/main/ets/pages/Experience/StartBackgroundTask.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets
...dator/src/main/ets/pages/Experience/StartNotification.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/StartTaskManager.ets
...idator/src/main/ets/pages/Experience/StartTaskManager.ets
+1
-1
validator/acts_validator/src/main/ets/pages/Experience/ViewPhotoTest.ets
...validator/src/main/ets/pages/Experience/ViewPhotoTest.ets
+1
-1
validator/acts_validator/src/main/ets/pages/index.ets
validator/acts_validator/src/main/ets/pages/index.ets
+8
-8
未找到文件。
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowOffsetX.ets
浏览文件 @
84a55a69
...
@@ -23,7 +23,7 @@ struct SetCircle {
...
@@ -23,7 +23,7 @@ struct SetCircle {
@State FillColor: string = '#FF000000';
@State FillColor: string = '#FF000000';
@State X: number = 0;
@State X: number = 0;
@State name: string = 'CanvasShadowOffsetX';
@State name: string = 'CanvasShadowOffsetX';
@State StepTips: string = '操作步骤:拖动滑块向右移动'+'\n'+'预期结果:阴影会随着拖动距离增大而向
下
偏移,并显示偏移数值';
@State StepTips: string = '操作步骤:拖动滑块向右移动'+'\n'+'预期结果:阴影会随着拖动距离增大而向
右
偏移,并显示偏移数值';
@State Vue: boolean = false;
@State Vue: boolean = false;
async aboutToAppear(){
async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name);
await FirstDialog.ChooseDialog(this.StepTips,this.name);
...
...
validator/acts_validator/src/main/ets/pages/Experience/CameraColdStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用`+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用,将底层任务栏中应用拖至桌面`
+ `3.双击执行.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.测试应用冷启动返回validator界面`
+ '\n' + '\n' + `3.双击执行.bat选择冷启动>相机测试,回车执行`+ '\n' + '\n' +`4.测试应用自动执行冷启动后手动返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试` + '\n' + '\n' )
+ '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
Row(){
Row(){
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
let CameraBuf = new ArrayBuffer(4096);
let CameraBuf = new ArrayBuffer(4096);
fileio.readSync(CameraFd,CameraBuf);
fileio.readSync(CameraFd,CameraBuf);
let CameraReport = String.fromCharCode.apply(null,new Uint8Array(CameraBuf));
let CameraReport = String.fromCharCode.apply(null,new Uint8Array(CameraBuf));
let CameraHead = CameraReport.indexOf(':');
let CameraHead = CameraReport.indexOf('
time
:');
let CameraTime = CameraReport.substring(CameraHead+
1
);
let CameraTime = CameraReport.substring(CameraHead+
5
);
this.cameraNum = parseFloat(CameraTime);
this.cameraNum = parseFloat(CameraTime);
if( this.cameraNum < 2000 ) {
if(
0 < this.cameraNum &&
this.cameraNum < 2000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
...
validator/acts_validator/src/main/ets/pages/Experience/ContactsColdStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用`+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用,将底层任务栏中应用拖至桌面`
+ `3.双击执行.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.测试应用冷启动返回validator界面`
+ '\n' + '\n' + `3.双击执行.bat选择冷启动>联系人测试,回车执行`+ '\n' + '\n' +`4.测试应用自动执行冷启动后手动返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试` + '\n' + '\n' )
+ '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
Row(){
Row(){
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
let ContactsBuf = new ArrayBuffer(4096);
let ContactsBuf = new ArrayBuffer(4096);
fileio.readSync(ContactsFd,ContactsBuf);
fileio.readSync(ContactsFd,ContactsBuf);
let ContactsReport = String.fromCharCode.apply(null,new Uint8Array(ContactsBuf));
let ContactsReport = String.fromCharCode.apply(null,new Uint8Array(ContactsBuf));
let ContactsHead = ContactsReport.indexOf(':');
let ContactsHead = ContactsReport.indexOf('
time
:');
let ContactsTime = ContactsReport.substring(ContactsHead+
1
);
let ContactsTime = ContactsReport.substring(ContactsHead+
5
);
this.contactsNum = parseFloat(ContactsTime);
this.contactsNum = parseFloat(ContactsTime);
if( this.contactsNum < 2000 ) {
if(
0 < this.contactsNum &&
this.contactsNum < 2000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
...
validator/acts_validator/src/main/ets/pages/Experience/ContactsHotStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+
`3.双击执行.bat选择热启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用
热启动返回validator界面`
+
'\n' + '\n' + `3.双击执行.bat选择热启动>联系人测试`+ '\n' + '\n' +`4.测试应用手动执行
热启动返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `
5
.若所有热启动测试均在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `
6
.若所有热启动测试均在规定时延内完成则通过测试`
+ '\n' + '\n' + '\n' + '\n' )
+ '\n' + '\n' + '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
let ContactsHead = ContactsReport.indexOf(':');
let ContactsHead = ContactsReport.indexOf(':');
let ContactsTime = ContactsReport.substring(ContactsHead+1);
let ContactsTime = ContactsReport.substring(ContactsHead+1);
this.contactsNum = parseFloat(ContactsTime);
this.contactsNum = parseFloat(ContactsTime);
if( this.contactsNum < 1000 ) {
if(
0 < this.contactsNum &&
this.contactsNum < 1000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
...
validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets
浏览文件 @
84a55a69
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 1000 ) {
if(
0 < time &&
time < 1000 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/Experience/KeyboardInputTest.ets
浏览文件 @
84a55a69
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 150 ) {
if(
0 < time &&
time < 150 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/Experience/MmsColdStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用`+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用,将底层任务栏中应用拖至桌面`
+ `3.双击执行.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用冷启动返回validator界面`
+ '\n' + '\n' + `3.双击执行.bat选择冷启动>信息测试,回车执行`+ '\n' + '\n' +`4.测试应用自动执行冷启动后手动返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若所有冷启动测试均在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试` + '\n' + '\n' )
+ '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
Row(){
Row(){
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
let MmsBuf = new ArrayBuffer(4096);
let MmsBuf = new ArrayBuffer(4096);
fileio.readSync(MmsFd,MmsBuf);
fileio.readSync(MmsFd,MmsBuf);
let MmsReport = String.fromCharCode.apply(null,new Uint8Array(MmsBuf));
let MmsReport = String.fromCharCode.apply(null,new Uint8Array(MmsBuf));
let MmsHead = MmsReport.indexOf(':');
let MmsHead = MmsReport.indexOf('
time
:');
let MmsTime = MmsReport.substring(MmsHead+
1
);
let MmsTime = MmsReport.substring(MmsHead+
5
);
this.mmsNum = parseFloat(MmsTime);
this.mmsNum = parseFloat(MmsTime);
if( this.mmsNum < 2000 ) {
if(
0 < this.mmsNum &&
this.mmsNum < 2000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
@@ -105,7 +104,7 @@ struct CustomContainerUser {
...
@@ -105,7 +104,7 @@ struct CustomContainerUser {
}
}
}
}
Row(){
Row(){
Text('\n' + '\n' + `测试结果:` + '\n' + '\n' + '信息冷启动时延' + this.mmsNum + 'ms'
+ '\n' + '通过冷启动测试项' + this.num + '个'
)
Text('\n' + '\n' + `测试结果:` + '\n' + '\n' + '信息冷启动时延' + this.mmsNum + 'ms')
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
}
}
...
...
validator/acts_validator/src/main/ets/pages/Experience/MmsHotStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+
`3.双击执行.bat选择热启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用热启动
返回validator界面`
+
'\n' + '\n' + `3.双击执行.bat选择热启动>信息测试`+ '\n' + '\n' +`4.测试应用手动执行热启动后
返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若
所有热启动测试均
在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若
热启动测试
在规定时延内完成则通过测试`
+ '\n' + '\n' + '\n' + '\n' )
+ '\n' + '\n' + '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
let MmsHead = MmsReport.indexOf(':');
let MmsHead = MmsReport.indexOf(':');
let MmsTime = MmsReport.substring(MmsHead+1);
let MmsTime = MmsReport.substring(MmsHead+1);
this.mmsNum = parseFloat(MmsTime);
this.mmsNum = parseFloat(MmsTime);
if( this.mmsNum < 1000 ) {
if(
0 < this.mmsNum &&
this.mmsNum < 1000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
@@ -105,8 +105,7 @@ struct CustomContainerUser {
...
@@ -105,8 +105,7 @@ struct CustomContainerUser {
}
}
}
}
Row(){
Row(){
Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '\n'+ '信息热启动时延' + this.mmsNum + 'ms'
Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '\n'+ '信息热启动时延' + this.mmsNum + 'ms')
+ '\n' + '通过热启动测试项' + this.num + '个' )
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
}
}
...
...
validator/acts_validator/src/main/ets/pages/Experience/PhotosColdStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用`+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用,将底层任务栏中应用拖至桌面`
+ `3.双击执行.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用冷启动返回validator界面`
+ '\n' + '\n' + `3.双击执行.bat选择冷启动>图库测试,回车执行`+ '\n' + '\n' +`4.测试应用自动执行冷启动后手动返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若所有冷启动测试均在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试` + '\n' + '\n' )
+ '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
Row(){
Row(){
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
let photosBuf = new ArrayBuffer(4096);
let photosBuf = new ArrayBuffer(4096);
fileio.readSync(photosFd,photosBuf);
fileio.readSync(photosFd,photosBuf);
let photosReport = String.fromCharCode.apply(null,new Uint8Array(photosBuf));
let photosReport = String.fromCharCode.apply(null,new Uint8Array(photosBuf));
let photosHead = photosReport.indexOf(':');
let photosHead = photosReport.indexOf('
time
:');
let photosTime = photosReport.substring(photosHead+
1
);
let photosTime = photosReport.substring(photosHead+
5
);
this.photosNum = parseFloat(photosTime);
this.photosNum = parseFloat(photosTime);
if( this.photosNum < 2000 ) {
if(
0 < this.photosNum &&
this.photosNum < 2000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
@@ -105,8 +104,7 @@ struct CustomContainerUser {
...
@@ -105,8 +104,7 @@ struct CustomContainerUser {
}
}
}
}
Row(){
Row(){
Text('\n' + '\n' + `测试结果:` + '\n' + '\n' + '图库冷启动时延' + this.photosNum + 'ms'
Text('\n' + '\n' + `测试结果:` + '\n' + '\n' + '图库冷启动时延' + this.photosNum + 'ms')
+ '\n' + '通过冷启动测试项' + this.num + '个')
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
}
}
...
...
validator/acts_validator/src/main/ets/pages/Experience/PhotosHotStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+
`3.双击执行.bat选择热启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用热启动
返回validator界面`
+
'\n' + '\n' + `3.双击执行.bat选择热启动>图库测试`+ '\n' + '\n' +`4.测试应用手动执行热启动后
返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若
所有热启动测试均
在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若
热启动测试
在规定时延内完成则通过测试`
+ '\n' + '\n' + '\n' + '\n' )
+ '\n' + '\n' + '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
let photosHead = photosReport.indexOf(':');
let photosHead = photosReport.indexOf(':');
let photosTime = photosReport.substring(photosHead+1);
let photosTime = photosReport.substring(photosHead+1);
this.photosNum = parseFloat(photosTime);
this.photosNum = parseFloat(photosTime);
if( this.photosNum < 1000 ) {
if(
0 < this.photosNum &&
this.photosNum < 1000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
@@ -105,8 +105,7 @@ struct CustomContainerUser {
...
@@ -105,8 +105,7 @@ struct CustomContainerUser {
}
}
}
}
Row(){
Row(){
Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '\n' + '图库热启动时延' + this.photosNum + 'ms'
Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '\n' + '图库热启动时延' + this.photosNum + 'ms')
+ '\n' + '通过热启动测试项' + this.num + '个' )
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
}
}
...
...
validator/acts_validator/src/main/ets/pages/Experience/ScrollPhotosList.ets
浏览文件 @
84a55a69
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 150 ) {
if(
0 < time &&
time < 150 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/Experience/SettingsColdStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
...
@@ -48,10 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用`+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.清空后台应用,将底层任务栏中应用拖至桌面`
+ `3.双击执行.bat选择冷启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用冷启动返回validator界面`
+ '\n' + '\n' + `3.双击执行.bat选择冷启动>设置测试,回车执行`+ '\n' + '\n' +`4.测试应用自动执行冷启动后手动返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若所有冷启动测试均在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `6.若冷启动测试在规定时延内完成则通过测试` + '\n' + '\n' )
+ '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
Row(){
Row(){
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
...
@@ -92,10 +91,10 @@ struct CustomContainerUser {
let setBuf = new ArrayBuffer(4096);
let setBuf = new ArrayBuffer(4096);
fileio.readSync(setFd,setBuf);
fileio.readSync(setFd,setBuf);
let setReport = String.fromCharCode.apply(null,new Uint8Array(setBuf));
let setReport = String.fromCharCode.apply(null,new Uint8Array(setBuf));
let setHead = setReport.indexOf(':');
let setHead = setReport.indexOf('
time
:');
let setTime = setReport.substring(setHead+
1
);
let setTime = setReport.substring(setHead+
5
);
this.setNum = parseFloat(setTime);
this.setNum = parseFloat(setTime);
if( this.setNum < 2000 ) {
if(
0 < this.setNum &&
this.setNum < 2000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
@@ -105,8 +104,7 @@ struct CustomContainerUser {
...
@@ -105,8 +104,7 @@ struct CustomContainerUser {
}
}
}
}
Row(){
Row(){
Text('\n' + '\n' + `测试结果:` + '\n' + '\n' + '设置冷启动时延' + this.setNum + 'ms'
Text('\n' + '\n' + `测试结果:` + '\n' + '\n' + '设置冷启动时延' + this.setNum + 'ms')
+ '\n' + '通过冷启动测试项' + this.num + '个')
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
}
}
...
...
validator/acts_validator/src/main/ets/pages/Experience/SettingsHotStartTest.ets
浏览文件 @
84a55a69
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
...
@@ -48,9 +48,9 @@ struct CustomContainerUser {
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
Row(){
Row(){
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+ '\n' + '\n'
Text(`测试步骤:`+ '\n' + '\n' + `1.点击开始键进入系统桌面`+ '\n' + '\n' + `2.开启应用回退到桌面,保证此时后台应用存在`
+
`3.双击执行.bat选择热启动测试输入待测应用编号`+ '\n' + '\n' +`4.依次测试完所有应用热启动
返回validator界面`
+
'\n' + '\n' + `3.双击执行.bat选择热启动>设置测试`+ '\n' + '\n' +`4.测试应用手动执行热启动后
返回validator界面`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若
所有热启动测试均
在规定时延内完成则通过测试`
+ '\n' + '\n' + '5.点击停止键观察测试结果' + '\n' + '\n' + `5.若
热启动测试
在规定时延内完成则通过测试`
+ '\n' + '\n' + '\n' + '\n' )
+ '\n' + '\n' + '\n' + '\n' )
.fontColor(Color.White).fontSize('20fp')
.fontColor(Color.White).fontSize('20fp')
}
}
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
...
@@ -95,7 +95,7 @@ struct CustomContainerUser {
let setHead = setReport.indexOf(':');
let setHead = setReport.indexOf(':');
let setTime = setReport.substring(setHead+1);
let setTime = setReport.substring(setHead+1);
this.setNum = parseFloat(setTime);
this.setNum = parseFloat(setTime);
if( this.setNum < 1000 ) {
if(
0 < this.setNum &&
this.setNum < 1000 ) {
this.num++
this.num++
}
}
if( this.num === 1 ) {
if( this.num === 1 ) {
...
@@ -105,8 +105,7 @@ struct CustomContainerUser {
...
@@ -105,8 +105,7 @@ struct CustomContainerUser {
}
}
}
}
Row(){
Row(){
Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '\n' + '设置热启动时延' + this.setNum + 'ms'
Text('\n' + '\n' + '\n' + '\n' + `测试结果:` + '\n' + '\n' + '设置热启动时延' + this.setNum + 'ms')
+ '\n' + '通过热启动测试项' + this.num + '个' )
.fontColor(Color.White).fontSize('24fp')
.fontColor(Color.White).fontSize('24fp')
}
}
}
}
...
...
validator/acts_validator/src/main/ets/pages/Experience/StartBackgroundTask.ets
浏览文件 @
84a55a69
...
@@ -86,7 +86,7 @@ struct CustomContainerUser {
...
@@ -86,7 +86,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 600 ) {
if(
0 < time &&
time < 600 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets
浏览文件 @
84a55a69
...
@@ -86,7 +86,7 @@ struct CustomContainerUser {
...
@@ -86,7 +86,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 150 ) {
if(
0 < time &&
time < 150 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/Experience/StartTaskManager.ets
浏览文件 @
84a55a69
...
@@ -86,7 +86,7 @@ struct CustomContainerUser {
...
@@ -86,7 +86,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 1000 ) {
if(
0 < time &&
time < 1000 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/Experience/ViewPhotoTest.ets
浏览文件 @
84a55a69
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
...
@@ -88,7 +88,7 @@ struct CustomContainerUser {
let head = report.indexOf(":");
let head = report.indexOf(":");
this.time = report.substring(head+1);
this.time = report.substring(head+1);
let time = parseFloat(this.time)
let time = parseFloat(this.time)
if( time < 150 ) {
if(
0 < time &&
time < 150 ) {
this.Vue = true;
this.Vue = true;
}
}
})
})
...
...
validator/acts_validator/src/main/ets/pages/index.ets
浏览文件 @
84a55a69
...
@@ -429,7 +429,7 @@ struct IndexPage {
...
@@ -429,7 +429,7 @@ struct IndexPage {
let serializer = new xml.XmlSerializer(bufView);
let serializer = new xml.XmlSerializer(bufView);
serializer.setDeclaration();
serializer.setDeclaration();
serializer.startElement("testsuites");
serializer.startElement("testsuites");
serializer.setAttributes("name", "ActValidator");
serializer.setAttributes("name", "Act
s
Validator");
serializer.setAttributes("starttime", starttime);
serializer.setAttributes("starttime", starttime);
serializer.setAttributes("endtime", endtime);
serializer.setAttributes("endtime", endtime);
serializer.setAttributes("errors", "0");
serializer.setAttributes("errors", "0");
...
@@ -439,8 +439,8 @@ struct IndexPage {
...
@@ -439,8 +439,8 @@ struct IndexPage {
serializer.setAttributes("ignored", "0");
serializer.setAttributes("ignored", "0");
serializer.setAttributes("unavailable", "0");
serializer.setAttributes("unavailable", "0");
serializer.setAttributes("productinfo", "{ }");
serializer.setAttributes("productinfo", "{ }");
serializer.setAttributes("modules", "
*
");
serializer.setAttributes("modules", "
ActsValidator
");
serializer.setAttributes("runmodules", "
*
");
serializer.setAttributes("runmodules", "
ActsValidator
");
/*
/*
* ArkUI
* ArkUI
*/
*/
...
@@ -453,7 +453,7 @@ struct IndexPage {
...
@@ -453,7 +453,7 @@ struct IndexPage {
serializer.setAttributes("ignored", "0");
serializer.setAttributes("ignored", "0");
serializer.setAttributes("tests", ArkuiTestNum);
serializer.setAttributes("tests", ArkuiTestNum);
serializer.setAttributes("message", "*");
serializer.setAttributes("message", "*");
serializer.setAttributes("modulename", "Acts
ArkUITest
");
serializer.setAttributes("modulename", "Acts
Validator
");
for (let i = 0; i < title1.length; i++) {
for (let i = 0; i < title1.length; i++) {
serializer.startElement("testcase");
serializer.startElement("testcase");
serializer.setAttributes("name", String(title1[i]));
serializer.setAttributes("name", String(title1[i]));
...
@@ -478,7 +478,7 @@ struct IndexPage {
...
@@ -478,7 +478,7 @@ struct IndexPage {
serializer.setAttributes("ignored", "0");
serializer.setAttributes("ignored", "0");
serializer.setAttributes("tests", audioTestNum);
serializer.setAttributes("tests", audioTestNum);
serializer.setAttributes("message", "*");
serializer.setAttributes("message", "*");
serializer.setAttributes("modulename", "Acts
AudioTest
");
serializer.setAttributes("modulename", "Acts
Validator
");
for (let i = 0; i < title2.length; i++) {
for (let i = 0; i < title2.length; i++) {
serializer.startElement("testcase");
serializer.startElement("testcase");
serializer.setAttributes("name", String(title2[i]));
serializer.setAttributes("name", String(title2[i]));
...
@@ -503,7 +503,7 @@ struct IndexPage {
...
@@ -503,7 +503,7 @@ struct IndexPage {
serializer.setAttributes("ignored", "0");
serializer.setAttributes("ignored", "0");
serializer.setAttributes("tests", cameraTestNum);
serializer.setAttributes("tests", cameraTestNum);
serializer.setAttributes("message", "*");
serializer.setAttributes("message", "*");
serializer.setAttributes("modulename", "Acts
CameraTest
");
serializer.setAttributes("modulename", "Acts
Validator
");
for (let i = 0; i < title3.length; i++) {
for (let i = 0; i < title3.length; i++) {
serializer.startElement("testcase");
serializer.startElement("testcase");
serializer.setAttributes("name", String(title3[i]));
serializer.setAttributes("name", String(title3[i]));
...
@@ -528,7 +528,7 @@ struct IndexPage {
...
@@ -528,7 +528,7 @@ struct IndexPage {
serializer.setAttributes("ignored", "0");
serializer.setAttributes("ignored", "0");
serializer.setAttributes("tests", playerTestNum);
serializer.setAttributes("tests", playerTestNum);
serializer.setAttributes("message", "*");
serializer.setAttributes("message", "*");
serializer.setAttributes("modulename", "Acts
PlayerTest
");
serializer.setAttributes("modulename", "Acts
Validator
");
for (let i = 0; i < title4.length; i++) {
for (let i = 0; i < title4.length; i++) {
serializer.startElement("testcase");
serializer.startElement("testcase");
serializer.setAttributes("name", String(title4[i]));
serializer.setAttributes("name", String(title4[i]));
...
@@ -553,7 +553,7 @@ struct IndexPage {
...
@@ -553,7 +553,7 @@ struct IndexPage {
serializer.setAttributes("ignored", "0");
serializer.setAttributes("ignored", "0");
serializer.setAttributes("tests", experienceTestNum);
serializer.setAttributes("tests", experienceTestNum);
serializer.setAttributes("message", "*");
serializer.setAttributes("message", "*");
serializer.setAttributes("modulename", "Acts
ExperienceTest
");
serializer.setAttributes("modulename", "Acts
Validator
");
for (let i = 0; i < title5.length; i++) {
for (let i = 0; i < title5.length; i++) {
serializer.startElement("testcase");
serializer.startElement("testcase");
serializer.setAttributes("name", String(title5[i]));
serializer.setAttributes("name", String(title5[i]));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录