提交 93d99a4e 编写于 作者: Z zhouke

modify.Signed-off-by: <zhouke35@huawei.com>.

Signed-off-by: Nzhouke <zhouke35@huawei.com>
上级 de6fa726
......@@ -18,7 +18,6 @@ ohos_js_hap_suite("ActsUiTest") {
deps = [
":uitest_ets_assets",
":uitest_ets_resources",
":uitest_ets_test_assets",
]
ets2abc = true
certificate_profile = "//test/xts/acts/arkXtest/uitest/signature/auto_ohos_default_com.uitest.test.p7b"
......@@ -29,10 +28,6 @@ ohos_js_assets("uitest_ets_assets") {
source_dir = "./src/main/ets/MainAbility"
}
ohos_js_assets("uitest_ets_test_assets") {
source_dir = "./src/main/ets/TestAbility"
}
ohos_resources("uitest_ets_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
......
......@@ -8,12 +8,6 @@
"shell-timeout": "180000"
},
"kits": [
{
"type": "PushKit",
"push": [
"ActsUiTestScene.hap -> /data/ActsUiTestScene.hap"
]
},
{
"test-file-name": [
"ActsUiTest.hap",
......
......@@ -24,8 +24,10 @@ export default {
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
abilityDelegatorArguments.parameters['-s timeout'] = 3000000
abilityDelegatorArguments.parameters['-s timeout'] = 300000
setTimeout(()=>{
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
},3000)
},
onDestroy() {
console.info('Application onDestroy')
......
/**
* 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
/**
* 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.
*/
@Entry
@Component
struct Index {
@State message: string = 'Hello World'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
......@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import abilityTest from './uitest.test'
import UiTest from './uitest.test'
export default function testsuite() {
abilityTest()
UiTest()
}
\ No newline at end of file
......@@ -37,7 +37,7 @@ async function stopApplication(bundleName: string) {
})
}
export default function uiTest() {
export default function UiTest() {
describe('UiTest', function () {
/*
......@@ -46,11 +46,8 @@ export default function uiTest() {
* @tc.desc: inject text to the target UiComponent
*/
it('testInputText', 0, async function () {
console.info('0000')
await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility')
console.info('11111')
let driver = UiDriver.create()
console.info('2222')
await driver.delayMs(waitUiReadyMs)
let input = await driver.findComponent(BY.type('TextInput'))
await input.inputText('123')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册