Add more tests to CSIT 15/41415/2
authorehautot <eh552t@intl.att.com>
Fri, 6 Apr 2018 17:07:02 +0000 (19:07 +0200)
committerehautot <eh552t@intl.att.com>
Fri, 6 Apr 2018 17:39:58 +0000 (19:39 +0200)
Change-Id: I6e53e577fe518f4e0df6135643d9c84ded604712
Signed-off-by: ehautot <eh552t@intl.att.com>
Issue-ID: CLAMP-35

test/csit/tests/clamp/APIs/01__Create_CL_Holmes.robot
test/csit/tests/clamp/APIs/02__Create_CL_TCA.robot
test/csit/tests/clamp/APIs/03__VariousApis.robot
test/csit/tests/clamp/APIs/04__Verify_API_Models.robot
test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot
test/csit/tests/clamp/UIs/02__Create_TCA_model.robot
test/csit/tests/clamp/UIs/03__Verify_UI_Models.robot
test/csit/tests/clamp/UIs/04__Submit_deploy_chain_Holmes.robot [new file with mode: 0644]
test/csit/tests/clamp/UIs/05__Submit_deploy_chain_TCA.robot [new file with mode: 0644]

index f837bae..f820ef6 100644 (file)
@@ -4,6 +4,9 @@ Library     RequestsLibrary
 Library     OperatingSystem
 Library     json
 
+*** Variables ***
+${login}                     admin
+${passw}                     password
 
 *** Test Cases ***
 Get Requests health check ok
@@ -12,7 +15,7 @@ Get Requests health check ok
     Should Be Equal As Strings  ${resp.status_code}     200
 
 Get Requests verify test template found
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/cldsTempate/template-names
     Should Be Equal As Strings  ${resp.status_code}     200
@@ -21,7 +24,7 @@ Get Requests verify test template found
     Should Not Contain Match     ${resp}      *templateHolmes99*
 
 Put Requests to add Close Loop ClHolmes1
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${data}=    Get Binary File     ${CURDIR}${/}data${/}createClHolmes1.json
     &{headers}=  Create Dictionary      Content-Type=application/json
@@ -29,7 +32,7 @@ Put Requests to add Close Loop ClHolmes1
     Should Be Equal As Strings      ${resp.status_code}     200
 
 Put Requests to add Close Loop ClHolmes2
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${data}=    Get Binary File     ${CURDIR}${/}data${/}createClHolmes2.json
     &{headers}=  Create Dictionary      Content-Type=application/json
@@ -37,7 +40,7 @@ Put Requests to add Close Loop ClHolmes2
     Should Be Equal As Strings      ${resp.status_code}     200
 
 Get Requests verify CL1 found
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Be Equal As Strings  ${resp.status_code}     200
index c86b2a7..5dfa879 100644 (file)
@@ -4,6 +4,9 @@ Library     RequestsLibrary
 Library     OperatingSystem
 Library     json
 
+*** Variables ***
+${login}                     admin
+${passw}                     password
 
 *** Test Cases ***
 Get Requests health check ok
@@ -12,7 +15,7 @@ Get Requests health check ok
     Should Be Equal As Strings  ${resp.status_code}     200
 
 Get Requests verify test template found
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/cldsTempate/template-names
     Should Be Equal As Strings  ${resp.status_code}     200
@@ -21,7 +24,7 @@ Get Requests verify test template found
     Should Not Contain Match     ${resp}      *templateTCA99*
 
 Put Requests to add Close Loop ClHolmes1
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${data}=    Get Binary File     ${CURDIR}${/}data${/}createClTCA1.json
     &{headers}=  Create Dictionary      Content-Type=application/json
@@ -29,7 +32,7 @@ Put Requests to add Close Loop ClHolmes1
     Should Be Equal As Strings      ${resp.status_code}     200
 
 Put Requests to add Close Loop ClHolmes2
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${data}=    Get Binary File     ${CURDIR}${/}data${/}createClTCA2.json
     &{headers}=  Create Dictionary      Content-Type=application/json
