Return results in Robot Framework keyword?

前端 未结 5 1414
青春惊慌失措
青春惊慌失措 2021-02-05 08:34

How can I return the results after running a keyword?

Example:

mykey word [Arguments] input
   ${results}=  getme input

But I want to u

5条回答
  •  醉话见心
    2021-02-05 09:11

    Use [Return] to return results.

    An example is:

    Time Stamp
    
          [Return]  ${time_stamp}
          ${secs}=  Get Time  epoch
          ${time}=  Get Time
          ${time_stamp}=  Convert To String      ${secs}
    

    The value of ${time_stamp} will be stored in the Time Stamp keyword.

提交回复
热议问题