diff options
author | eh552t <eh552t@intl.att.com> | 2018-07-04 14:43:49 +0200 |
---|---|---|
committer | eh552t <eh552t@intl.att.com> | 2018-07-04 16:02:11 +0200 |
commit | bc1d800f3ddce555de9c17518ef7e74126fb028f (patch) | |
tree | 217152e788f2cf7b5e3f401dc346cbb50355b6d3 /test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot | |
parent | bc76450dfae26da5364b4ef79535314598e04a1c (diff) |
Fix https issue + create session globally
Change-Id: I94ef9a15a04f969ae036794f99d44c9d3d57564a
Signed-off-by: eh552t <eh552t@intl.att.com>
Issue-ID: CLAMP-194
Diffstat (limited to 'test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot')
-rw-r--r-- | test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot b/test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot index 3f87179cb..c9b7d8c06 100644 --- a/test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot +++ b/test/csit/tests/clamp/UIs/01__Create_Holmes_model.robot @@ -11,26 +11,30 @@ ${login} admin ${passw} password ${SELENIUM_SPEED_FAST} .2 seconds ${SELENIUM_SPEED_SLOW} .5 seconds +${BASE_URL} https://localhost:8443 + +*** Keywords *** +Create the sessions + ${auth}= Create List ${login} ${passw} + Create Session clamp ${BASE_URL} auth=${auth} disable_warnings=1 + Set Global Variable ${clamp_session} clamp *** Test Cases *** Get Requests health check ok - CreateSession clamp http://localhost:8080 - ${resp}= Get Request clamp /restservices/clds/v1/clds/healthcheck + Create the sessions + ${resp}= Get Request ${clamp_session} /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 + Open Browser ${BASE_URL}/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 @@ -86,8 +90,6 @@ Close Browser Close Browser Verify Holmes CL well created - ${auth}= Create List ${login} ${passw} - Create Session clamp http://localhost:8080 auth=${auth} - ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names + ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names Should Contain Match ${resp} *HolmesModel1* Should Not Contain Match ${resp} *HolmesModel99* |