@@ -37,7 +40,7 @@ Put Requests to add Close Loop ClHolmes2
     Should Be Equal As Strings      ${resp.status_code}     200
 
 Get Requests verify CL1 found
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Be Equal As Strings  ${resp.status_code}     200
index df6e7e4..fb671ca 100644 (file)
@@ -4,24 +4,27 @@ Library     RequestsLibrary
 Library     OperatingSystem
 Library     json
 
+*** Variables ***
+${login}                     admin
+${passw}                     password
 
 *** Test Cases ***
 Get Clamp properties
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/properties
     Dictionary Should Contain Key    ${resp.json()}   global
     Dictionary Should Contain Key    ${resp.json()['global']}   location
 
 Get Clamp Info
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/cldsInfo
     Dictionary Should Contain Key    ${resp.json()}   userName
     Dictionary Should Contain Key    ${resp.json()}   cldsVersion
 
 Get model bpmn by name
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/bpmn/ClHolmes1
     Should Contain Match    ${resp}   *StartEvent_*
@@ -31,7 +34,7 @@ Get model bpmn by name
     Should Contain Match    ${resp}   *EndEvent_*
 
 Get model names
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Contain Match    ${resp}   *ClHolmes1*
index 1bca594..3ae6aee 100644 (file)
@@ -4,9 +4,13 @@ Library     RequestsLibrary
 Library     OperatingSystem
 Library     json
 
+*** Variables ***
+${login}                     admin
+${passw}                     password
+
 *** Test Cases ***
 Verify HolmesModel1
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClHolmes1
     Should Contain Match    ${resp}   *templateHolmes1*
@@ -19,7 +23,7 @@ Verify HolmesModel1
     Should Contain Match    ${resp}   *Config Policy name1*
 
 Verify HolmesModel2
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClHolmes2
     Should Contain Match    ${resp}   *templateHolmes2*
@@ -33,7 +37,7 @@ Verify HolmesModel2
     Should Contain Match    ${resp}   *Config Policy Name2*
 
 Verify TCAModel1
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClTCA1
     Should Contain Match    ${resp}   *templateTCA1*
@@ -46,7 +50,7 @@ Verify TCAModel1
     Should Contain Match    ${resp}   *ONSET*
 
 Verify TCAModel2
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClTCA2
     Should Contain Match    ${resp}   *templateTCA2*
@@ -61,7 +65,7 @@ Verify TCAModel2
     Should Contain Match    ${resp}   *VM*
 
 Get model names
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Contain Match    ${resp}   *ClHolmes1*
index 02cfecb..3f87179 100644 (file)
@@ -7,6 +7,8 @@ Library     Selenium2Library
 Library     XvfbRobot
 
 *** Variables ***
+${login}                     admin
+${passw}                     password
 ${SELENIUM_SPEED_FAST}       .2 seconds
 ${SELENIUM_SPEED_SLOW}       .5 seconds
 
@@ -26,8 +28,8 @@ Open Browser
     Should Be Equal    CLDS    ${title}
 
 Good Login to Clamp UI and Verify logged in
-    Input Text      locator=username    text=admin
-    Input Text      locator=password    text=password
+    Input Text      locator=username    text=${login}
+    Input Text      locator=password    text=${passw}
     Press Key    locator=password       key=\\13
     Wait Until Element Is Visible       xpath=//*[@class="navbar-brand logo_name ng-binding"]       timeout=60
     Element Text Should Be      xpath=//*[@class="navbar-brand logo_name ng-binding"]       expected=Hello:admin
@@ -84,7 +86,7 @@ Close Browser
     Close Browser
 
 Verify Holmes CL well created
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Contain Match    ${resp}   *HolmesModel1*
index 8a8d9af..99d93c3 100644 (file)
@@ -7,6 +7,8 @@ Library     Selenium2Library
 Library     XvfbRobot
 
 *** Variables ***
