upgrade to python3 libraries
[testsuite.git] / robot / resources / portal-sdk / portalSdkDef.robot
1 *** Settings ***
2 Documentation    This is RobotFrame work script
3 Library    SeleniumLibrary
4
5
6 *** Keywords ***
7
8 Validate SDK Sub Menu
9     [Documentation]    Logs into SDK GUI as Portal admin
10     Page Should Contain    Home
11     Page Should Contain    Sample Pages
12     Page Should Contain    Reports
13     Page Should Contain    Profile
14     Page Should Contain    Admin
15
16 Click Sample Pages and validate sub Menu
17     [Documentation]    Click Sample Pages
18     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
19     Click Link    xpath=//a[@id='parent-item-Sample-Pages']
20     Element Text Should Be    xpath=//a[@title='Collaboration']    Collaboration
21     Element Text Should Be    xpath=//a[@title='Notebook']    Notebook
22     Click Link    xpath=//a[contains(@title,'Collaboration')]
23     Page Should Contain    User List
24     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
25     Click Link    xpath=//a[@id='parent-item-Sample-Pages']
26     Click Link    xpath=//a[contains(@title,'Notebook')]
27     Element Text Should Be    xpath=//h1[contains(.,'Notebook')]    Notebook
28
29 Click Reports and validate sub Menu
30      [Documentation]    Click Reports Tab
31      #Select frame    xpath=.//*[@id='tabframe-xDemo-App']
32      Click Link    xpath=//a[@id='parent-item-Reports']
33      Element Text Should Be    xpath=//a[@title='All Reports']    All Reports
34      Element Text Should Be    xpath=//a[@title='Create Reports']    Create Reports
35      Click Link    xpath=//a[contains(@title,'All Reports')]
36      Page Should Contain    Report search
37      Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
38      Click Link    xpath=//a[@id='parent-item-Reports']
39      Click Link    xpath=//a[contains(@title,'Create Reports')]
40      Page Should Contain    Report Wizard
41
42 Click Profile and validate sub Menu
43     [Documentation]    Click Profile Tab
44     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
45     Click Link    xpath=//a[@id='parent-item-Profile']
46     Element Text Should Be    xpath=//a[@title='Search']    Search
47     Element Text Should Be    xpath=//a[@title='Self']    Self
48     Click Link    xpath=//a[contains(@title,'Search')]
49     Page Should Contain    Profile Search
50     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
51     Click Link    xpath=//a[@id='parent-item-Profile']
52     Click Link    xpath=//a[contains(@title,'Self')]
53     Page Should Contain    Self Profile Detail
54
55 Click Admin and validate sub Menu
56     [Documentation]    Click Admin Tab
57     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
58     Click Link    xpath=//a[@id='parent-item-Admin']
59     Element Text Should Be    xpath=//a[@title='Roles']    Roles
60     Element Text Should Be    xpath=//a[@title='Role Functions']    Role Functions
61     Element Text Should Be    xpath=//a[@title='Cache Admin']    Cache Admin
62     Element Text Should Be    xpath=//a[@title='Menus']    Menus
63     Element Text Should Be    xpath=//a[@title='Usage']    Usage
64     Click Link    xpath=//a[contains(@title,'Roles')]
65     Page Should Contain    Roles
66     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
67     Click Link    xpath=//a[@id='parent-item-Admin']
68     Click Link    xpath=//a[contains(@title,'Role Function')]
69     Page Should Contain    Role Function
70     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
71     Click Link    xpath=.//a[@id='parent-item-Admin']
72     #Select frame    xpath=.//*[@id='tabframe-xDemo-App']
73     Click Link    xpath=//a[@id='parent-item-Admin']
74     Click Link    xpath=//a[contains(@title,'Cache Admin')]
75     Page Should Contain    Cache Regions
76     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
77     Click Link    xpath=.//a[@id='parent-item-Admin']
78     Click Link    xpath=//a[@id='parent-item-Admin']
79     Click Link    xpath=//a[contains(@title,'Menus')]
80     Page Should Contain    Admin Menu Items
81     Comment    Select frame    xpath=.//*[@id='tabframe-xDemo-App']
82     Click Link    xpath=//a[@id='parent-item-Admin']
83     Click Link    xpath=//a[@id='parent-item-Admin']
84     Click Link    xpath=//a[contains(@title,'Usage')]
85     Page Should Contain    Current Usage