blob: edf54e8153f0de79f38a85f672c510915401fee6 (
plain)
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
|
*** Settings ***
Library Collections
Library RequestsLibrary
Library OperatingSystem
Library json
Library ../../../scripts/clamp/python-lib/CustomSeleniumLibrary.py
Library XvfbRobot
*** Variables ***
${login} admin
${passw} password
${SELENIUM_SPEED_FAST} 1 seconds
${SELENIUM_SPEED_SLOW} 2 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
Create the sessions
${resp}= Get Request ${clamp_session} /restservices/clds/v1/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
Set Selenium Speed ${SELENIUM_SPEED_SLOW}
Open Browser ${BASE_URL}/designer/index.html browser=firefox
Reply to authentication popup
Run Keyword And Ignore Error Insert into prompt ${login} ${passw}
Confirm action
Close Browser
Close Browser
|