看看我之前的用例管理:

---
-
  element_info: cn.ibona.t1_beta:id/btn_skip
  find_type: by_id
  operate_type: click
  test_id: 1002
  test_intr: 登陆
-
  element_info: cn.ibona.t1_beta:id/passwordEditText
  find_type: by_id
  operate_type: send_keys
  text: 123456

-
  element_info: cn.ibona.t1_beta:id/phoneNumberEditText
  find_type: by_id
  operate_type: send_keys
  text: 18576759999
- 
  element_info: cn.ibona.t1_beta:id/loginButton
  find_type: by_id
  operate_type: click
- 
  element_info: cn.ibona.t1_beta:id/toolbar
  find_type: by_id

上面只是登录的一条用例,问题点:

请问下该如何管理用例这块?

总结

这样配置比较方便

testinfo: 
    - id: test001
      moudle: 登录
      intr: 登录功能
testcase:
    - element_info: //*[@id="login"]/div[1]/div[2]/form/div[1]/input
      find_type: by_xpath
      operate_type: send_keys
      text: user
    - element_info: //*[@id="login"]/div[1]/div[2]/form/div[2]/input
      find_type: by_xpath
      operate_type: send_keys
      text: pwd
    - element_info: //*[@id="login"]/div[1]/div[2]/form/button[1]
      find_type: by_xpath
      operate_type: click
check:
    - element_info: //*[@id="home"]/a
      find_type: by_xpath
    - element_info: //*[@id="setting111"]/a
      find_type: by_xpath


↙↙↙阅读原文可查看相关链接,并与作者交流