File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,14 @@ def record_tests(client, reports):
8080@launchable .subset
8181def subset (client , reports ):
8282 for r in reports :
83- suite = JUnitXml .fromfile (r , parse_func )
84-
85- for case in suite :
86- cls_name = case ._elem .attrib .get ("classname" )
87- name = case ._elem .attrib .get ('name' )
88- if cls_name != '' and name != '' :
89- client .test_path ([{'type' : 'class' , 'name' : cls_name }, {'type' : 'testcase' , 'name' : name }])
83+ xml = JUnitXml .fromfile (r , parse_func )
84+
85+ for suite in xml :
86+ for case in suite :
87+ cls_name = case ._elem .attrib .get ("classname" )
88+ name = case ._elem .attrib .get ('name' )
89+ if cls_name != '' and name != '' :
90+ client .test_path ([{'type' : 'class' , 'name' : cls_name }, {'type' : 'testcase' , 'name' : name }])
9091
9192 client .formatter = robot_formatter
9293 client .separator = " "
You can’t perform that action at this time.
0 commit comments