Authored by 朱小军

提交任务脚本

const {
iOS_TAB_CATEGORY
} = require('../../scene-types/scene-types');
module.exports = {
[iOS_TAB_CATEGORY]:[]
};
\ No newline at end of file
... ...
... ... @@ -7,7 +7,7 @@ module.exports = {
{op: 'YB_LAUNCH_APP', name: '启动app', single: true},
{op: 'YB_ENTER_CHOICE', name: '性别男女入口', single: true, validate: (log) => {
return ((log.param.ENT_TYP === '1' && log.param.SUB_C_ID === '1' && log.param.C_ID === '1')
|| (log.param.ENT_TYP === '2' && log.param.SUB_C_ID === '2' && log.param.C_ID === '2'));
|| (log.param.ENT_TYP === '0' && log.param.SUB_C_ID === '2' && log.param.C_ID === '2'));
}},
{op: 'YB_MAIN_SHOW', name: 'tabbar首页点击'},
{op: 'YB_PAGE_ENTER', name: '首页载入', equals: { PAGE_ID: 'sy' }},
... ... @@ -30,13 +30,13 @@ module.exports = {
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel1', equals: { CHANNEL_ID: '1', SUB_C_ID:'1'}},
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel2', equals: { CHANNEL_ID: '2', SUB_C_ID:'2'}},
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel3', equals: { CHANNEL_ID: '3', SUB_C_ID:'3'}},
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel2073', equals: { CHANNEL_ID: '2073', SUB_C_ID:'2073'}},
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel1951', equals: { CHANNEL_ID: '1951', SUB_C_ID:'1951'}},
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel1469', equals: { CHANNEL_ID: '1469', SUB_C_ID:'1469'}},
{op: 'YB_HOME_CHANNEL_TAB_C', name: '首页内tab_channel3', equals: { CHANNEL_ID: '3', SUB_C_ID:'3'}},
{op: 'YB_MAIN_LT_CHS'},//侧边栏
//TODO:默认
//TODO:第一次默认选中的男或者女的YB_HOME_CHANNEL_TAB_C事件检测规则
// {op: 'YB_MY_MESS'},//消息中心
// {op: 'YB_MAIN_S'},//搜索
// {op: 'YB_MAIN_RT'},//扫描
... ...
const {
iOS_TAB_MINE
} = require('../../scene-types/scene-types');
module.exports = {
[iOS_TAB_MINE]:[]
};
\ No newline at end of file
... ...
const {
iOS_TAB_UFOHOME
} = require('../../scene-types/scene-types');
module.exports = {
[iOS_TAB_UFOHOME]:[
{}
]
};
\ No newline at end of file
... ...
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {iOS_BUSINESS_SHOPPING} = require('../../scene-types/scene-types');
describe(iOS_BUSINESS_SHOPPING,'购物车-下单', async(driver) => {
};
\ No newline at end of file
... ...
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {iOS_TAB_CATEGORY} = require('../../scene-types/scene-types');
describe(iOS_TAB_CATEGORY,'分类(品类&品牌)', async(driver) => {
};
\ No newline at end of file
... ...
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {iOS_TAB_GUANG} = require('../../scene-types/scene-types');
describe(iOS_TAB_GUANG,'逛(有货社区)', async(driver) => {
};
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@ const wd = require('wd');
const {describe} = require('../../libs/driver');
const {iOS_TAB_HOME} = require('../../scene-types/scene-types');
describe(iOS_TAB_HOME,'首页测试', async(driver) => {
describe(iOS_TAB_HOME,'首页', async(driver) => {
let touchTab = await driver.waitForElementByAccessibilityId('home drawer entrance',10000);
await touchTab.click();
await new Promise(r => {
... ... @@ -15,12 +15,9 @@ describe(iOS_TAB_HOME,'首页测试', async(driver) => {
.moveTo({x: 191, y: 162})
.release()
.perform()
// let action = new wd.TouchAction();
// action.press({x: 300, y: 10});
// await action.perform();
touchTab = await driver.waitForElementByAccessibilityId('homeSearch',5000);
await touchTab.click();
// touchTab = await driver.waitForElementByAccessibilityId('homeSearch',5000);
// await touchTab.click();
// touchTab = await driver.waitForElementByAccessibilityId('home message center',10000);
// await touchTab.click();
... ...
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {iOS_TAB_MINE} = require('../../scene-types/scene-types');
describe(iOS_TAB_MINE,'我的', async(driver) => {
let touchTab = await driver.waitForElementByAccessibilityId('ufoBannerBg',10000);
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('cpsBannerBg',5000);
await touchTab.click();
};
\ No newline at end of file
... ...
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {iOS_TAB_UFOHOME} = require('../../scene-types/scene-types');
describe(iOS_TAB_UFOHOME,'UFO首页', async(driver) => {
};
\ No newline at end of file
... ...