diff options
| author | dongxiaoyan <[email protected]> | 2021-08-03 19:32:24 +0800 |
|---|---|---|
| committer | dongxiaoyan <[email protected]> | 2021-08-03 19:32:24 +0800 |
| commit | 950444d646bb4a21b6e70cfb534c3b269c51548d (patch) | |
| tree | db6dc0978bcbf35089df38cdc94758b55cc43850 /other | |
| parent | e4adcc588e92567f94ceb97196e739c7a8f131d3 (diff) | |
Diffstat (limited to 'other')
| -rw-r--r-- | other/data/administration/user_data.yaml | 31 | ||||
| -rw-r--r-- | other/data/template/page_template.yaml | 78 |
2 files changed, 109 insertions, 0 deletions
diff --git a/other/data/administration/user_data.yaml b/other/data/administration/user_data.yaml new file mode 100644 index 0000000..98b6f6a --- /dev/null +++ b/other/data/administration/user_data.yaml @@ -0,0 +1,31 @@ +user_data:
+ -
+ -
+ operatingType: create
+ User: testUser
+ Username: testUser
+ Password: '111111'
+ ConfirmPassword: '111111'
+ E-mail: [email protected]
+ Mobile: test123
+ Role:
+ -
+ RoleText: test
+ Enable: open
+ searchCriteria: User
+ -
+ operatingType: edit
+ User: testUser111
+ searchCriteria: User #搜索条件
+
+user_column_setup_data:
+ -
+ column_setup_position: click
+ cancel_show:
+ - Role
+ - Last login time
+ save_column_setup: click
+ assertPosition:
+ - xpath=//*[@id="userTable"]/div[2]/table/thead/tr/th[5]/div/span
+ - xpath=//*[@id="userTable"]/div[2]/table/thead/tr/th[7]/div/span
+
\ No newline at end of file diff --git a/other/data/template/page_template.yaml b/other/data/template/page_template.yaml new file mode 100644 index 0000000..847f24b --- /dev/null +++ b/other/data/template/page_template.yaml @@ -0,0 +1,78 @@ +#user正向用例
+user_page:
+ #"打开页面数据":
+ openCreateOrEditPage:
+ create:
+ - xpath=//*[@id="app"]/div/div[1]/ul[2]/li[6]/div/span
+ - xpath=//*[@id="app"]/div/div[1]/ul[2]/li[6]/ul/li[1]
+ - id=account-add
+ edit:
+ - xpath=//*[@id="userTable"]/div[4]/div[2]/table/tbody/tr/td[11]/div/div/div/div
+ - xpath=/html/body/ul/li[1]
+
+ templateData:
+ -
+ type: input
+ position: id=account-input-name
+ value: User
+ -
+ type: input
+ position: id=account-input-username
+ value: Username
+ -
+ type: input
+ position: id=account-input-password
+ value: Password
+ -
+ type: input
+ position: id=account-input-pinChange
+ value: ConfirmPassword
+ -
+ type: input
+ position: id=account-input-email
+ value: E-mail
+ -
+ type: input
+ position: id=account-input-mobile
+ value: Mobile
+ -
+ type: combination
+ position: id=account-input-roleIds
+ value: Role
+ data:
+ -
+ type: clickText
+ value: RoleText
+ data: null
+ -
+ type: switch
+ position: xpath=//*[@id="app"]/div/div[2]/div[2]/div/div[2]/div[2]/div/form/div[8]/div/div
+ value: Enable
+ default: open
+ -
+ type: click
+ position: xpath=//*[@id="app"]/div/div[2]/div[2]/div/div/div/div[2]/div[1]/div[2]/button[2]
+ value: column_setup_position
+ -
+ type: columnSetup
+ value: cancel_show
+ -
+ type: click
+ position: xpath=/html/body/div[1]/div/div[2]/div[2]/div/div/div/div[3]/div[3]/div/button[2]
+ value: save_column_setup
+ -
+ type: click
+ position: xpath=//*[@id="userTable"]/div[4]/div[2]/table/tbody/tr[1]/td[11]/div/div/button
+ value: OperationLog
+ -
+ type: click
+ position: xpath=//*[@id="userTable"]/div[4]/div[2]/table/tbody/tr[1]/td[11]/div/div/button
+ value: OperationLog
+ okOrCancel:
+ position: id=asset-edit-save #创建修改确定按钮
+ search: type1 #搜索框种类,不同页面搜索框定位可能不相同
+ User: xpath=//*[@id="userTable"]/div[3]/table/tbody/tr[1]/td[3]/div/span #Name定位 因搜索条件为User故该key为User
+ ID: xpath=//*[@id="userTable"]/div[3]/table/tbody/tr[1]/td[2]/div/span # ID定位
+ delete: id=account-list-batch-delete #删除按钮定位
+ Selected: xpath=//*[@id="userTable"]/div[3]/table/tbody/tr/td[1]/div/label/span/span #查询后第一条数据的选中框定位
+
\ No newline at end of file |
