When ${a} == True, perform keyword1, keyword2, when ${a} == True keyword3, keyword4.
*** Settings ***
Resource /path/to/keyword1
Resource /path/to/keyword2
Resource /path/to/a
*** Keywords ***
Custom Keyword From If
[Documentation] Left to the user to extrapolate keyword3 & keyword4
keyword1
keyword2
*** Test Cases ***
Test Custom Keyword From If
Run Keyword If '${a}'=='True' Custom Keyword From If
run keyword if ${a} == True run keywords... keyword 1... AND keyword 2... AND keyword 3... AND keyword 4
When ${a} == True, perform keyword1, keyword2, when ${a} == True keyword3, keyword4.How to implement??
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
You can use "run keywords"run keyword if ${a} == True run keywords... keyword 1... AND keyword 2... AND keyword 3... AND keyword 4Though, it might be better to create a new keyword that has those other keywords so that you only have to call one keyword.
On Tue, Aug 9, 2016 at 1:36 AM, <din...@139.com> wrote:
When ${a} == True, perform keyword1, keyword2, when ${a} == True keyword3, keyword4.How to implement??
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
In such case, if keyword 1 returns a value and I need to use it in keyword 2, can you I do that? Please help.On Tuesday, August 9, 2016 at 5:42:31 PM UTC+5:30, Bryan Oakley wrote:You can use "run keywords"run keyword if ${a} == True run keywords... keyword 1... AND keyword 2... AND keyword 3... AND keyword 4Though, it might be better to create a new keyword that has those other keywords so that you only have to call one keyword.
...
| | run keyword if | ${a} == True | someTaskKW |
...
someTaskKW
| | ${some data}= | keyword1 |
| | keyword2 | ${some data} |
| | keyword 3 |
| | keyword 4 |
Set Text Param| | [Documentation] | Only set a text type param on a page already open. Save Parm is not called || | [Arguments] | ${page name} | ${param name} | ${value} || | ${param id}= | Toucan Input Field Name To ID | ${page name} | ${param name} || | Wait Until Element Is Visible | id=${param id} | timeout=${TIMEOUT} || | Input Text | id=${param id} | ${value} |