You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a custom data driver to fill my template test case with data from Jira. Running the test cases using robot everythink works correctly. Running them using pabot I get the following errors shown:
13:05:45 [ ERROR ] [ DataDriver ] Error in robot file:
13:05:45 File "C:\Develop\Skripte\tests\test.robot", line 0
13:05:45 [ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: AttributeError: 'keywords' attribute is read-only and deprecated since Robot Framework 4.0. Use 'body', 'setup' or 'teardown' instead.
Results are same.
The data driver is quite easy:
class JiraTestcaseReader(AbstractReaderClass):
# This method will be called from DataDriver to get the TestCaseData list.
def get_data_from_source(self):
jql = jira_helper.create_jql(
project=self.kwargs['project_name'], test_aspect=self.kwargs['testsuite'], test_id_filter=self.kwargs['test_id'])
issues = jira_control.search_issues(
jql=jql, environment=self.kwargs['jira_environment'])
for jira_test in issues:
upload_dir_ = regex.sub(r'[\\/]', "/", os.path.join(ROBOT_OUTPUT_DIR, jira_test.key, 'temp'))
screen_dir = regex.sub(r'[\\/]', "/", os.path.join(ROBOT_OUTPUT_DIR, jira_test.key, 'screenshot'))
debug_dir = regex.sub(r'[\\/]', "/", os.path.join(ROBOT_OUTPUT_DIR, jira_test.key, 'debug'))
args = {'${JiraIssueTestfall}': jira_test.key, '${TmpDir}': upload_dir_,
'${ScreenDir}': screen_dir, '${DebugDir}': debug_dir}
test_data.append(TestCaseData(f'{jira_test.fields.summary} - {jira_test.key}', args))
I need to replace the slashes using regular expresions otherwise creating the path with for example the Path-lib I get issues in the execution on linux. The path in my test do not have slashes and are invalid. Seems to be a bug too.
The reader does not have any further functions.
The text was updated successfully, but these errors were encountered:
I'm using a custom data driver to fill my template test case with data from Jira. Running the test cases using robot everythink works correctly. Running them using pabot I get the following errors shown:
13:05:45 [ ERROR ] [ DataDriver ] Error in robot file:
13:05:45 File "C:\Develop\Skripte\tests\test.robot", line 0
13:05:45 [ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: AttributeError: 'keywords' attribute is read-only and deprecated since Robot Framework 4.0. Use 'body', 'setup' or 'teardown' instead.
Results are same.
The data driver is quite easy:
class JiraTestcaseReader(AbstractReaderClass):
I need to replace the slashes using regular expresions otherwise creating the path with for example the Path-lib I get issues in the execution on linux. The path in my test do not have slashes and are invalid. Seems to be a bug too.
The reader does not have any further functions.
The text was updated successfully, but these errors were encountered: