【发布时间】:2020-04-09 16:19:07
【问题描述】:
我知道 RIDE 运行 .robot 文件并将 txt 转换为 Python robots.api 调用。我正在尝试查看 Ride 中的某些内容如何转换为 robots.api 中的调用方式
有没有办法查看 Ride 在 Ride 中运行测试套件时如何使用 Robot.Api 调用?
说明示例:
.Ride 中的机器人文件:
*** Settings ***
Library DateTime
*** Test Case ***
A_Test_Case
Should Be Equal 1 1
等同于:
Python Robot.api:
from robot.api import TestSuite
suite = TestSuite(name='Test_Suite')
suite.resource.imports.library('DateTime')
testcase = suite.tests.create('Test_Case')
testcase.keywords.create('Should Be Equal', args=[1, 1])
我需要知道是否有办法查看 .robot 文件如何转换为对应的 python。
【问题讨论】: