-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Description
since RF 6.0 it supports localization of section headers. For example, I'm writing my case file in Chinese:
*** 设置 *** # Settings
资源文件 aa.resource
*** 用例 *** # Test Cases
CASE_00001
Sleep 5sI'm using pabot to execute the suite, with arg --language zh-CN. It still reports error invalid section headers:
[ ERROR ] Error in file 'example.robot' on line 1: Unrecognized section header '*** 设置 ***'. Valid sections: 'Settings', 'Variables', 'Test Cases', 'Tasks', 'Keywords' and 'Comments'.
In pabot.py function generate_suite_names_with_builder, when calling TestSuiteBuilder, it didn't pass arg lang even language arg is set in command line. After passing language to TestSuiteBuilder it works as expected:
builder = TestSuiteBuilder(
included_extensions=settings.extension, rpa=settings.rpa, lang=opts["language"]
)Hope it can be fixed in next release.
Metadata
Metadata
Assignees
Labels
No labels