我知道 RIDE 运行 .robot 文件并将 txt 转换为 Python robots.api 调用。我正在尝试查看 Ride 中的某些内容如何转换为 robots.api 中的调用方式
有没有办法查看 Ride 在 Ride 中运行测试套件时如何使用 Robot.Api 调用?
澄清示例:
Ride中的.Robot文件:
*** Settings ***
Library DateTime
*** Test Case ***
A_Test_Case
Should Be Equal 1 1
是相同的:
Python机器人.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。