Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8f7676c0
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看板
未验证
提交
8f7676c0
编写于
5月 25, 2023
作者:
O
openharmony_ci
提交者:
Gitee
5月 25, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8685 arkxtest增加测试用例.被测hap包切成arkui新框架stage模型
Merge pull request !8685 from 周柯/master
上级
863bb0d3
5c6a8a9c
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
286 addition
and
138 deletion
+286
-138
testfwk/uitest/BUILD.gn
testfwk/uitest/BUILD.gn
+1
-1
testfwk/uitest/src/main/ets/test/uitest.test.ets
testfwk/uitest/src/main/ets/test/uitest.test.ets
+59
-13
testfwk/uitestScene/AppScope/app.json
testfwk/uitestScene/AppScope/app.json
+20
-0
testfwk/uitestScene/AppScope/resources/base/element/string.json
...k/uitestScene/AppScope/resources/base/element/string.json
+8
-0
testfwk/uitestScene/AppScope/resources/base/media/icon.png
testfwk/uitestScene/AppScope/resources/base/media/icon.png
+0
-0
testfwk/uitestScene/BUILD.gn
testfwk/uitestScene/BUILD.gn
+11
-6
testfwk/uitestScene/entry/src/main/ets/entryability/EntryAbility.ts
...testScene/entry/src/main/ets/entryability/EntryAbility.ts
+41
-0
testfwk/uitestScene/entry/src/main/ets/pages/Index.ets
testfwk/uitestScene/entry/src/main/ets/pages/Index.ets
+41
-14
testfwk/uitestScene/entry/src/main/ets/pages/drag.ets
testfwk/uitestScene/entry/src/main/ets/pages/drag.ets
+0
-0
testfwk/uitestScene/entry/src/main/ets/pages/fourth.ets
testfwk/uitestScene/entry/src/main/ets/pages/fourth.ets
+0
-0
testfwk/uitestScene/entry/src/main/ets/pages/screen.ets
testfwk/uitestScene/entry/src/main/ets/pages/screen.ets
+1
-1
testfwk/uitestScene/entry/src/main/ets/pages/second.ets
testfwk/uitestScene/entry/src/main/ets/pages/second.ets
+0
-0
testfwk/uitestScene/entry/src/main/ets/pages/third.ets
testfwk/uitestScene/entry/src/main/ets/pages/third.ets
+0
-0
testfwk/uitestScene/entry/src/main/module.json
testfwk/uitestScene/entry/src/main/module.json
+38
-0
testfwk/uitestScene/entry/src/main/resources/base/element/color.json
...estScene/entry/src/main/resources/base/element/color.json
+8
-0
testfwk/uitestScene/entry/src/main/resources/base/element/string.json
...stScene/entry/src/main/resources/base/element/string.json
+16
-0
testfwk/uitestScene/entry/src/main/resources/base/media/icon.png
.../uitestScene/entry/src/main/resources/base/media/icon.png
+0
-0
testfwk/uitestScene/entry/src/main/resources/base/media/test.png
.../uitestScene/entry/src/main/resources/base/media/test.png
+0
-0
testfwk/uitestScene/entry/src/main/resources/base/profile/main_pages.json
...ene/entry/src/main/resources/base/profile/main_pages.json
+10
-0
testfwk/uitestScene/entry/src/main/resources/en_US/element/string.json
...tScene/entry/src/main/resources/en_US/element/string.json
+16
-0
testfwk/uitestScene/entry/src/main/resources/zh_CN/element/string.json
...tScene/entry/src/main/resources/zh_CN/element/string.json
+16
-0
testfwk/uitestScene/src/main/config.json
testfwk/uitestScene/src/main/config.json
+0
-79
testfwk/uitestScene/src/main/ets/MainAbility/app.ets
testfwk/uitestScene/src/main/ets/MainAbility/app.ets
+0
-24
testfwk/uitestScene/src/main/resources/base/media/computer.png
...wk/uitestScene/src/main/resources/base/media/computer.png
+0
-0
未找到文件。
testfwk/uitest/BUILD.gn
浏览文件 @
8f7676c0
...
...
@@ -20,7 +20,7 @@ ohos_js_hap_suite("ActsUiTest") {
":uitest_ets_resources",
]
ets2abc = true
certificate_profile = "
/
/test/xts/acts/testfwk/uitest/signature/auto_ohos_default_com.uitest.test.p7b"
certificate_profile = "
../../../../..
/test/xts/acts/testfwk/uitest/signature/auto_ohos_default_com.uitest.test.p7b"
hap_name = "ActsUiTest"
part_name = "arkxtest"
subsystem_name = "testfwk"
...
...
testfwk/uitest/src/main/ets/test/uitest.test.ets
浏览文件 @
8f7676c0
...
...
@@ -14,7 +14,7 @@
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'@ohos/hypium'
import
abilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
;
import
{
UiComponent
,
UiDriver
,
BY
,
Component
,
Driver
,
UiWindow
,
ON
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
UiDirection
,
MouseButton
,
WindowMode
,
PointerMatrix
}
from
'@ohos.UiTest'
import
{
UiComponent
,
UiDriver
,
BY
,
Component
,
Driver
,
UiWindow
,
ON
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
UiDirection
,
MouseButton
,
WindowMode
,
PointerMatrix
,
UIElementInfo
,
UIEventObserver
}
from
'@ohos.UiTest'
import
ability_featureAbility
from
'@ohos.ability.featureAbility'
;
const
delegator
=
abilityDelegatorRegistry
.
getAbilityDelegator
();
...
...
@@ -180,6 +180,52 @@ export default function UiTest() {
expect
(
btn
!=
null
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
})
/*
* @tc.number: uiTest_10008
* @tc.name: testMonitor1
* @tc.desc: monitor toast appearance.
*/
it
(
'testMonitor1'
,
0
,
async
function
()
{
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
let
observer
=
await
driver
.
createUIEventObserver
()
let
callback
=
(
UiElementInfo
)
=>
{
expect
(
UiElementInfo
.
bundleName
==
'com.uitestScene.acts'
)
.
assertTrue
()
expect
(
UiElementInfo
.
text
==
'toastShow'
)
.
assertTrue
()
expect
(
UiElementInfo
.
type
==
'Toast'
)
.
assertTrue
()
}
observer
.
once
(
'toastShow'
,
callback
)
let
btn
=
await
driver
.
findComponent
(
ON
.
text
(
'toast'
))
await
btn
.
click
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
stopApplication
(
'com.uitestScene.acts'
)
})
/*
* @tc.number: uiTest_10009
* @tc.name: testMonitor2
* @tc.desc: monitor dialog appearance.
*/
it
(
'testMonitor2'
,
0
,
async
function
()
{
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
let
observer
=
await
driver
.
createUIEventObserver
()
let
callback
=
(
UiElementInfo
)
=>
{
expect
(
UiElementInfo
.
bundleName
==
'com.uitestScene.acts'
)
.
assertTrue
()
expect
(
UiElementInfo
.
text
==
'dialogShow'
)
.
assertTrue
()
expect
(
UiElementInfo
.
type
==
'AlertDialog'
)
.
assertTrue
()
}
observer
.
once
(
'dialogShow'
,
callback
)
let
btn
=
await
driver
.
findComponent
(
ON
.
text
(
'dialog'
))
await
btn
.
click
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
stopApplication
(
'com.uitestScene.acts'
)
})
})
describe
(
'UiTest_API8'
,
function
()
{
...
...
@@ -347,9 +393,9 @@ export default function UiTest() {
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
UiDriver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
let
scrollBar
=
await
driver
.
findComponent
(
BY
.
type
(
'Scroll'
)
.
scrollable
(
false
)
)
let
scrollBar
=
await
driver
.
findComponent
(
BY
.
type
(
'Scroll'
))
let
scrollable
=
await
scrollBar
.
isScrollable
()
expect
(
scrollable
==
fals
e
)
.
assertTrue
()
expect
(
scrollable
==
tru
e
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
})
...
...
@@ -516,7 +562,7 @@ export default function UiTest() {
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
UiDriver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
swipe
(
300
,
6
00
,
300
,
300
)
await
driver
.
swipe
(
300
,
8
00
,
300
,
300
)
let
text
=
await
driver
.
findComponent
(
BY
.
text
(
'next page'
))
expect
(
text
==
null
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
...
...
@@ -812,9 +858,9 @@ export default function UiTest() {
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
let
scrollBar
=
await
driver
.
findComponent
(
ON
.
type
(
'Scroll'
)
.
scrollable
(
false
)
)
let
scrollBar
=
await
driver
.
findComponent
(
ON
.
type
(
'Scroll'
))
let
scrollable
=
await
scrollBar
.
isScrollable
()
expect
(
scrollable
==
fals
e
)
.
assertTrue
()
expect
(
scrollable
==
tru
e
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
})
...
...
@@ -1051,7 +1097,7 @@ export default function UiTest() {
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
swipe
(
300
,
6
00
,
300
,
300
)
await
driver
.
swipe
(
300
,
8
00
,
300
,
300
)
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
expect
(
text
==
null
)
.
assertTrue
()
let
scrollBar
=
await
driver
.
findComponent
(
ON
.
type
(
'Scroll'
))
...
...
@@ -1641,13 +1687,13 @@ export default function UiTest() {
let
button
=
await
driver
.
findComponent
(
ON
.
text
(
'jump'
))
await
button
.
longClick
()
await
driver
.
delayMs
(
waitUiReadyMs
)
let
text1
=
await
driver
.
findComponent
(
ON
.
text
(
'o
rang
e'
))
let
text2
=
await
driver
.
findComponent
(
ON
.
text
(
'
one
'
))
let
text1
=
await
driver
.
findComponent
(
ON
.
text
(
'o
n
e'
))
let
text2
=
await
driver
.
findComponent
(
ON
.
text
(
'
two
'
))
let
point1
=
await
text1
.
getBoundsCenter
()
let
point2
=
await
text2
.
getBoundsCenter
()
await
driver
.
drag
(
point1
.
x
,
point1
.
y
,
point2
.
x
,
point2
.
y
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'
four'
))
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'
one'
)
.
isBefore
(
ON
.
text
(
'two'
)
))
expect
(
text
==
null
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
})
...
...
@@ -1664,11 +1710,11 @@ export default function UiTest() {
let
button
=
await
driver
.
findComponent
(
ON
.
text
(
'jump'
))
await
button
.
longClick
()
await
driver
.
delayMs
(
waitUiReadyMs
)
let
text1
=
await
driver
.
findComponent
(
ON
.
text
(
'o
rang
e'
))
let
text2
=
await
driver
.
findComponent
(
ON
.
text
(
'
one
'
))
let
text1
=
await
driver
.
findComponent
(
ON
.
text
(
'o
n
e'
))
let
text2
=
await
driver
.
findComponent
(
ON
.
text
(
'
two
'
))
await
text1
.
dragTo
(
text2
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'
four'
))
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'
one'
)
.
isBefore
(
ON
.
text
(
'two'
)
))
expect
(
text
==
null
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
})
...
...
testfwk/uitestScene/AppScope/app.json
0 → 100644
浏览文件 @
8f7676c0
{
"app"
:
{
"bundleName"
:
"com.uitestScene.acts"
,
"vendor"
:
"example"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
"debug"
:
false
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:app_name"
,
"distributedNotificationEnabled"
:
true
,
"keepAlive"
:
true
,
"singleUser"
:
true
,
"minAPIVersion"
:
10
,
"targetAPIVersion"
:
10
,
"car"
:
{
"apiCompatibleVersion"
:
10
,
"singleUser"
:
false
}
}
}
testfwk/uitestScene/AppScope/resources/base/element/string.json
0 → 100644
浏览文件 @
8f7676c0
{
"string"
:[
{
"name"
:
"app_name"
,
"value"
:
"uitestScene"
}
]
}
\ No newline at end of file
testfwk/uitestScene/
src/main
/resources/base/media/icon.png
→
testfwk/uitestScene/
AppScope
/resources/base/media/icon.png
浏览文件 @
8f7676c0
文件已移动
testfwk/uitestScene/BUILD.gn
浏览文件 @
8f7676c0
...
...
@@ -14,25 +14,30 @@
import("//test/xts/tools/build/suite.gni")
ohos_hap_assist_suite("ActsUiTestScene") {
hap_profile = "
./src/main/config
.json"
hap_profile = "
entry/src/main/module
.json"
deps = [
":uitest_scene_ets_assets",
":uitest_scene_ets_resources",
]
ets2abc = true
js_build_mode = "debug"
testonly = true
certificate_profile = "
/
/test/xts/acts/testfwk/uitestScene/signature/auto_ohos_default_com.uitestScene.test.p7b"
certificate_profile = "
../../../../..
/test/xts/acts/testfwk/uitestScene/signature/auto_ohos_default_com.uitestScene.test.p7b"
hap_name = "ActsUiTestScene"
part_name = "arkxtest"
subsystem_name = "testfwk"
}
ohos_app_scope("uiTestScene_app_profile") {
app_profile = "AppScope/app.json"
sources = [ "AppScope/resources" ]
}
ohos_js_assets("uitest_scene_ets_assets") {
source_dir = "
./src/main/ets/MainAbility
"
source_dir = "
entry/src/main/ets
"
}
ohos_resources("uitest_scene_ets_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
sources = [ "entry/src/main/resources" ]
deps = [ ":uiTestScene_app_profile" ]
hap_profile = "entry/src/main/module.json"
}
testfwk/uitestScene/entry/src/main/ets/entryability/EntryAbility.ts
0 → 100644
浏览文件 @
8f7676c0
import
UIAbility
from
'
@ohos.app.ability.UIAbility
'
;
import
hilog
from
'
@ohos.hilog
'
;
import
window
from
'
@ohos.window
'
;
export
default
class
EntryAbility
extends
UIAbility
{
onCreate
(
want
,
launchParam
)
{
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
Ability onCreate
'
);
}
onDestroy
()
{
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
Ability onDestroy
'
);
}
onWindowStageCreate
(
windowStage
:
window
.
WindowStage
)
{
// Main window is created, set main page for this ability
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
Ability onWindowStageCreate
'
);
windowStage
.
loadContent
(
'
pages/Index
'
,
(
err
,
data
)
=>
{
if
(
err
.
code
)
{
hilog
.
error
(
0x0000
,
'
testTag
'
,
'
Failed to load the content. Cause: %{public}s
'
,
JSON
.
stringify
(
err
)
??
''
);
return
;
}
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
Succeeded in loading the content. Data: %{public}s
'
,
JSON
.
stringify
(
data
)
??
''
);
});
}
onWindowStageDestroy
()
{
// Main window is destroyed, release UI related resources
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
Ability onWindowStageDestroy
'
);
}
onForeground
()
{
// Ability has brought to foreground
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
Ability onForeground
'
);
}
onBackground
()
{
// Ability has back to background
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
Ability onBackground
'
);
}
}
testfwk/uitestScene/
src/main/ets/MainAbility/pages/i
ndex.ets
→
testfwk/uitestScene/
entry/src/main/ets/pages/I
ndex.ets
浏览文件 @
8f7676c0
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import router from '@system.router';
import prompt
from '@ohos.prompt
';
import prompt
Action from '@ohos.promptAction
';
@Entry
@Component
...
...
@@ -30,6 +30,33 @@ struct ScrollExample {
Stack({ alignContent: Alignment.TopStart }) {
Scroll(this.scroller) {
Column() {
Button('toast').fontSize(25).fontWeight(FontWeight.Bold)
.onClick(() => {
try {
promptAction.showToast({
message: 'toastShow',
duration: 60000
});
} catch (error) {
console.error(`showToast args error code is ${error.code}, message is ${error.message}`);
};
})
Button('dialog').fontSize(25).fontWeight(FontWeight.Bold)
.onClick(() => {
AlertDialog.show(
{
title: '',
message: 'dialogShow',
alignment: DialogAlignment.Bottom,
confirm: {
value: 'close',
action: () => {
console.info('close dialog')
}
}
}
)
})
Button() {
Text('next page')
.fontSize(25)
...
...
@@ -42,10 +69,10 @@ struct ScrollExample {
router.push({ uri: 'pages/second' })
})
.gesture(
LongPressGesture({ repeat: false })
.onAction((event: GestureEvent) => {
router.push({ uri: 'pages/fourth' })
})
LongPressGesture({ repeat: false })
.onAction((event: GestureEvent) => {
router.push({ uri: 'pages/fourth' })
})
)
Button() {
Text('Click twice')
...
...
@@ -55,10 +82,10 @@ struct ScrollExample {
.type(ButtonType.Capsule)
.margin({ top: 20 })
.gesture(
TapGesture({ count: 1 })
.onAction(() => {
router.push({ uri: 'pages/third' })
})
TapGesture({ count: 1 })
.onAction(() => {
router.push({ uri: 'pages/third' })
})
)
Button() {
Text(this.hoverText)
...
...
@@ -71,7 +98,7 @@ struct ScrollExample {
if (isHover) {
this.hoverText = 'hover'
}
})
})
.onMouse((event: MouseEvent) => {
switch (event.button) {
case MouseButton.Left :
...
...
@@ -89,10 +116,10 @@ struct ScrollExample {
router.push({ uri: 'pages/screen' })
})
.gesture(
LongPressGesture({ repeat: false })
.onAction((event: GestureEvent) => {
router.push({ uri: 'pages/drag' })
})
LongPressGesture({ repeat: false })
.onAction((event: GestureEvent) => {
router.push({ uri: 'pages/drag' })
})
)
Checkbox({ name: 'hi' })
.size({ width: 30, height: 30 })
...
...
testfwk/uitestScene/
src/main/ets/MainAbility
/pages/drag.ets
→
testfwk/uitestScene/
entry/src/main/ets
/pages/drag.ets
浏览文件 @
8f7676c0
文件已移动
testfwk/uitestScene/
src/main/ets/MainAbility
/pages/fourth.ets
→
testfwk/uitestScene/
entry/src/main/ets
/pages/fourth.ets
浏览文件 @
8f7676c0
文件已移动
testfwk/uitestScene/
src/main/ets/MainAbility
/pages/screen.ets
→
testfwk/uitestScene/
entry/src/main/ets
/pages/screen.ets
浏览文件 @
8f7676c0
...
...
@@ -22,7 +22,7 @@ struct Screen {
build() {
Column() {
Image($r('app.media.
computer
'))
Image($r('app.media.
test
'))
.objectFit(ImageFit.Auto)
.height(200)
.width(200)
...
...
testfwk/uitestScene/
src/main/ets/MainAbility
/pages/second.ets
→
testfwk/uitestScene/
entry/src/main/ets
/pages/second.ets
浏览文件 @
8f7676c0
文件已移动
testfwk/uitestScene/
src/main/ets/MainAbility
/pages/third.ets
→
testfwk/uitestScene/
entry/src/main/ets
/pages/third.ets
浏览文件 @
8f7676c0
文件已移动
testfwk/uitestScene/entry/src/main/module.json
0 → 100644
浏览文件 @
8f7676c0
{
"module"
:
{
"name"
:
"uitestScene"
,
"type"
:
"entry"
,
"description"
:
"$string:module_desc"
,
"mainElement"
:
"MainAbility"
,
"deviceTypes"
:
[
"tablet"
,
"default"
,
"phone"
],
"deliveryWithInstall"
:
true
,
"installationFree"
:
false
,
"pages"
:
"$profile:main_pages"
,
"abilities"
:
[
{
"name"
:
"com.uitestScene.acts.MainAbility"
,
"srcEntry"
:
"./ets/entryability/EntryAbility.ts"
,
"description"
:
"$string:EntryAbility_desc"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:EntryAbility_label"
,
"startWindowIcon"
:
"$media:icon"
,
"startWindowBackground"
:
"$color:start_window_background"
,
"exported"
:
true
,
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
]
}
]
}
}
\ No newline at end of file
testfwk/uitestScene/entry/src/main/resources/base/element/color.json
0 → 100644
浏览文件 @
8f7676c0
{
"color"
:
[
{
"name"
:
"start_window_background"
,
"value"
:
"#FFFFFF"
}
]
}
\ No newline at end of file
testfwk/uitestScene/src/main/resources/base/element/string.json
→
testfwk/uitestScene/
entry/
src/main/resources/base/element/string.json
浏览文件 @
8f7676c0
{
"string"
:
[
{
"name"
:
"
entry_MainAbility
"
,
"value"
:
"
Scene_MainAbility
"
"name"
:
"
module_desc
"
,
"value"
:
"
module description
"
},
{
"name"
:
"description_mainability"
,
"value"
:
"Scene_MainAbility"
},
{
"name"
:
"TestAbility_desc"
,
"name"
:
"EntryAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"
Test
Ability_label"
,
"name"
:
"
Entry
Ability_label"
,
"value"
:
"label"
}
]
...
...
testfwk/uitestScene/entry/src/main/resources/base/media/icon.png
0 → 100644
浏览文件 @
8f7676c0
6.6 KB
testfwk/uitestScene/entry/src/main/resources/base/media/test.png
0 → 100644
浏览文件 @
8f7676c0
45.7 KB
testfwk/uitestScene/entry/src/main/resources/base/profile/main_pages.json
0 → 100644
浏览文件 @
8f7676c0
{
"src"
:
[
"pages/Index"
,
"pages/second"
,
"pages/third"
,
"pages/fourth"
,
"pages/screen"
,
"pages/drag"
]
}
testfwk/uitestScene/entry/src/main/resources/en_US/element/string.json
0 → 100644
浏览文件 @
8f7676c0
{
"string"
:
[
{
"name"
:
"module_desc"
,
"value"
:
"module description"
},
{
"name"
:
"EntryAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"EntryAbility_label"
,
"value"
:
"label"
}
]
}
\ No newline at end of file
testfwk/uitestScene/entry/src/main/resources/zh_CN/element/string.json
0 → 100644
浏览文件 @
8f7676c0
{
"string"
:
[
{
"name"
:
"module_desc"
,
"value"
:
"模块描述"
},
{
"name"
:
"EntryAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"EntryAbility_label"
,
"value"
:
"label"
}
]
}
\ No newline at end of file
testfwk/uitestScene/src/main/config.json
已删除
100644 → 0
浏览文件 @
863bb0d3
{
"app"
:
{
"vendor"
:
"open"
,
"bundleName"
:
"com.uitestScene.acts"
,
"version"
:
{
"code"
:
1000000
,
"name"
:
"1.0.0"
},
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
8
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.uitestScene.acts"
,
"name"
:
".MyApplication"
,
"mainAbility"
:
".MainAbility"
,
"srcPath"
:
"MainAbility"
,
"deviceType"
:
[
"tablet"
,
"default"
,
"phone"
],
"distro"
:
{
"moduleType"
:
"entry"
,
"installationFree"
:
false
,
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
},
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"orientation"
:
"unspecified"
,
"visible"
:
true
,
"srcPath"
:
"MainAbility"
,
"name"
:
".MainAbility"
,
"srcLanguage"
:
"ets"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:description_mainability"
,
"formsEnabled"
:
false
,
"label"
:
"$string:entry_MainAbility"
,
"type"
:
"page"
,
"launchType"
:
"singleton"
}
],
"js"
:
[
{
"mode"
:
{
"syntax"
:
"ets"
,
"type"
:
"pageAbility"
},
"pages"
:
[
"pages/index"
,
"pages/second"
,
"pages/third"
,
"pages/fourth"
,
"pages/screen"
,
"pages/drag"
],
"name"
:
".MainAbility"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
\ No newline at end of file
testfwk/uitestScene/src/main/ets/MainAbility/app.ets
已删除
100644 → 0
浏览文件 @
863bb0d3
/**
* Copyright (c) 2022 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.
*/
export default {
onCreate() {
console.info('Application onCreate')
},
onDestroy() {
console.info('Application onDestroy')
},
}
\ No newline at end of file
testfwk/uitestScene/src/main/resources/base/media/computer.png
已删除
100644 → 0
浏览文件 @
863bb0d3
516.4 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录