Settings Documentation Adding users from Admin then complete registrat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
*** Settings ***
Documentation Adding users from Admin then complete registration process by filling secured info
Force Tags New user
Resource CresGui.txt
Suite Teardown Close All Browsers
*** Variables ***
${firstName1} Gmail
${lastName1} User
${PASS_PHRASE} ironport
${pass} ironport123
${name} testuser_
${domain} @cooldomain.com
*** Test Cases ***
Add Users
Login To Admin ${DUT_ADMIN} ${DUT_ADMIN_PASSWORD}
${index}= Set Variable 0
:FOR ${counter} IN RANGE 1 100
\ ${EMAIL1} = Catenate SEPARATOR=${counter} ${name} ${domain}
\ Set Suite Variable ${EMAIL1}
\ Add User ${EMAIL1} ${firstName1} ${lastName1} ${pass}
Logout From Admin
Login to Websafe Enter Data
:FOR ${counter} IN RANGE 1 100
\ ${EMAIL1} = Catenate SEPARATOR=${counter} ${name} ${domain}
\ Login To Websafe ${EMAIL1} ${pass}
\ Password Hint Questions 1 2 3 1 2 3 ${pass} ${PASS_PHRASE}
\ Logout From Websafe
*** Keywords ***
Login To Admin
[Arguments] ${username} ${password} ${acc_name}=''
Open Browser ${ADMIN_LOGIN_URL} ff
Maximize Browser Window
#Run Keyword And Ignore Error
#Logout If Already Logged In
#Title Should Be CRES Admin
Select Frame name=body
Wait Until Page Contains Element Username ${TIMEOUT_SHORT}
Input Text Username ${username}
Input Text Password ${password}
Click Link Log In
${status}= Run Keyword And Return Status Current Frame Contains Please select an account:
Run Keyword if '${status}'=='True' Select From List //select[@name='acctId'] ${acc_name}
Run Keyword if '${status}'=='True' Click Link Select
Unselect Frame
Wait Until Keyword Succeeds ${TIMEOUT_SHORT} 1 Page Should Contain Welcome,
Wait Until Keyword Succeeds ${TIMEOUT_SHORT} 1 Page Should Contain Home
Login To Websafe
[Arguments] ${userid} ${passwd}
Go To Login Page
Input Username ${userid}
Input Password ${passwd}
Submit Credentials
Reset Locale To Default
Page Should Contain Welcome
Logout From Admin
Unselect Frame
Select Frame name=header
Sleep 2
Current Frame Contains Log Out
Click Link link=Log Out
Logout From WebSafe
Click Link link=Log Out
Page Should Contain You were successfully logged out.