+${login}                     admin
+${passw}                     password
 ${SELENIUM_SPEED_FAST}       .2 seconds
 ${SELENIUM_SPEED_SLOW}       .5 seconds
 
@@ -26,8 +28,8 @@ Open Browser
     Should Be Equal    CLDS    ${title}
 
 Good Login to Clamp UI and Verify logged in
-    Input Text      locator=username    text=admin
-    Input Text      locator=password    text=password
+    Input Text      locator=username    text=${login}
+    Input Text      locator=password    text=${passw}
     Press Key    locator=password       key=\\13
     Wait Until Element Is Visible       xpath=//*[@class="navbar-brand logo_name ng-binding"]       timeout=60
     Element Text Should Be      xpath=//*[@class="navbar-brand logo_name ng-binding"]       expected=Hello:admin
@@ -63,7 +65,19 @@ Set Policy Box properties for TCAModel1
     Input Text      locator=timeout      text=400
     Click Button    locator=Close
 
-### Cannot set TCA box attributes due to element not interractable with Selenium
+Set TCA Box properties for TCAModel1
+    Wait Until Element Is Visible       xpath=//*[@data-element-id="Policy_12lup3h"]      timeout=60
+    Click Element    xpath=//*[@data-element-id="TCA_1d13unw"]
+    Input Text      xpath=(//input[@id='tname'])[2]      text=TCA1
+    Select From List By Label       xpath=//*[@id="tcaPol"]      Policy2
+    Select From List By Label       xpath=//*[@id="eventName"]      vCPEvGMUXPacketLoss
+### Cannot set all TCA box attributes due to element not interractable with Selenium
+#    Select From List By Label       xpath=//*[@id="controlLoopSchemaType"]       VNF
+#    Select From List By Index       xpath=//*[@id="controlLoopSchemaType"]       1
+    Click Element    xpath=(//button[@id='createNewThresh'])[2]
+    Input Text      xpath=(//input[@id='threshold'])[2]          6
+#    Select From List By Label       xpath=//*[@id="closedLoopEventStatus"]        ONSET
+    Click Button    id=savePropsBtn
 
 Save Model from Menu
     Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[1]/a      timeout=60
@@ -79,7 +93,7 @@ Close Browser
     Close Browser
 
 Verify TCA CL well create
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Contain Match    ${resp}   *TCAModel1*
index 634d171..70cbf12 100644 (file)
@@ -4,9 +4,13 @@ Library     RequestsLibrary
 Library     OperatingSystem
 Library     json
 
+*** Variables ***
+${login}                     admin
+${passw}                     password
+
 *** Test Cases ***
 Verify HolmesModel1
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/HolmesModel1
     Should Contain Match    ${resp}   *templateHolmes1*
@@ -21,7 +25,7 @@ Verify HolmesModel1
     Should Contain Match    ${resp}   *config Policy Name1*
 
 Verify TCAModel1
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/TCAModel1
     Should Contain Match    ${resp}   *templateTCA1*
@@ -35,7 +39,7 @@ Verify TCAModel1
     Should Contain Match    ${resp}   *400*
 
 Get model names
-    ${auth}=    Create List     admin    password
+    ${auth}=    Create List     ${login}    ${passw}
     Create Session   clamp  http://localhost:8080   auth=${auth}
     ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
     Should Contain Match    ${resp}   *HolmesModel1*
diff --git a/test/csit/tests/clamp/UIs/04__Submit_deploy_chain_Holmes.robot b/test/csit/tests/clamp/UIs/04__Submit_deploy_chain_Holmes.robot
new file mode 100644 (file)
index 0000000..f400156
--- /dev/null
@@ -0,0 +1,130 @@
+*** Settings ***
+Library     Collections
+Library     RequestsLibrary
+Library     OperatingSystem
+Library     json
+Library     Selenium2Library
+Library     XvfbRobot
+
+*** Variables ***
+${login}                     admin
+${passw}                     password
+${SELENIUM_SPEED_FAST}       .2 seconds
+${SELENIUM_SPEED_SLOW}       .5 seconds
+
+*** Test Cases ***
+Get Requests health check ok
+    CreateSession   clamp  http://localhost:8080
+    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/healthcheck
+    Should Be Equal As Strings  ${resp.status_code}     200
+
+Open Browser
+# Next line is to be enabled for Headless tests only (jenkins?). To see the tests disable the line.
+    Start Virtual Display    1920    1080
+    Open Browser    http://localhost:8080/designer/index.html    browser=firefox
+    Set Selenium Speed      ${SELENIUM_SPEED_SLOW}
+    Set Window Size    1920    1080
+    ${title}=    Get Title
+    Should Be Equal    CLDS    ${title}
+
+Good Login to Clamp UI and Verify logged in
+    Input Text      locator=username    text=${login}
+    Input Text      locator=password    text=${passw}
+    Press Key    locator=password       key=\\13
+    Wait Until Element Is Visible       xpath=//*[@class="navbar-brand logo_name ng-binding"]       timeout=60
+    Element Text Should Be      xpath=//*[@class="navbar-brand logo_name ng-binding"]       expected=Hello:admin
+
+Open Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[1]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[1]/a
+    Wait Until Element Is Visible       locator=Open CL       timeout=60
+    Click Element    locator=Open CL
+    Select From List By Label       id=modelName      HolmesModel1
+    Click Button    locator=OK
+    Element Should Contain      xpath=//*[@id="modeler_name"]     Closed Loop Modeler - HolmesModel1
+    Element Should Contain      xpath=//*[@id="status_clds"]     DESIGN
+
+Validate-Test Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Validation Test       timeout=60
+    Click Element    locator=Validation Test
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:TEST
+    Element Should Contain      xpath=//*[@id="status_clds"]     DESIGN
+
+Submit Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Submit       timeout=60
+    Click Element    locator=Submit
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:SUBMIT
+    Element Should Contain      xpath=//*[@id="status_clds"]     DISTRIBUTED
+
+Resubmit Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Resubmit       timeout=60
+    Click Element    locator=Resubmit
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:RESUBMIT
+    Element Should Contain      xpath=//*[@id="status_clds"]     DISTRIBUTED
+
+Deploy Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Deploy       timeout=60
+    Click Element    locator=Deploy
+    Wait Until Element Is Visible       xpath=//*[@id="deployProperties"]       timeout=60
+    Input Text      xpath=//*[@id="deployProperties"]      text={}
+    Click Button    locator=Deploy
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:deploy
+    Element Should Contain      xpath=//*[@id="status_clds"]     ACTIVE
+
+Update Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Update       timeout=60
+    Click Element    locator=Update
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:UPDATE
+    Element Should Contain      xpath=//*[@id="status_clds"]     ACTIVE
+
+Stop Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Stop       timeout=60
+    Click Element    locator=Stop
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:STOP
+    Element Should Contain      xpath=//*[@id="status_clds"]     STOPPED
+
+Restart Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Restart       timeout=60
+    Click Element    locator=Restart
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:RESTART
+    Element Should Contain      xpath=//*[@id="status_clds"]     ACTIVE
+
+UnDeploy Holmes CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=UnDeploy       timeout=60
+    Click Element    locator=UnDeploy
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:undeploy
+    Element Should Contain      xpath=//*[@id="status_clds"]     DISTRIBUTED
+
+Close Browser
+    Close Browser
diff --git a/test/csit/tests/clamp/UIs/05__Submit_deploy_chain_TCA.robot b/test/csit/tests/clamp/UIs/05__Submit_deploy_chain_TCA.robot
new file mode 100644 (file)
index 0000000..34c1a71
--- /dev/null
@@ -0,0 +1,130 @@
+*** Settings ***
+Library     Collections
+Library     RequestsLibrary
+Library     OperatingSystem
+Library     json
+Library     Selenium2Library
+Library     XvfbRobot
+
+*** Variables ***
+${login}                     admin
+${passw}                     password
+${SELENIUM_SPEED_FAST}       .2 seconds
+${SELENIUM_SPEED_SLOW}       .5 seconds
+
+*** Test Cases ***
+Get Requests health check ok
+    CreateSession   clamp  http://localhost:8080
+    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/healthcheck
+    Should Be Equal As Strings  ${resp.status_code}     200
+
+Open Browser
+# Next line is to be enabled for Headless tests only (jenkins?). To see the tests disable the line.
+    Start Virtual Display    1920    1080
+    Open Browser    http://localhost:8080/designer/index.html    browser=firefox
+    Set Selenium Speed      ${SELENIUM_SPEED_SLOW}
+    Set Window Size    1920    1080
+    ${title}=    Get Title
+    Should Be Equal    CLDS    ${title}
+
+Good Login to Clamp UI and Verify logged in
+    Input Text      locator=username    text=${login}
+    Input Text      locator=password    text=${passw}
+    Press Key    locator=password       key=\\13
+    Wait Until Element Is Visible       xpath=//*[@class="navbar-brand logo_name ng-binding"]       timeout=60
+    Element Text Should Be      xpath=//*[@class="navbar-brand logo_name ng-binding"]       expected=Hello:admin
+
+Open TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[1]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[1]/a
+    Wait Until Element Is Visible       locator=Open CL       timeout=60
+    Click Element    locator=Open CL
+    Select From List By Label       id=modelName      TCAModel1
+    Click Button    locator=OK
+    Element Should Contain      xpath=//*[@id="modeler_name"]     Closed Loop Modeler - TCAModel1
+    Element Should Contain      xpath=//*[@id="status_clds"]     DESIGN
+
+Validate-Test TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Validation Test       timeout=60
+    Click Element    locator=Validation Test
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:TEST
+    Element Should Contain      xpath=//*[@id="status_clds"]     DESIGN
+
+Submit TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Submit       timeout=60
+    Click Element    locator=Submit
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:SUBMIT
+    Element Should Contain      xpath=//*[@id="status_clds"]     DISTRIBUTED
+
+Resubmit TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Resubmit       timeout=60
+    Click Element    locator=Resubmit
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:RESUBMIT
+    Element Should Contain      xpath=//*[@id="status_clds"]     DISTRIBUTED
+
+Deploy TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Deploy       timeout=60
+    Click Element    locator=Deploy
+    Wait Until Element Is Visible       xpath=//*[@id="deployProperties"]       timeout=60
+    Input Text      xpath=//*[@id="deployProperties"]      text={}
+    Click Button    locator=Deploy
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:deploy
+    Element Should Contain      xpath=//*[@id="status_clds"]     ACTIVE
+
+Update TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Update       timeout=60
+    Click Element    locator=Update
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:UPDATE
+    Element Should Contain      xpath=//*[@id="status_clds"]     ACTIVE
+
+Stop TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Stop       timeout=60
+    Click Element    locator=Stop
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:STOP
+    Element Should Contain      xpath=//*[@id="status_clds"]     STOPPED
+
+Restart TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=Restart       timeout=60
+    Click Element    locator=Restart
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:RESTART
+    Element Should Contain      xpath=//*[@id="status_clds"]     ACTIVE
+
+UnDeploy TCA CL
+    Wait Until Element Is Visible       xpath=//*[@id="navbar"]/ul/li[2]/a       timeout=60
+    Click Element    xpath=//*[@id="navbar"]/ul/li[2]/a
+    Wait Until Element Is Visible       locator=UnDeploy       timeout=60
+    Click Element    locator=UnDeploy
+    Click Button    locator=Yes
+    Wait Until Element Is Visible       xpath=//*[@id="alert_message_"]      timeout=60
+    Element Text Should Be      xpath=//*[@id="alert_message_"]       expected=Action Successful:undeploy
+    Element Should Contain      xpath=//*[@id="status_clds"]     DISTRIBUTED
+
+Close Browser
+    Close Browser