workflows:
parallel-robot-tests:
jobs:
- build-artifacts:
- test-suit-1:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library REST | |
*** Test Cases *** | |
Use JSON Schema keyword pattern to test JSON string for substrings | |
[Setup] GET https://jsonplaceholder.typicode.com/users/1 | |
# matches "Leanne Graham" as a substring: | |
String response body name pattern="anne Grah" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BLOG: https://medium.com/swlh/how-can-we-best-switch-in-python-458fb33f7835 | |
def explain_char(character): | |
""" | |
switch using if / elif / else | |
""" | |
something = '' | |
if character == 'a': | |
something = 'first letter of alphabet' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# postgres db container with some ehrbase customizations | |
FROM ehrbaseorg/ehrbase-database-docker:11.5 | |
# you may need to adjust the IP address | |
ENV DB_URL="jdbc:postgresql://172.17.0.2:5432/ehrbase" | |
ENV DB_USER="postgres" | |
ENV DB_PASS="postgres" | |
ENV POSTGRES_USER="postgres" | |
ENV POSTGRES_PASSWORD="postgres" |
*** Settings ***
Library XML
*** Test Cases ***
XML Elements Should Match
${a} Parse Xml <units>mm[Hg]</units>
${b} Parse Xml mm[Hg]