gauge-python icon indicating copy to clipboard operation
gauge-python copied to clipboard

[SOS]When i update getgauge==0.3.14,it does not work well(Chinease support is unfriendly)

Open yicaifeitian opened this issue 4 years ago • 4 comments

Describe the bug A clear and concise description of what the bug is. Because my project py script contains chinease. image

image

To Reproduce Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project
  2. Use the following piece of code
  3. Run the gauge command
  4. See error
$ gauge init python
$ gauge run specs

Logs

Paste any log or error messages here

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Versions:

  • OS [e.g. 10.15.6 (19G2021) please be specific ]
  • Python version 3.8.6
gauge -v
1.1.6

Additional context Add any other context about the problem here.

yicaifeitian avatar Jan 04 '21 01:01 yicaifeitian

Is my image broken?

yicaifeitian avatar Jan 04 '21 01:01 yicaifeitian

when i pip install -U getgauge==0.3.14, and call gauge run specs .this is error log, may be encoding='utf-8' Python: 3.8.6 Failed to parse E:\pyProject\scf-ui-test\step_impl\coal_basic.py: 'gbk' codec can't decode byte 0x80 in position 2385: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\coal_char_impl.py: 'gbk' codec can't decode byte 0x80 in position 161: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\coal_purchase_contract_list_impl.py: 'gbk' codec can't decode byte 0x80 in position 623: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\contract_sign.py: 'gbk' codec can't decode byte 0x86 in position 892: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\core_enr_impl.py: 'gbk' codec can't decode byte 0x80 in position 831: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\login.py: 'gbk' codec can't decode byte 0xac in position 164: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\material.py: 'gbk' codec can't decode byte 0xb7 in position 344: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\menu_url.py: 'gbk' codec can't decode byte 0x80 in position 26: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\supplier_coal_contract_sign_query.py: 'gbk' codec can't decode byte 0x88 in position 1359: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\way_bill.py: 'gbk' codec can't decode byte 0xae in position 412: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\钢贸服务场景_impl.py: 'gbk' codec can't decode byte 0xa7 in position 751: illegal multibyte sequence Failed to parse E:\pyProject\scf-ui-test\step_impl\util\common.py: 'gbk' codec can't decode byte 0xad in position 229: illegal multibyte sequence [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:18 Step implementation not found => '用户打开Ie浏览器,进入登录页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:4 Step implementation not found => '依次输入用户名、密码,点击登录按钮

' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:22 Step implementation not found => '检查登录状态' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:36 Step implementation not found => '进入 <moudle_name> 模块' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:42 Step implementation not found => '选择核心企业证书并输入口令' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:13 Step implementation not found => '进入 "合同签署" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:15 Step implementation not found => '点击合同签署按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:17 Step implementation not found => '选择'采购合同'合同类型' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:19 Step implementation not found => '点击'关联'按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:21 Step implementation not found => '选择第一个合同' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:23 Step implementation not found => '点击 "下一步" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:25 Step implementation not found => '拖曳盖章并确认' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise sign contract.spec:27 Step implementation not found => '点击 "立即发送" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:26 Step implementation not found => '进入 <page_name> 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:27 Step implementation not found => '新建采购合同信息' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:31 Step implementation not found => '进入审批页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:32 Step implementation not found => '采购合同审批《预览与下载》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:33 Step implementation not found => '采购合同审批《退回》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:34 Step implementation not found => '采购合同审批《重新提交》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:35 Step implementation not found => '采购合同审批通过《错误密码》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:36 Step implementation not found => '采购合同审批通过《正确密码》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:40 Step implementation not found => '进入审批页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:41 Step implementation not found => '采购合同审批《退回》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:42 Step implementation not found => '添加多行输入内容提交---提交' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:43 Step implementation not found => '进入审批页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:44 Step implementation not found => '采购合同审批《退回》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:45 Step implementation not found => '删除多行---提交' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:46 Step implementation not found => '进入审批页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:47 Step implementation not found => '采购合同审批《退回》' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:48 Step implementation not found => '删除所有---提交' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:51 Step implementation not found => '进入 <page_name> 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:52 Step implementation not found => '采购信息合同---新建---添加多行' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:3 Step implementation not found => '进入 <page_name> 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:4 Step implementation not found => '填写必填项-》【X】/【取消】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:5 Step implementation not found => '不填写必填项-》【确定】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:6 Step implementation not found => '正确填写部分必填项-》【确定】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:7 Step implementation not found => '正确填写所有必填项-》【确定】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\油品---临时添加合同步骤.cpt:35 Step implementation not found => '审批通过,无需验证"0"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:3 Step implementation not found => '进入 "合同签署" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:5 Step implementation not found => '点击合同签署按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:7 Step implementation not found => '选择'采购合同'合同类型' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:9 Step implementation not found => '点击'关联'按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:11 Step implementation not found => '选择第一个合同' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:13 Step implementation not found => '点击 "下一步" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:15 Step implementation not found => '拖曳盖章并确认' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:17 Step implementation not found => '点击 "立即发送" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:58 Step implementation not found => '点击退出系统按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:11 Step implementation not found => '依次输入用户名、密码,点击登录按钮
' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:62 Step implementation not found => '检查登录状态' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:64 Step implementation not found => '进入 <moudle_name> 模块' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:66 Step implementation not found => '选择供应商证书并输入口令' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:23 Step implementation not found => '进入 "供应商签署合同" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:25 Step implementation not found => '选择任一待签署合同-》【签署】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:27 Step implementation not found => '预览/下载合同附件' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:29 Step implementation not found => '滑到中间位置' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:31 Step implementation not found => '拖曳盖章并确认' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:33 Step implementation not found => '检查是否确认成功' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:35 Step implementation not found => '【签署】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\采购合同签署.cpt:37 Step implementation not found => '验证签署成功' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:70 Step implementation not found => '点击退出系统按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:74 Step implementation not found => '检查登录状态' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:76 Step implementation not found => '进入 <moudle_name> 模块' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:78 Step implementation not found => '选择核心企业证书并输入口令' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:11 Step implementation not found => '进入 "油品>运单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:3 Step implementation not found => '点击 "新建运单" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:5 Step implementation not found => '"预计送达时间"输入为"3"天后' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:7 Step implementation not found => '选择供应商' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:9 Step implementation not found => '点击'关联'按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:11 Step implementation not found => '选择第一个合同' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:13 Step implementation not found => '点击 "提交" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:15 Step implementation not found => '点击 "确认提交" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:17 Step implementation not found => '检查结果' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:15 Step implementation not found => '记录合同编号,待后续验证"6""待审批"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:17 Step implementation not found => '审核退回"1"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:19 Step implementation not found => '重新提交"3"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:21 Step implementation not found => '审核通过"1"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:31 Step implementation not found => '进入 "油品>物资签收单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:3 Step implementation not found => '点击 "新建物资签收单" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:5 Step implementation not found => '点击'关联'按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:7 Step implementation not found => '选择第一个合同' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:9 Step implementation not found => '"物资签收单编号:"输入时间序列号' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:11 Step implementation not found => '"车牌号:"输入"粤LT079U"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:13 Step implementation not found => '"发货时间:"输入为"1"天后' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:15 Step implementation not found => '"实际送达时间:"输入为"1"天后' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:17 Step implementation not found => '"出库证明/物流证明/签收证明:"上传附件' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:19 Step implementation not found => '右侧滚动条拖动到底部' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:21 Step implementation not found => '勾选第一行复选框' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:23 Step implementation not found => '点击'录入'按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:25 Step implementation not found => '"物资签收单数量(吨):"输入"10"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:27 Step implementation not found => '点击 "提 交" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:29 Step implementation not found => '点击 "提交" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:31 Step implementation not found => '点击 "确认提交" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-物资签收单.cpt:33 Step implementation not found => '检查结果' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:35 Step implementation not found => '审批物资签收单---通过' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:37 Step implementation not found => '进入 "油品>运单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:25 Step implementation not found => '验证运单"待提交结算"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:27 Step implementation not found => '提交结算申请' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:29 Step implementation not found => '验证运单"待结算"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:31 Step implementation not found => '待结算-待审批' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:33 Step implementation not found => '验证运单"待结算-待审批"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:35 Step implementation not found => '审核退回"5"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:37 Step implementation not found => '验证运单"待结算-审批驳回"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:39 Step implementation not found => '重新提交"6"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:41 Step implementation not found => '验证运单"待结算-待审批"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:43 Step implementation not found => '审核通过"5"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:45 Step implementation not found => '验证运单"已结算"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:47 Step implementation not found => '进入 "油品>物资签收单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil waybill.spec:49 Step implementation not found => '验证物资签收单是否处于"已签收""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\h5端用户登录.cpt:4 Step implementation not found => '用户打开Chrome浏览器,进入登录页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\h5端用户登录.cpt:6 Step implementation not found => '依次输入' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\h5端用户登录.cpt:8 Step implementation not found => '获取验证码' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\h5端用户登录.cpt:10 Step implementation not found => '输入验证码"888888"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\h5端用户登录.cpt:12 Step implementation not found => '触点登录按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:12 Step implementation not found => '进入 <page_name> 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:13 Step implementation not found => '【添加】-》正确填写所有必填项-》【确定】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:16 Step implementation not found => '进入 <page_name> 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:17 Step implementation not found => '【审核】-》审核退回' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:18 Step implementation not found => '【编辑】-》【重新提交】' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:19 Step implementation not found => '【审核】-》 审核通过' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:20 Step implementation not found => '【变更收货人】-》【提交】1' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:21 Step implementation not found => '【审批收货人】-》审核退回' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:22 Step implementation not found => '【变更收货人】-》【提交】2' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\供应链金融场景.cpt:23 Step implementation not found => '【审批收货人】-》审核通过' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\油品---临时添加合同步骤.cpt:19 Step implementation not found => '进入 "油品>运单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\油品---临时添加合同步骤.cpt:21 Step implementation not found => '点击 "新建运单" 按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\油品---临时添加合同步骤.cpt:25 Step implementation not found => '审批通过,无需验证"1"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\油品---临时添加合同步骤.cpt:9 Step implementation not found => '进入 "油品>物资签收单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:11 Step implementation not found => '记录合同编号,待后续验证"1""待收货-待审批"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:13 Step implementation not found => '审批物资签收单---退回' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:15 Step implementation not found => '验证物资签收单"待收货-审批驳回""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:17 Step implementation not found => '审批物资签收单---重新提交' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:19 Step implementation not found => '验证物资签收单"待收货-待审批""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:21 Step implementation not found => '审批物资签收单---通过' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage oil sign.spec:23 Step implementation not found => '验证物资签收单"待签收""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:10 Step implementation not found => '进入 "邀请/关联" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:11 Step implementation not found => '记录页面列表条数' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:12 Step implementation not found => '点击邀请企业按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:13 Step implementation not found => '依次输入 企业名称、邮箱、备注,"润邦保理"、"[email protected]"、"保理是供应链金融的其中一个业务"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:14 Step implementation not found => '选择'邮件邀请'方式' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:15 Step implementation not found => '启动'应收账款融资',勾选'供应商'' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:16 Step implementation not found => '启动'预付款款融资',勾选'经销商'' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:17 Step implementation not found => '点击'确认邀请'按钮' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise invite company.spec:18 Step implementation not found => '检查新增记录是否存在' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise travel all page.spec:12 Step implementation not found => '遍历 "应收账款融资" 菜单页面
' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise travel all page.spec:56 Step implementation not found => '遍历 "预付账款融资" 菜单页面
' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise travel all page.spec:75 Step implementation not found => '遍历 "运营模块" 菜单页面
' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Core Enterprise travel all page.spec:97 Step implementation not found => '遍历 "基础模块" 菜单页面
' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\煤焦---临时添加合同步骤.cpt:33 Step implementation not found => '审批通过,无需验证"0"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\煤焦---临时添加合同步骤.cpt:19 Step implementation not found => '进入 "运单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\煤焦---临时添加合同步骤.cpt:23 Step implementation not found => '审批通过,无需验证"1"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\煤焦---临时添加合同步骤.cpt:9 Step implementation not found => '进入 "物资签收单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:11 Step implementation not found => '记录合同编号,待后续验证"1""待收货-待审批"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:13 Step implementation not found => '审批物资签收单---退回' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:15 Step implementation not found => '验证物资签收单"待收货-审批驳回""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:17 Step implementation not found => '审批物资签收单---重新提交' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:19 Step implementation not found => '验证物资签收单"待收货-待审批""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:21 Step implementation not found => '审批物资签收单---通过' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal sign.spec:23 Step implementation not found => '验证物资签收单"待签收""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:13 Step implementation not found => '进入 "运单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:17 Step implementation not found => '记录合同编号,待后续验证"6""待审批"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:19 Step implementation not found => '审核退回"1"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:21 Step implementation not found => '重新提交"3"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:23 Step implementation not found => '审核通过"1"' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:21 Step implementation not found => '进入 "物资签收单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:25 Step implementation not found => '审批物资签收单---通过' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\核心企业-运单.cpt:27 Step implementation not found => '进入 "运单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:27 Step implementation not found => '验证运单"待提交结算"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:29 Step implementation not found => '提交结算申请' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:31 Step implementation not found => '验证运单"待结算"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:33 Step implementation not found => '待结算-待审批' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:35 Step implementation not found => '验证运单"待结算-待审批"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:37 Step implementation not found => '审核退回"5"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:39 Step implementation not found => '验证运单"待结算-审批驳回"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:41 Step implementation not found => '重新提交"6"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:43 Step implementation not found => '验证运单"待结算-待审批"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:45 Step implementation not found => '审核通过"5"' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:47 Step implementation not found => '验证运单"已结算"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:49 Step implementation not found => '进入 "物资签收单管理" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\CoreEnterprise\Manage coal waybill.spec:51 Step implementation not found => '验证物资签收单是否处于"已签收""2"状态' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:26 Step implementation not found => '用户打开Ie浏览器,进入登录页面' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:30 Step implementation not found => '检查登录状态' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:48 Step implementation not found => '进入 <moudle_name> 模块' [ValidationError] E:\pyProject\scf-ui-test\specs\concept\web端用户登录.cpt:54 Step implementation not found => '选择供应商证书并输入口令' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:11 Step implementation not found => '进入 "供应商签署合同" 页面' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:13 Step implementation not found => '选择任一待签署合同-》【签署】' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:15 Step implementation not found => '预览/下载合同附件' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:17 Step implementation not found => '滑到中间位置' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:19 Step implementation not found => '拖曳盖章并确认' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:21 Step implementation not found => '检查是否确认成功' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:23 Step implementation not found => '【签署】' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier sign contract.spec:25 Step implementation not found => '验证签署成功' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier travel all page.spec:13 Step implementation not found => '遍历 "应收账款融资" 菜单页面
' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier travel all page.spec:40 Step implementation not found => '遍历 "运营模块" 菜单页面
' [ValidationError] E:\pyProject\scf-ui-test\specs\Supplier\Supplier travel all page.spec:60 Step implementation not found => '遍历 "基础模块" 菜单页面
' Add the following missing implementations to fix Step implementation not found errors.

@step("用户打开Ie浏览器,进入登录页面") def jsbkpv(): assert False, "Add implementation code"

@step("依次输入用户名、密码,点击登录按钮

") def pggtdc(table): assert False, "Add implementation code"

@step("检查登录状态") def 检查登录状态(): assert False, "Add implementation code"

@step("进入 <moudle_name> 模块") def 进入_模块(moudle_name): assert False, "Add implementation code"

@step("选择核心企业证书并输入口令") def 选择核心企业证书并输入口令(): assert False, "Add implementation code"

@step("进入 <邀请/关联> 页面") def 进入_页面(arg1): assert False, "Add implementation code"

@step("【添加】-》正确填写所有必填项-》【确定】") def rdavcj(): assert False, "Add implementation code"

@step("【审核】-》审核退回") def hidyrd(): assert False, "Add implementation code"

@step("【编辑】-》【重新提交】") def odxheo(): assert False, "Add implementation code"

@step("【审核】-》 审核通过") def yiipzu(): assert False, "Add implementation code"

@step("【变更收货人】-》【提交】1") def pdzyli(): assert False, "Add implementation code"

@step("【审批收货人】-》审核退回") def gfmhlv(): assert False, "Add implementation code"

@step("【变更收货人】-》【提交】2") def xawxra(): assert False, "Add implementation code"

@step("【审批收货人】-》审核通过") def tbkorf(): assert False, "Add implementation code"

@step("填写必填项-》【X】/【取消】") def zvmbmk(): assert False, "Add implementation code"

@step("不填写必填项-》【确定】") def euiows(): assert False, "Add implementation code"

@step("正确填写部分必填项-》【确定】") def tstzjh(): assert False, "Add implementation code"

@step("正确填写所有必填项-》【确定】") def kbaubd(): assert False, "Add implementation code"

@step("新建采购合同信息") def 新建采购合同信息(): assert False, "Add implementation code"

@step("进入审批页面") def 进入审批页面(): assert False, "Add implementation code"

@step("采购合同审批《预览与下载》") def xmgyur(): assert False, "Add implementation code"

@step("采购合同审批《退回》") def dheqtx(): assert False, "Add implementation code"

@step("采购合同审批《重新提交》") def nyywlw(): assert False, "Add implementation code"

@step("采购合同审批通过《错误密码》") def aymkbx(): assert False, "Add implementation code"

@step("采购合同审批通过《正确密码》") def qynbmg(): assert False, "Add implementation code"

@step("添加多行输入内容提交---提交") def wsjopp(): assert False, "Add implementation code"

@step("删除多行---提交") def uxmwvu(): assert False, "Add implementation code"

@step("删除所有---提交") def hfhwip(): assert False, "Add implementation code"

@step("采购信息合同---新建---添加多行") def zdbtup(): assert False, "Add implementation code"

@step("用户打开Chrome浏览器,进入登录页面") def wmbnzw(): assert False, "Add implementation code"

@step("依次输入") def 依次输入(phone): assert False, "Add implementation code"

@step("获取验证码") def 获取验证码(): assert False, "Add implementation code"

@step("输入验证码<888888>") def 输入验证码(arg1): assert False, "Add implementation code"

@step("触点登录按钮") def 触点登录按钮(): assert False, "Add implementation code"

@step("记录页面列表条数") def 记录页面列表条数(): assert False, "Add implementation code"

@step("点击邀请企业按钮") def 点击邀请企业按钮(): assert False, "Add implementation code"

@step("依次输入 企业名称、邮箱、备注,<润邦保理>、[email protected]、<保理是供应链金融的其中一个业务>") def mktfka(润邦保理, arg2, 保理是供应链金融的其中一个业务): assert False, "Add implementation code"

@step("选择'邮件邀请'方式") def uoirxt(): assert False, "Add implementation code"

@step("启动'应收账款融资',勾选'供应商'") def gtvfea(): assert False, "Add implementation code"

@step("启动'预付款款融资',勾选'经销商'") def nwxboe(): assert False, "Add implementation code"

@step("点击'确认邀请'按钮") def awvyvs(): assert False, "Add implementation code"

@step("检查新增记录是否存在") def 检查新增记录是否存在(): assert False, "Add implementation code"

@step("遍历 <应收账款融资> 菜单页面

") def 遍历_菜单页面(应收账款融资, table): assert False, "Add implementation code"

@step("审批通过,无需验证<0>") def whrvno(arg1): assert False, "Add implementation code"

@step("点击合同签署按钮") def 点击合同签署按钮(): assert False, "Add implementation code"

@step("选择'采购合同'合同类型") def cdtcbt(): assert False, "Add implementation code"

@step("点击'关联'按钮") def hbhsqo(): assert False, "Add implementation code"

@step("选择第一个合同") def 选择第一个合同(): assert False, "Add implementation code"

@step("点击 <下一步> 按钮") def 点击_按钮(下一步): assert False, "Add implementation code"

@step("拖曳盖章并确认") def 拖曳盖章并确认(): assert False, "Add implementation code"

@step("点击退出系统按钮") def 点击退出系统按钮(): assert False, "Add implementation code"

@step("选择供应商证书并输入口令") def 选择供应商证书并输入口令(): assert False, "Add implementation code"

@step("选择任一待签署合同-》【签署】") def mvnqnb(): assert False, "Add implementation code"

@step("预览/下载合同附件") def dfpbol(): assert False, "Add implementation code"

@step("滑到中间位置") def 滑到中间位置(): assert False, "Add implementation code"

@step("检查是否确认成功") def 检查是否确认成功(): assert False, "Add implementation code"

@step("【签署】") def jylsyi(): assert False, "Add implementation code"

@step("验证签署成功") def 验证签署成功(): assert False, "Add implementation code"

@step("<预计送达时间>输入为<3>天后") def 输入为_天后(预计送达时间, arg2): assert False, "Add implementation code"

@step("选择供应商") def 选择供应商(): assert False, "Add implementation code"

@step("检查结果") def 检查结果(): assert False, "Add implementation code"

@step("<物资签收单编号:>输入时间序列号") def 输入时间序列号(arg1): assert False, "Add implementation code"

@step("<车牌号:>输入<粤LT079U>") def 输入(arg1, 粤LT079U): assert False, "Add implementation code"

@step("<出库证明/物流证明/签收证明:>上传附件") def 上传附件(arg1): assert False, "Add implementation code"

@step("右侧滚动条拖动到底部") def 右侧滚动条拖动到底部(): assert False, "Add implementation code"

@step("勾选第一行复选框") def 勾选第一行复选框(): assert False, "Add implementation code"

@step("点击'录入'按钮") def ehxncb(): assert False, "Add implementation code"

@step("记录合同编号,待后续验证<1><待收货-待审批>") def xoyizi(arg1, arg2): assert False, "Add implementation code"

@step("审批物资签收单---退回") def qptyca(): assert False, "Add implementation code"

@step("验证物资签收单<待收货-审批驳回><2>状态") def 验证物资签收单__状态(arg1, arg2): assert False, "Add implementation code"

@step("审批物资签收单---重新提交") def cgscgh(): assert False, "Add implementation code"

@step("审批物资签收单---通过") def xoixxl(): assert False, "Add implementation code"

@step("审核退回<1>") def 审核退回(arg1): assert False, "Add implementation code"

@step("重新提交<3>") def 重新提交(arg1): assert False, "Add implementation code"

@step("审核通过<1>") def 审核通过(arg1): assert False, "Add implementation code"

@step("验证运单<待提交结算>状态") def 验证运单_状态(待提交结算): assert False, "Add implementation code"

@step("提交结算申请") def 提交结算申请(): assert False, "Add implementation code"

@step("待结算-待审批") def eyjtnv(): assert False, "Add implementation code"

@step("验证物资签收单是否处于<已签收><2>状态") def 验证物资签收单是否处于__状态(已签收, arg2): assert False, "Add implementation code"

Successfully generated html-report to => E:\pyProject\scf-ui-test\reports\html-report\index.html

Specifications: 0 executed 0 passed 0 failed 16 skipped Scenarios: 0 executed 0 passed 0 failed 25 skipped

Total time taken: 543ms

E:\pyProject\scf-ui-test>

yicaifeitian avatar Jan 04 '21 02:01 yicaifeitian

Hi.

I met similar situation. I found a problem, so show relevant infomations.

Environment

Windows 10 Pro 21H1 build 19043.1237 Python 3.9.7 getgauge 0.3.17

Situation

Failed to parse ***\step_impl.py: 'cp932' codec can't decode byte 0x9a in position 1172: illegal multibyte sequence [ValidationError] ***\test.spec:6 Step implementation not found => 'アプリを起動する'

Problem

spec files are encoded by UTF-8, but open() in python uses environment specific codec as default codec. Therefore, open() in getgauge/parse.py need the encoding argument. Below change fixes the problem.

@@ -13,7 +13,7 @@ class Parser(object):
         """
         try:
             if content is None:
-                with open(file_path) as f:
+                with open(file_path, encoding='utf-8') as f:
                     content = f.read()
             py_tree = RedBaron(content)

knenet02 avatar Sep 21 '21 10:09 knenet02

@knenet02 thanks for pointing that out. Can you send a pull request with this change?

zabil avatar Sep 21 '21 12:09 zabil