Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
071820cf
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
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看板
提交
071820cf
编写于
2月 01, 2023
作者:
L
lwx1121892
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<修改测试框架>
Signed-off-by:
N
lwx1121892
<
liuxueqi3@huawei.com
>
上级
5a67849f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
26 deletion
+11
-26
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/MainAbility/pages/index/index.ets
...ayer/entry/src/main/ets/MainAbility/pages/index/index.ets
+7
-22
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerHlsFuncTest.test.js
...layer/entry/src/main/ets/test/AVPlayerHlsFuncTest.test.js
+1
-1
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerHttpCompatibilityTest.test.ets
.../src/main/ets/test/AVPlayerHttpCompatibilityTest.test.ets
+1
-1
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerHttpSeekTest.test.ets
...yer/entry/src/main/ets/test/AVPlayerHttpSeekTest.test.ets
+1
-1
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js
...vPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js
+1
-1
未找到文件。
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/MainAbility/pages/index/index.ets
浏览文件 @
071820cf
...
...
@@ -12,11 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
file from '@system.file';
import {
Core, ExpectExtend, InstrumentLog, ReportExtend } from "deccjsunit/index"
import
AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import {
Hypium } from '@ohos/hypium'
import testsuite from "../../../test/List.test.ets"
import featureAbility from "@ohos.ability.featureAbility"
import { UiDriver, BY } from '@ohos.uitest'
var mXComponentController: XComponentController = new XComponentController()
var surfaceId: any
...
...
@@ -26,7 +24,7 @@ var surfaceId: any
struct Index {
aboutToAppear() {
console.info("start run testcase!!!!");
}
}
build() {
Flex() {
XComponent({
...
...
@@ -41,23 +39,10 @@ struct Index {
surfaceId = mXComponentController.getXComponentSurfaceId()
globalThis.value = surfaceId
console.info('CameraModuleTest: XComponent onLoad surfaceId: ' + globalThis.value)
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
const reportExtend = new ReportExtend(file)
core.addService('report', reportExtend)
core.init()
core.subscribeEvent('task', reportExtend)
const configService = core.getDefaultService('config')
globalThis.abilityWant.parameters.timeout = 70000;
configService.setConfig(globalThis.abilityWant.parameters)
console.info('testsuite()---->')
testsuite()
core.execute()
console.info('core.execute()---->')
var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
})
.width('1920px')
.height('1080px')
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerHlsFuncTest.test.js
浏览文件 @
071820cf
...
...
@@ -15,7 +15,7 @@
import
media
from
'
@ohos.multimedia.media
'
import
*
as
mediaTestBase
from
'
../../../../../../MediaTestBase
'
;
import
*
as
AVPlayerTestBase
from
'
../../../../../../AVPlayerTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
export
default
function
AVPlayerHlsFuncTest
()
{
describe
(
'
AVPlayerHlsFuncTest
'
,
function
()
{
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerHttpCompatibilityTest.test.ets
浏览文件 @
071820cf
...
...
@@ -15,7 +15,7 @@
import {testAVPlayerFun} from '../../../../../../AVPlayerTestBase.js';
import * as mediaTestBase from '../../../../../../MediaTestBase';
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '
deccjsunit/index
';
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '
@ohos/hypium
';
export default function AVPlayerHttpCompatibilityTest() {
describe('AVPlayerHttpCompatibilityTest', function () {
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerHttpSeekTest.test.ets
浏览文件 @
071820cf
...
...
@@ -15,7 +15,7 @@
import {testAVPlayerSeek} from '../../../../../../AVPlayerTestBase.js';
import * as mediaTestBase from '../../../../../../MediaTestBase';
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '
deccjsunit/index
';
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '
@ohos/hypium
';
export default function AVPlayerHttpSeekTest() {
describe('AVPlayerHttpSeekTest', function () {
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js
浏览文件 @
071820cf
...
...
@@ -17,7 +17,7 @@ import * as mediaTestBase from '../../../../../../MediaTestBase';
import
media
from
'
@ohos.multimedia.media
'
import
audio
from
'
@ohos.multimedia.audio
'
;
import
{
testAVPlayerFun
,
AV_PLAYER_STATE
,
setSource
}
from
'
../../../../../../AVPlayerTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
export
default
function
AVPlayerLocalTest
()
{
describe
(
'
AVPlayerLocalTest
'
,
function
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录