aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/clamp/UIs/test1.robot
blob: fafb00042949b0c9fb1f0ea0786fc32d9091896d (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
37
38
39
40
41
42
43
44
45
46
47
48
*** Settings ***
Library     Collections
Library     RequestsLibrary
Library     OperatingSystem
Library     json
Library     HttpLibrary.HTTP
Library     Selenium2Library
Library     XvfbRobot


*** 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 desable the line.
    Start Virtual Display    1920    1080
    Open Browser    http://localhost:8080/designer/index.html    browser=firefox
    Set Window Size    1920    1080
    ${title}=    Get Title
    Should Be Equal    CLDS    ${title}

Bad Login to Clamp UI and Verify not logged in
    Input Text      locator=username    text=bad_login
    Input Text      locator=password    text=This_is_bad_password
    Press Key    locator=password       key=\\13
    Wait Until Element Is Visible       locator=username       timeout=5
    Page Should Not Contain Element      xpath=//*[@class="navbar-brand logo_name ng-binding"]       expected=*Hello:admin*

Good Login to Clamp UI and Verify logged in
    Input Text      locator=username    text=admin
    Input Text      locator=password    text=password
    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

Create Template from Menu
    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=Create Template       timeout=60
    Click Element    locator=Create Template
    Input Text      locator=modelName       text=template1
    Click Button    locator=OK

Close Browser
    Close Browser
ervice.internalPort }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} env: - name: MYSQL_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "common.name" . }} key: db-root-password volumeMounts: - mountPath: /var/lib/mysql name: mariadb-data - mountPath: /etc/localtime name: localtime readOnly: true - mountPath: /etc/mysql/conf.d name: mariadb-conf - mountPath: /docker-entrypoint-initdb.d/02-load-additional-changes.sh name: mariadb-docker-entrypoint-initdb subPath: 02-load-additional-changes.sh - mountPath: /docker-entrypoint-initdb.d/01-load-default-sql-files.sh name: mariadb-docker-entrypoint-initdb subPath: 01-load-default-sql-files.sh - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/automated-tests name: mariadb-docker-entrypoint-automated-tests - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/default name: mariadb-docker-entrypoint-bulkload-default - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-dns name: mariadb-docker-entrypoint-demo-dns - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-vfw name: mariadb-docker-entrypoint-demo-vfw - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/camunda name: mariadb-docker-entrypoint-camunda - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/main-schemas name: mariadb-docker-entrypoint-main-schemas resources: {{ toYaml .Values.resources | indent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} volumes: {{- if .Values.persistence.enabled }} - name: mariadb-data persistentVolumeClaim: claimName: {{ include "common.name" . }} {{- else }} emptyDir: {} {{- end }} - name: mariadb-conf configMap: name: confd-configmap - name: mariadb-docker-entrypoint-initdb configMap: name: docker-entry-initd-configmap - name: mariadb-docker-entrypoint-automated-tests configMap: name: automated-tests-configmap - name: mariadb-docker-entrypoint-bulkload-default configMap: name: bulkload-default-configmap - name: mariadb-docker-entrypoint-demo-dns configMap: name: demo-dns-configmap - name: mariadb-docker-entrypoint-demo-vfw configMap: name: demo-vfw-configmap - name: mariadb-docker-entrypoint-camunda configMap: name: scripts-camunda-configmap - name: mariadb-docker-entrypoint-main-schemas configMap: name: main-schemas-configmap - name: localtime hostPath: path: /etc/localtime imagePullSecrets: - name: "{{ include "common.name" . }}-docker-registry-key"