summaryrefslogtreecommitdiff
path: root/02-Keyword/tsg_ui/Login/Login.robot
diff options
context:
space:
mode:
Diffstat (limited to '02-Keyword/tsg_ui/Login/Login.robot')
-rw-r--r--02-Keyword/tsg_ui/Login/Login.robot26
1 files changed, 26 insertions, 0 deletions
diff --git a/02-Keyword/tsg_ui/Login/Login.robot b/02-Keyword/tsg_ui/Login/Login.robot
new file mode 100644
index 0000000..e91f39f
--- /dev/null
+++ b/02-Keyword/tsg_ui/Login/Login.robot
@@ -0,0 +1,26 @@
+*** Settings ***
+Library Selenium2Library
+Resource ../../../03-Variable/BifangApiVariable.txt
+Library Selenium2Library
+Resource ../Objects/Objects.robot
+Resource ../Objects/ObjectPages.robot
+
+*** Keywords ***
+Login
+ Open Browser http://${host}/#/login ${browserType}
+ Maximize Browser Window
+ input text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input ${username}
+ input text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input ${password}
+ Click button id=login
+
+AddLocalIp
+ ${obj1} create dictionary type=Ip name=LocahIPName ipads=${ipType} ipclient=masks ipclienttext1=${testClentIP} ipclienttext2=${ipMask}
+ CreatePage ${obj1}[type] ${obj1}[name] ipads=${obj1}[ipads] ipclient=${obj1}[ipclient] ipclienttext1=${obj1}[ipclienttext1] ipclienttext2=${obj1}[ipclienttext2]
+ set global variable ${LocahIPName} ${obj1}[name]
+
+UiLoginAndAaddLocalIP
+ [Arguments] ${tempParm}
+ log UiLoginAndAaddLocalIP${tempParm}
+ Login.Login
+ Run Keyword If ${addTestClentIPFlag}==1 AddLocalIp
+ log UiLoginAndAaddLocalIP:${LocahIPName}