全部的配置文件
userName_input:
type: id
value: username
password_input:
type: id
value: password
login_button:
type: id
value: login-btn
menuTopList:
type: XPath
value: “//*[contains(@class,‘ivu-menu-item’)]”
menuLeftLists:
type: XPath
value: “//*[contains(@class,‘ivu-menu-submenu’)]”
breadCrumb:
type: className
value: ivu-breadcrumb
yunKaiPiao:
type: XPath
value: “//*[contains(@class,‘bw-yunkaipiao’)]”
xiaoXiang:
type: XPath
value: “//*[contains(@class,‘bw-xiaoxiang’)]”
buyerTable:
type: className
value: trader
goodsTable:
type: className
value: grid-list-body-data
ifTax_button:
type: XPath
value: “//*[contains(@class,‘switch-item’)]”
sales_input:
type: XPath
value: “/html/body/div[7]/div[2]/div/div/div[2]/div/div[1]/div/div[2]/input”
difference_input:
type: XPath
value: “/html/body/div[7]/div[2]/div/div/div[2]/div/div[2]/div/div[2]/input”
note_input:
type: className
value: remark
goodsName_input:
type: className
value: ivu-input
all_button:
type: XPath
value: “//*[contains(@class,‘bw-btn bw-btn-first’)]”
goodsWrapTable:
type: XPath
value: “//*[contains(@class,‘ivu-table-body ivu-table-overflowX’)]/table”
ticketRegion:
type: className
value: region
ok_button1:
type: XPath
#value: “//[contains(@class,‘ivu-btn-large’)]"
value: "//[contains(@class,‘ivu-btn’)]”
discountTax_radio:
type: XPath
value: “//*[contains(@class,‘ivu-radio-wrapper ivu-radio-group-item’)]”
discountAmount_input:
type: className
value: ivu-input-number-input
issuedPomp:
type: className
value: ivu-modal-body
customerInfo_input:
type: className
value: inputground
closeBtn:
type: className
value: ivu-modal-close
#language: zh-CN
功能: 发票开具验证
场景大纲: 用户登录
假设 输入正确的用户名"“密码”"
当 点击用户登录按钮
那么 进入网站首页面
例子:
| userName | password |
| userName | password |
#该方法可通用,可到任意页面
#场景大纲: 进入发票开具页面
# 假设 保持当前页不变
# 当 用户进入销项"<item>"某云开票下菜单"<menu>"的其他菜单的"<open>"页面,单击该页面下的"<ticket>"菜单
# 那么 该用户成功进入该"<ticketName>"菜单
# 例子:
# | item | menu | open | ticket | ticketName |
# |销项 | 云开票 | 发票开具 | 正数发票(普票) | 正数发票(普票) |
#|销项 | 云单据 |待开发票管理 | | 待开发票管理 |
# | | | | | |
#|销项 | 云开票 | 发票开具 | 负数发票(普票) | 负数发票(普票) |
场景大纲: 普票开具发票
假设 选择票面类型"<ticketName>",是否含税"<ifTax>"是否差额征收"<ifLevyDifference>"是否清单"<ifList>",输入客户邮箱"<email>"手机号"<phone>"