我是机器人框架的新手.我想动态创建测试用例,而不需要输入键值驱动的方法.
找到了一些建议如下的材料:
suite = TestSuite('Example suite', doc='...')
tc = TestCase('Example test')
tc.add_step(TestStep('Log', args=['Hello, world!'])
suite.add_test(tc)
Run Code Online (Sandbox Code Playgroud)
我没有在测试用例类中看到add_step,将继续环顾四周,看看是否有任何解决方案.