提交孙姜月ui-administrator代码,其中create-user-001和create-001两个case存在定位问题。
This commit is contained in:
86
01-TestCase/tsg_ui/ui_accounts/Accountscase.robot
Normal file
86
01-TestCase/tsg_ui/ui_accounts/Accountscase.robot
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui accounts
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/accounts/Accountspages.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/accounts/Accounts.robot
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
create-user-001
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage 0000 ssjjyy 111111
|
||||||
|
#验证新建是否成功
|
||||||
|
Ui-User-Search-Name 0000
|
||||||
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
|
||||||
|
log ${name}
|
||||||
|
Should Be Equal As Strings ${name} 0000
|
||||||
|
#删除对象
|
||||||
|
User-Delete
|
||||||
|
|
||||||
|
create-user-002
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage-null ${EMPTY} ${EMPTY} ${EMPTY}
|
||||||
|
|
||||||
|
|
||||||
|
create-user-003
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage 111111111111111111111111111111111 ${EMPTY} ${EMPTY}
|
||||||
|
|
||||||
|
|
||||||
|
create-user-004
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage xiaohong kkkkkk aaaa
|
||||||
|
#验证新建是否成功
|
||||||
|
Ui-User-Search-Name xiaohong
|
||||||
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
|
||||||
|
log ${name}
|
||||||
|
Should Be Equal As Strings ${name} xiaohong
|
||||||
|
#删除对象
|
||||||
|
User-Delete
|
||||||
|
|
||||||
|
create-user-005
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage 小红 小红 a1@й
|
||||||
|
#验证新建是否成功
|
||||||
|
Ui-User-Search-Name 小红
|
||||||
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
|
||||||
|
log ${name}
|
||||||
|
Should Be Equal As Strings ${name} 小红
|
||||||
|
#删除对象
|
||||||
|
User-Delete
|
||||||
|
|
||||||
|
create-user-006
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage малый малый малый
|
||||||
|
#验证新建是否成功
|
||||||
|
Ui-User-Search-Name малый
|
||||||
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
|
||||||
|
log ${name}
|
||||||
|
Should Be Equal As Strings ${name} малый
|
||||||
|
#删除对象
|
||||||
|
User-Delete
|
||||||
|
|
||||||
|
edit-user-007
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage 修改 edit 111111
|
||||||
|
#验证新建是否成功
|
||||||
|
Ui-User-Search-Name 修改
|
||||||
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
|
||||||
|
log ${name}
|
||||||
|
Should Be Equal As Strings ${name} 修改
|
||||||
|
#修改对象
|
||||||
|
User-Edit edit-1
|
||||||
|
#查询修改对象
|
||||||
|
Ui-User-Search-Name edit-1
|
||||||
|
#删除对象
|
||||||
|
User-Delete
|
||||||
|
|
||||||
|
create-user-008
|
||||||
|
#新建Accounts
|
||||||
|
CreatePage @#!&* *^%$ *^%$
|
||||||
|
#验证新建是否成功
|
||||||
|
Ui-User-Search-Name @#!&*
|
||||||
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
|
||||||
|
log ${name}
|
||||||
|
Should Be Equal As Strings ${name} @#!&*
|
||||||
|
#删除对象
|
||||||
|
User-Delete
|
||||||
43
01-TestCase/tsg_ui/ui_audit/Auditcase.robot
Normal file
43
01-TestCase/tsg_ui/ui_audit/Auditcase.robot
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui audit
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/audit/Audit.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/Menu.robot
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
search-user-001
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search-Name
|
||||||
|
|
||||||
|
search-user-002
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search
|
||||||
|
|
||||||
|
search-user-003
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search-Operator sunjiangyue
|
||||||
|
|
||||||
|
search-user-004
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search-Operator @*%&
|
||||||
|
|
||||||
|
search-user-005
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search-Operator a1@й
|
||||||
|
|
||||||
|
search-user-006
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search-Operator малый
|
||||||
|
|
||||||
19
01-TestCase/tsg_ui/ui_ldap/Ldapcase.robot
Normal file
19
01-TestCase/tsg_ui/ui_ldap/Ldapcase.robot
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui accounts
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/ldap/Ldappages.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/ldap/Ldap.robot
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
create-user-001
|
||||||
|
#界面
|
||||||
|
Ui-login
|
||||||
|
#新建
|
||||||
|
CreatePage test localhost 25 test ou=People,dc=bifang,dc=com uid 111111
|
||||||
|
|
||||||
|
create-user-002
|
||||||
|
#界面
|
||||||
|
Ui-login
|
||||||
|
#新建
|
||||||
|
CreatePage lucy 192.168.40.204 389 cn=root,dc=bifang,dc=com ou=People,dc=bifang,dc=com uid 11221
|
||||||
|
|
||||||
42
01-TestCase/tsg_ui/ui_login/Logincase.robot
Normal file
42
01-TestCase/tsg_ui/ui_login/Logincase.robot
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui login
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/login/Login.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/Menu.robot
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
search-user-001
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search-Name
|
||||||
|
|
||||||
|
search-user-002
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
Ui-User-Search
|
||||||
|
|
||||||
|
search-user-003
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
User-Search-Name sunjiangyue
|
||||||
|
|
||||||
|
search-user-004
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
User-Search-Name @*%&
|
||||||
|
|
||||||
|
search-user-005
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
User-Search-Name a1@й
|
||||||
|
|
||||||
|
search-user-006
|
||||||
|
#打开界面
|
||||||
|
Ui-login
|
||||||
|
#查找
|
||||||
|
User-Search-Name малый
|
||||||
30
01-TestCase/tsg_ui/ui_mail/Mailcase.robot
Normal file
30
01-TestCase/tsg_ui/ui_mail/Mailcase.robot
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui audit
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/mail/Mail.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/mail/Mailpages.robot
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
create-001
|
||||||
|
#登录界面
|
||||||
|
Ui-login
|
||||||
|
#新建
|
||||||
|
CreatePage 192.168.40.204 25 test yytest@mail.test.com 111111
|
||||||
|
|
||||||
|
create-002
|
||||||
|
#登录界面
|
||||||
|
Ui-login
|
||||||
|
#新建
|
||||||
|
CreatePage 192.168.40.204 25 测试 test@mail.test.com test
|
||||||
|
|
||||||
|
create-003
|
||||||
|
#登录界面
|
||||||
|
Ui-login
|
||||||
|
#新建
|
||||||
|
CreatePage 192.168.40.204 25 @*%& test1@mail.test.com @*%&
|
||||||
|
|
||||||
|
create-004
|
||||||
|
#登录界面
|
||||||
|
Ui-login
|
||||||
|
#新建
|
||||||
|
CreatePage 192.168.40.204 25 малый ttest@mail.test.com малый
|
||||||
@@ -10,6 +10,8 @@ Menu
|
|||||||
# 二级菜单
|
# 二级菜单
|
||||||
${policy&objects} create dictionary Security Policy=sidebarObjects_ProxyInterception Proxy Policy=sidebarObjects_ProxyManipulation Objects=sidebarObjects_Objects Schedules=sidebarObjects_Schedule Tags=sidebarObjects_Tags
|
${policy&objects} create dictionary Security Policy=sidebarObjects_ProxyInterception Proxy Policy=sidebarObjects_ProxyManipulation Objects=sidebarObjects_Objects Schedules=sidebarObjects_Schedule Tags=sidebarObjects_Tags
|
||||||
${log} create dictionary Security Event Logs=sidebarLog_SecurityEventLogs Proxy Event Logs=sidebarLog_ProxyEventLogs Session Records=sidebarLog_SesssionRecords Radius Logs=sidebarLog_RadiusLogs
|
${log} create dictionary Security Event Logs=sidebarLog_SecurityEventLogs Proxy Event Logs=sidebarLog_ProxyEventLogs Session Records=sidebarLog_SesssionRecords Radius Logs=sidebarLog_RadiusLogs
|
||||||
|
${administartion} create dictionary Accounts=sidebarsystem_UserManagement Audit Log=sidebarsystem_PolicyConfigurationLog Login Log =sidebarsystem_LoginLog Mail Server=sidebarsystem_MailServer LDAP Server=sidebarsystem_LadpServer
|
||||||
|
|
||||||
# 遍历一级菜单
|
# 遍历一级菜单
|
||||||
FOR ${list} ${num} IN ENUMERATE @{dict}
|
FOR ${list} ${num} IN ENUMERATE @{dict}
|
||||||
run keyword if "${num}"=="${menuOne}" run keywords sleep 5
|
run keyword if "${num}"=="${menuOne}" run keywords sleep 5
|
||||||
|
|||||||
86
02-Keyword/tsg_ui/accounts/Accounts.robot
Normal file
86
02-Keyword/tsg_ui/accounts/Accounts.robot
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
openbrower
|
||||||
|
Open Browser http:192.168.40.120 chrome
|
||||||
|
|
||||||
|
CreateButton
|
||||||
|
Wait Until Element Is Enabled id=userAdd
|
||||||
|
sleep 3
|
||||||
|
Click element id=userAdd
|
||||||
|
|
||||||
|
Create-Name
|
||||||
|
[Arguments] ${accName}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[1]/input ${accName}
|
||||||
|
|
||||||
|
Create-Username
|
||||||
|
[Arguments] ${accName}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[2]/div/div[1]/input ${accName}
|
||||||
|
|
||||||
|
Create-Password
|
||||||
|
[Arguments] ${accPasswd}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[3]/div/div/input ${accPasswd}
|
||||||
|
|
||||||
|
Create-Ok
|
||||||
|
sleep 1
|
||||||
|
click button xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[1]
|
||||||
|
|
||||||
|
Create-Cancel
|
||||||
|
click button id=userAdd_cancel
|
||||||
|
|
||||||
|
SelectOne
|
||||||
|
sleep 3
|
||||||
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
|
||||||
|
|
||||||
|
DeleteButton
|
||||||
|
click button id=userDel
|
||||||
|
|
||||||
|
Delete-Delete
|
||||||
|
sleep 2
|
||||||
|
click button xpath=/html/body/div/div/div[3]/button[2]
|
||||||
|
|
||||||
|
Delete-Cancel
|
||||||
|
click button xpath=/html/body/div[2]/div/div[3]/button[1]
|
||||||
|
|
||||||
|
User-Delete
|
||||||
|
sleep 1
|
||||||
|
click element id=userDel #点击删除按钮
|
||||||
|
sleep 1
|
||||||
|
click element xpath=/html/body/div/div/div[3]/button[2]
|
||||||
|
|
||||||
|
|
||||||
|
User-Edit
|
||||||
|
[Arguments] ${name}
|
||||||
|
Sleep 2
|
||||||
|
click element id=userEdit
|
||||||
|
Sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[1]/input ${name}
|
||||||
|
Sleep 1
|
||||||
|
click element xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[1]
|
||||||
|
Sleep 2
|
||||||
|
|
||||||
|
Ui-User-Search-Name
|
||||||
|
[Arguments] ${name}
|
||||||
|
Wait Until Page Contains Element id=one-input 10
|
||||||
|
click element id=one-input
|
||||||
|
sleep 2
|
||||||
|
click element id=input_list_li2
|
||||||
|
sleep 2
|
||||||
|
input text id=sreach_input ${name}
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table
|
||||||
|
Sleep 2
|
||||||
|
|
||||||
|
login
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
|
||||||
|
sleep 1
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
|
||||||
|
sleep 1
|
||||||
|
click element id=login
|
||||||
|
sleep 2
|
||||||
57
02-Keyword/tsg_ui/accounts/Accountspages.robot
Normal file
57
02-Keyword/tsg_ui/accounts/Accountspages.robot
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
Resource Accounts.robot
|
||||||
|
Resource ../Menu.robot
|
||||||
|
Library Collections
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
CreatePage
|
||||||
|
[Arguments] ${name} ${username} ${accPasswd}
|
||||||
|
Menu administartion Accounts
|
||||||
|
sleep 3
|
||||||
|
Accounts.CreateButton
|
||||||
|
Accounts.Create-Name ${name}
|
||||||
|
Accounts.Create-Username ${username}
|
||||||
|
Accounts.Create-Password ${accPasswd}
|
||||||
|
Accounts.Create-Ok
|
||||||
|
|
||||||
|
DeletePage
|
||||||
|
[Arguments] ${name}
|
||||||
|
sleep 1
|
||||||
|
click element id=clear_input_btm
|
||||||
|
sleep 1
|
||||||
|
input text id=one-input ${name}
|
||||||
|
press keys id=one-input ENTER
|
||||||
|
Accounts.SelectOne
|
||||||
|
Accounts.DeleteButton 1
|
||||||
|
Accounts.Delete-Delete
|
||||||
|
|
||||||
|
CreatePage-null
|
||||||
|
[Arguments] ${name} ${username} ${accPasswd}
|
||||||
|
Menu administartion Accounts
|
||||||
|
sleep 3
|
||||||
|
Accounts.CreateButton
|
||||||
|
Accounts.Create-Name ${name}
|
||||||
|
Accounts.Create-Username ${username}
|
||||||
|
Accounts.Create-Password ${accPasswd}
|
||||||
|
Accounts.Create-Ok
|
||||||
|
sleep 2
|
||||||
|
${text} get text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[3]
|
||||||
|
run keyword if "${text}"=="Name field is required." click element xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[2]
|
||||||
|
... ELSE IF log "name值为空,不可以新建成功"
|
||||||
|
|
||||||
|
|
||||||
|
CreatePage-User-Name-null
|
||||||
|
[Arguments] ${name} ${username} ${accPasswd}
|
||||||
|
Menu administartion Accounts
|
||||||
|
sleep 3
|
||||||
|
Accounts.CreateButton
|
||||||
|
Accounts.Create-Name ${name}
|
||||||
|
Accounts.Create-Username ${username}
|
||||||
|
Accounts.Create-Password ${accPasswd}
|
||||||
|
Accounts.Create-Ok
|
||||||
|
sleep 2
|
||||||
|
${text} get text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[2]/div/div[3]
|
||||||
|
run keyword if "${text}"=="Account field is required." click element xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[2]
|
||||||
|
... ELSE IF log "name值为空,不可以新建成功"
|
||||||
|
|
||||||
49
02-Keyword/tsg_ui/audit/Audit.robot
Normal file
49
02-Keyword/tsg_ui/audit/Audit.robot
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
|
||||||
|
Ui-User-Search-Name
|
||||||
|
click element id=one-input
|
||||||
|
sleep 2
|
||||||
|
click element id=input_list_li1
|
||||||
|
sleep 2
|
||||||
|
click element id=update_sreach0
|
||||||
|
sleep 2
|
||||||
|
click element id=OperatorInfo01
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Ui-User-Search
|
||||||
|
click element id=one-input
|
||||||
|
sleep 2
|
||||||
|
click element id=input_list_li1
|
||||||
|
sleep 2
|
||||||
|
click element id=update_sreach0
|
||||||
|
sleep 2
|
||||||
|
click element id=OperatorInfo02
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Ui-User-Search-Operator
|
||||||
|
[Arguments] ${operator}
|
||||||
|
input text id=one-input ${operator}
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
login
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
|
||||||
|
sleep 1
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
|
||||||
|
sleep 1
|
||||||
|
click element id=login
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Ui-login
|
||||||
|
click element id=children6
|
||||||
|
sleep 2
|
||||||
|
click element id=sidebarsystem_PolicyConfigurationLog
|
||||||
|
sleep 2
|
||||||
71
02-Keyword/tsg_ui/ldap/Ldap.robot
Normal file
71
02-Keyword/tsg_ui/ldap/Ldap.robot
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
openbrower
|
||||||
|
Open Browser http:192.168.40.120 chrome
|
||||||
|
|
||||||
|
CreateButton
|
||||||
|
sleep 3
|
||||||
|
Click element id=ldapAdd
|
||||||
|
|
||||||
|
Create-Name
|
||||||
|
[Arguments] ${Name}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[1]/input ${Name}
|
||||||
|
|
||||||
|
Create-Host
|
||||||
|
[Arguments] ${Host}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[2]/div/div[1]/input ${Host}
|
||||||
|
|
||||||
|
Create-Port
|
||||||
|
[Arguments] ${Port}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[3]/div/div/input ${Port}
|
||||||
|
|
||||||
|
Create-Username
|
||||||
|
[Arguments] ${Username}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[4]/div/div[1]/input ${Username}
|
||||||
|
|
||||||
|
Create-Usermapperprefix
|
||||||
|
[Arguments] ${Usermapperprefix}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[5]/div/div[1]/input ${Usermapperprefix}
|
||||||
|
|
||||||
|
Create-Usermappersuffix
|
||||||
|
[Arguments] ${Usermappersuffix}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[5]/div/div[2]/input ${Usermappersuffix}
|
||||||
|
|
||||||
|
Create-Password
|
||||||
|
[Arguments] ${Password}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/input ${Password}
|
||||||
|
|
||||||
|
Create-Ok
|
||||||
|
sleep 1
|
||||||
|
click button id=ldapAddSuccess
|
||||||
|
|
||||||
|
Create-Testconnection
|
||||||
|
sleep 1
|
||||||
|
click button id=ldapTestConnection
|
||||||
|
|
||||||
|
Create-Cancel
|
||||||
|
click button id=ldapCancel
|
||||||
|
|
||||||
|
|
||||||
|
login
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
|
||||||
|
sleep 1
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
|
||||||
|
sleep 1
|
||||||
|
click element id=login
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Ui-login
|
||||||
|
click element id=children6
|
||||||
|
sleep 2
|
||||||
|
click element id=sidebarsystem_LadpServer
|
||||||
|
sleep 2
|
||||||
27
02-Keyword/tsg_ui/ldap/Ldappages.robot
Normal file
27
02-Keyword/tsg_ui/ldap/Ldappages.robot
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
Resource Ldap.robot
|
||||||
|
Resource ../Menu.robot
|
||||||
|
Library Collections
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
CreatePage
|
||||||
|
[Arguments] ${name} ${host} ${port} ${username} ${usermapperprefix} ${usermappersuffix} ${password}
|
||||||
|
Menu administartion LDAP Server
|
||||||
|
sleep 3
|
||||||
|
Ldap.CreateButton
|
||||||
|
Ldap.Create-Name ${name}
|
||||||
|
Ldap.Create-Host ${host}
|
||||||
|
Ldap.Create-Port ${port}
|
||||||
|
Ldap.Create-Username ${username}
|
||||||
|
Ldap.Create-Usermapperprefix ${usermapperprefix}
|
||||||
|
Ldap.Create-Usermappersuffix ${usermappersuffix}
|
||||||
|
Ldap.Create-Password ${password}
|
||||||
|
Ldap.Create-Testconnection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -23,3 +23,40 @@ UiLoginAndAddLocalIP
|
|||||||
Login.Login
|
Login.Login
|
||||||
Run Keyword If ${addTestClentIPFlag}==1 AddLocalIp
|
Run Keyword If ${addTestClentIPFlag}==1 AddLocalIp
|
||||||
log UiLoginAndAddLocalIP:${LocahIPName}
|
log UiLoginAndAddLocalIP:${LocahIPName}
|
||||||
|
|
||||||
|
|
||||||
|
Ui-login
|
||||||
|
click element id=children6
|
||||||
|
sleep 2
|
||||||
|
click element id=sidebarsystem_LoginLog
|
||||||
|
sleep 2
|
||||||
|
Ui-User-Search-Name
|
||||||
|
click element id=one-input
|
||||||
|
sleep 2
|
||||||
|
click element id=input_list_li1
|
||||||
|
sleep 2
|
||||||
|
click element id=update_sreach0
|
||||||
|
sleep 2
|
||||||
|
click element id=OperatorInfo01
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Ui-User-Search
|
||||||
|
click element id=one-input
|
||||||
|
sleep 2
|
||||||
|
click element id=input_list_li1
|
||||||
|
sleep 2
|
||||||
|
click element id=update_sreach0
|
||||||
|
sleep 2
|
||||||
|
click element id=OperatorInfo02
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
User-Search-Name
|
||||||
|
[Arguments] ${name}
|
||||||
|
input text id=one-input ${name}
|
||||||
|
sleep 2
|
||||||
|
click element id=select_new_search_btn
|
||||||
|
sleep 2
|
||||||
49
02-Keyword/tsg_ui/mail/Mail.robot
Normal file
49
02-Keyword/tsg_ui/mail/Mail.robot
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
openbrower
|
||||||
|
Open Browser http:192.168.40.120 chrome
|
||||||
|
|
||||||
|
Create-Server
|
||||||
|
[Arguments] ${Server}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div/input ${Server}
|
||||||
|
|
||||||
|
Create-Port
|
||||||
|
[Arguments] ${Port}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[2]/div/div/input ${Port}
|
||||||
|
|
||||||
|
Create-Username
|
||||||
|
[Arguments] ${Name}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[4]/div/div/input ${Name}
|
||||||
|
|
||||||
|
Create-Account
|
||||||
|
[Arguments] ${Account}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[5]/div/div/input ${Account}
|
||||||
|
|
||||||
|
Create-Password
|
||||||
|
[Arguments] ${Password}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/input ${Password}
|
||||||
|
|
||||||
|
Create-Ok
|
||||||
|
sleep 1
|
||||||
|
click button id=mailServerOk
|
||||||
|
|
||||||
|
login
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
|
||||||
|
sleep 1
|
||||||
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
|
||||||
|
sleep 1
|
||||||
|
click element id=login
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Ui-login
|
||||||
|
click element id=children6
|
||||||
|
sleep 2
|
||||||
|
click element id=sidebarsystem_MailServer
|
||||||
|
sleep 2
|
||||||
17
02-Keyword/tsg_ui/mail/Mailpages.robot
Normal file
17
02-Keyword/tsg_ui/mail/Mailpages.robot
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library Selenium2Library
|
||||||
|
Resource Mail.robot
|
||||||
|
Resource ../Menu.robot
|
||||||
|
Library Collections
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
CreatePage
|
||||||
|
[Arguments] ${server} ${port} ${username} ${account} ${password}
|
||||||
|
Menu administartion Mail Server
|
||||||
|
sleep 3
|
||||||
|
Mail.Create-Server ${server}
|
||||||
|
Mail.Create-Port ${port}
|
||||||
|
Mail.Create-Username ${username}
|
||||||
|
Mail.Create-Account ${account}
|
||||||
|
Mail.Create-Password ${password}
|
||||||
|
Mail.Create-Ok
|
||||||
Reference in New Issue
Block a user