8b51a8d1d92856f2d8175deec3eff60c668ab9d9
[it/test.git] / ric_robot_suite / robot / testsuites / ete.robot
1 *** Settings ***
2 Documentation     Executes the End To End Test cases
3 ...
4 Library   Collections
5 Library   OperatingSystem
6 Resource         ../resources/appmgr/appmgr_interface.robot
7 Resource         ../resources/e2mgr/e2mgr_interface.robot
8 Resource         ../resources/dashboard/dashboard_interface.robot
9
10 *** Variables ***
11 ${TEST_XAPPNAME}       DemoXapp1
12 ${TEST_XAPPID}    101
13 ${TEST_NODE_B_NAME}     AAAA456789
14 ${TEST_NODE_B_IP}     10.0.0.3
15 ${TEST_NODE_B_PORT}   36422
16
17
18 *** Test Cases ***
19 Get All Xapps
20     [Tags]   etetests  xapptests   ci_tests
21     Run AppMgr Get All Request
22 Create Xapp
23     [Tags]   etetests  xapptests   ci_tests
24     Run Create Xapp   ${TEST_XAPPNAME}    ${TEST_XAPPID}
25 Get Xapp By Name
26     [Tags]   etetests  xapptests
27     Run AppMgr Get By XappName   ${TEST_XAPPNAME}
28 Get Xapp By Name and Id
29     [Tags]   etetests   xapptests
30     Run AppMgr Get By XappName and XappId    ${TEST_XAPPNAME}   ${TEST_XAPPID}
31 Setup RAN Via E2Mgr X2
32     [Tags]   x2setup
33     Run E2Mgr Setup NodeB X2   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
34     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
35 Setup RAN Via E2Mgr Endc
36     [Tags]   e2setup
37     Run E2Mgr Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
38     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
39 Get NodeB via E2Mgr
40     [Tags]   e2setup   x2setup
41     Run E2Mgr Get NodeB Request   ${TEST_NODE_B_NAME}
42 Get All NodeBs Via E2Mgr
43     [Tags]   e2mgrtest   etetests   e2setup   x2setup   ci_tests
44     Run E2Mgr Get All NodeBs Request
45 Setup RAN Via Dashboard Endc
46     [Tags]   e2setup_dash
47     Run Dashboard Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
48     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
49 Setup RAN Via Dashboard X2
50     [Tags]   x2setup_dash
51     Run Dashboard Setup NodeB X2    ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
52     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
53 Get NodeB via Dashboard
54     [Tags]   e2setup_dash   x2setup_dash
55     Run Dashboard Get NodeB Request   ${TEST_NODE_B_NAME}
56 Get All NodeBs via Dashboard
57     [Tags]   e2setup_dash   x2setup_dash    ci_tests
58     Run Dashboard Get All NodeBs Request
59