Skip to content

Instantly share code, notes, and snippets.

@up1
Created April 7, 2015 06:00
Show Gist options
  • Save up1/d4978414e0986e13cbff to your computer and use it in GitHub Desktop.
Save up1/d4978414e0986e13cbff to your computer and use it in GitHub Desktop.
Demo :: Robot Framework => re-test
*** Settings ***
Library String
*** Testcases ***
Stable test
Should Be True ${True}
Unstable test
${bool} = random_boolean
Should Be True ${bool}
*** Keywords ***
random_boolean
${nb_string} = generate random string 1 [NUMBERS]
${nb_int} = convert to integer ${nb_string}
Run keyword and return evaluate (${nb_int} % 2) == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment