Skip to content

Instantly share code, notes, and snippets.

View wlad's full-sized avatar
✔️
Robot Framework ❤️ 🚀 🚀 🚀

RobotFramework(er) wlad

✔️
Robot Framework ❤️ 🚀 🚀 🚀
View GitHub Profile
@testautomation
testautomation / RESTInstance_JSON_string_contains.robot
Created March 5, 2020 13:56
RESTInstance example - JSON Schema keyword `pattern` for testing if a JSON string contains something
*** 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"
@testautomation
testautomation / case_switch.py
Created February 16, 2020 19:06
How Can We Best Switch in Python?
# 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'

Default

localhost 8080 /ehrbase/rest/openehr/v1/

Create EHR

POST /ehr

@testautomation
testautomation / circleci-conditional-job.md
Last active July 25, 2024 12:35
CircleCi - conditional jobs would make every body happy

simlified .circleci/config.yml

workflows:

  parallel-robot-tests:

      jobs:
        - build-artifacts:
 - test-suit-1:
@testautomation
testautomation / Dockerfile
Last active December 3, 2021 15:49
Java Spring Boot Application + Docker - cache generation issue. Related source code: https://github.com/ehrbase/ehrbase
# 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"
@testautomation
testautomation / xml-elements-should-match-vs-should-be-equal.md
Created October 29, 2019 12:52
XML - Elements Should Match vs. Elements Should Be Equal (Robot Framework / #robotframework)
*** Settings ***
Library    XML



*** Test Cases ***
XML Elements Should Match
    ${a}                Parse Xml  <units>mm[Hg]</units>
 ${b} Parse Xml mm[Hg]
@Tset-Noitamotua
Tset-Noitamotua / cucumber_to_robotframework.md
Last active May 13, 2024 11:06
HOW TO translate Cucumber test case into Robot Framework (RF) test case

Cucumber test with examples table

Scenario Outline: eating cucumbers
  Given there are <start> cucumbers
  When I eat <eat> cucumbers
  Then I should have <left> cucumbers

  Examples:
    | start | eat | left |
    |  12   |  5  |  7   |
@rxaviers
rxaviers / gist:7360908
Last active November 19, 2024 17:59
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: