提交 9f62e878 编写于 作者: B bayanxing

UI组件 路由测试用例

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 b9f860dc
...@@ -57,501 +57,501 @@ describe('aceJsTest', function () { ...@@ -57,501 +57,501 @@ describe('aceJsTest', function () {
await sleep(1000) await sleep(1000)
}); });
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testButtonComponent * @tc.name testButtonComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testButtonComponent', 0, async function (done) { it('testButtonComponent', 0, async function (done) {
// console.info('testButtonComponent START'); console.info('testButtonComponent START');
// let result; let result;
// let options = { let options = {
// uri: 'pages/button/index' uri: 'pages/button/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// console.info("push button page success " + JSON.stringify(result)); console.info("push button page success " + JSON.stringify(result));
// } catch (err) { } catch (err) {
// console.error("push button page error " + JSON.stringify(result)); console.error("push button page error " + JSON.stringify(result));
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// console.info("[router.button] getState" + JSON.stringify(pages)); console.info("[router.button] getState" + JSON.stringify(pages));
// expect("pages/button/").assertEqual(pages.path); expect("pages/button/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0200 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0200
// * @tc.name testChartComponent * @tc.name testChartComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testChartComponent', 0, async function (done) { it('testChartComponent', 0, async function (done) {
// console.info('testButtonComponent START'); console.info('testButtonComponent START');
// let result; let result;
// let options = { let options = {
// uri: 'pages/chart/index' uri: 'pages/chart/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// console.info("push button page success " + JSON.stringify(result)); console.info("push button page success " + JSON.stringify(result));
// } catch (err) { } catch (err) {
// console.error("push button page error " + JSON.stringify(result)); console.error("push button page error " + JSON.stringify(result));
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// console.info("[router.chart] getState" + JSON.stringify(pages)); console.info("[router.chart] getState" + JSON.stringify(pages));
// expect("pages/chart/").assertEqual(pages.path); expect("pages/chart/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300
// * @tc.name testInputComponent * @tc.name testInputComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testInputComponent', 0, async function (done) { it('testInputComponent', 0, async function (done) {
// console.info('testButtonComponent START'); console.info('testButtonComponent START');
// let result; let result;
// let options = { let options = {
// uri: 'pages/input/index' uri: 'pages/input/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// console.info("push button page success " + JSON.stringify(result)); console.info("push button page success " + JSON.stringify(result));
// } catch (err) { } catch (err) {
// console.error("push button page error " + JSON.stringify(result)); console.error("push button page error " + JSON.stringify(result));
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// console.info("[router.input] getState" + JSON.stringify(pages)); console.info("[router.input] getState" + JSON.stringify(pages));
// expect("pages/input/").assertEqual(pages.path); expect("pages/input/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
// * @tc.name testSliderComponent * @tc.name testSliderComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testSliderComponent', 0, async function (done) { it('testSliderComponent', 0, async function (done) {
// console.info('testSliderComponent START'); console.info('testSliderComponent START');
// let result; let result;
// let options = { let options = {
// uri: 'pages/slider/index' uri: 'pages/slider/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// console.info("push button page success " + JSON.stringify(result)); console.info("push button page success " + JSON.stringify(result));
// } catch (err) { } catch (err) {
// console.error("push button page error " + JSON.stringify(result)); console.error("push button page error " + JSON.stringify(result));
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// console.info("[router.slider] getState" + JSON.stringify(pages)); console.info("[router.slider] getState" + JSON.stringify(pages));
// expect("pages/slider/").assertEqual(pages.path); expect("pages/slider/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
// * @tc.name testTextComponent * @tc.name testTextComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testTextComponent', 0, async function (done) { it('testTextComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/text/index' uri: 'pages/text/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/text/").assertEqual(pages.path); expect("pages/text/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
// * @tc.name testLabelComponent * @tc.name testLabelComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testLabelComponent', 0, async function (done) { it('testLabelComponent', 0, async function (done) {
// console.info('testLabelComponent START'); console.info('testLabelComponent START');
// let result; let result;
// let options = { let options = {
// uri: 'pages/label/index' uri: 'pages/label/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/label/").assertEqual(pages.path); expect("pages/label/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testDividerComponent * @tc.name testDividerComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testDividerComponent', 0, async function (done) { it('testDividerComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/divider/index' uri: 'pages/divider/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/divider/").assertEqual(pages.path); expect("pages/divider/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testGetImageComponent * @tc.name testGetImageComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testGetImageComponent', 0, async function (done) { it('testGetImageComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/image/index' uri: 'pages/image/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/image/").assertEqual(pages.path); expect("pages/image/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testGetMenuComponent * @tc.name testGetMenuComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testGetMenuComponent', 0, async function (done) { it('testGetMenuComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/menu/index' uri: 'pages/menu/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/menu/").assertEqual(pages.path); expect("pages/menu/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testRatingComponent * @tc.name testRatingComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testRatingComponent', 0, async function (done) { it('testRatingComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/rating/index' uri: 'pages/rating/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/rating/").assertEqual(pages.path); expect("pages/rating/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testSearchComponent * @tc.name testSearchComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testSearchComponent', 0, async function (done) { it('testSearchComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/search/index' uri: 'pages/search/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/search/").assertEqual(pages.path); expect("pages/search/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testToolbarComponent * @tc.name testToolbarComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testToolbarComponent', 0, async function (done) { it('testToolbarComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/toolbar/index' uri: 'pages/toolbar/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/toolbar/").assertEqual(pages.path); expect("pages/toolbar/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testTextareaComponent * @tc.name testTextareaComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testTextareaComponent', 0, async function (done) { it('testTextareaComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/textarea/index' uri: 'pages/textarea/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/textarea/").assertEqual(pages.path); expect("pages/textarea/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testSpanComponent * @tc.name testSpanComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testSpanComponent', 0, async function (done) { it('testSpanComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/span/index' uri: 'pages/span/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/span/").assertEqual(pages.path); expect("pages/span/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testSwitchComponent * @tc.name testSwitchComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testSwitchComponent', 0, async function (done) { it('testSwitchComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/switch/index' uri: 'pages/switch/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/switch/").assertEqual(pages.path); expect("pages/switch/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testToggleComponent * @tc.name testToggleComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testToggleComponent', 0, async function (done) { it('testToggleComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/toggle/index' uri: 'pages/toggle/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/toggle/").assertEqual(pages.path); expect("pages/toggle/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testOptionComponent * @tc.name testOptionComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testOptionComponent', 0, async function (done) { it('testOptionComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/option/index' uri: 'pages/option/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/option/").assertEqual(pages.path); expect("pages/option/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerComponent * @tc.name testPickerComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testPickerComponent', 0, async function (done) { it('testPickerComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/picker/index' uri: 'pages/picker/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/picker/").assertEqual(pages.path); expect("pages/picker/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerViewComponent * @tc.name testPickerViewComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testPickerViewComponent', 0, async function (done) { it('testPickerViewComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/pickerView/index' uri: 'pages/pickerView/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/pickerView/").assertEqual(pages.path); expect("pages/pickerView/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPieceComponent * @tc.name testPieceComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testPieceComponent', 0, async function (done) { it('testPieceComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/piece/index' uri: 'pages/piece/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/piece/").assertEqual(pages.path); expect("pages/piece/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testProgressComponent * @tc.name testProgressComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testProgressComponent', 0, async function (done) { it('testProgressComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/progress/index' uri: 'pages/progress/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/progress/").assertEqual(pages.path); expect("pages/progress/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testQrcodeComponent * @tc.name testQrcodeComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testQrcodeComponent', 0, async function (done) { it('testQrcodeComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/qrcode/index' uri: 'pages/qrcode/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/qrcode/").assertEqual(pages.path); expect("pages/qrcode/").assertEqual(pages.path);
// done(); done();
// }); });
//
// /** /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testSelectComponent * @tc.name testSelectComponent
// * @tc.desc ACE * @tc.desc ACE
// */ */
// it('testSelectComponent', 0, async function (done) { it('testSelectComponent', 0, async function (done) {
// let result; let result;
// let options = { let options = {
// uri: 'pages/select/index' uri: 'pages/select/index'
// } }
// try { try {
// result = router.push(options) result = router.push(options)
// } catch (err) { } catch (err) {
// result = err result = err
// } }
// await sleep(1000) await sleep(1000)
// let pages = router.getState(); let pages = router.getState();
// expect("pages/select/").assertEqual(pages.path); expect("pages/select/").assertEqual(pages.path);
// done(); done();
// }); });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册