Robot framework使用Sample.docVIP

  • 11
  • 0
  • 约7.11千字
  • 约 18页
  • 2017-02-28 发布于湖北
  • 举报
1、quick start 我们以python为例,写几个keyword,然后根据keyword编写test cases;执行case。 (1)write keyword 新建一个ExampleLibrary.py,代码如下: def simple_keyword(): Log a message print You have used the simplest keyword. def greet(name): Logs a friendly greeting to person given as argument print Hello %s! % name def multiply_by_two(number): Returns the given number multiplied by two The result is always a floating point number. This keyword fails if the given `number` cannot be converted to number. return float(number) * 2 def numbers_should_be_equal(first, second): prin

文档评论(0)

1亿VIP精品文档

相关文档