Il robot guida gli utenti quadro descrive come restituire un valore da una parola chiave. Vedi User keyword return values
La versione breve è: impostare una variabile nella parola chiave e utilizzare l'impostazione di testcase [return]
per restituire tale variabile.
esempio, utilizzando il tubo separato formato solo testo:
*** Keywords ***
| mykey word
| | [Arguments] | ${input}
| | ${string}= | set variable | the string is "${input}"
| | [return] | ${string}
*** Test Cases ***
| Call custom keyword and get result
| | ${results}= | mykey word | newinput
| | log | ${results}
fonte
2011-09-28 12:30:22
Potrebbe chiarire la sua domanda? – Argote
La cosa più importante da sapere su RF è, se hai mai programmato in qualsiasi altra lingua, fingere di non sapere nulla di tutto questo. (A meno che la lingua in questione fosse BASIC, nel qual caso, starai bene.) –