@pytest.fixture
def record_xml_property(request):
 request.node.warn(code='C3', message='record_xml_property is an experimental feature')
 xml = getattr(request.config, '_xml', None)
 if (xml is not None):
  node_reporter = xml.node_reporter(request.node.nodeid)
  return node_reporter.add_property
 else:
  def add_property_noop(name, value):
   pass
  return add_property_noop

@ pytest . fixture def record_xml_property ( request ) : request . node . warn ( code = 'C3' , message = 'record_xml_property is an experimental feature' ) xml = getattr ( request . config , '_xml' , None ) if ( xml is not None ) : node_reporter = xml . node_reporter ( request . node . nodeid ) return node_reporter . add_property else : def add_property_noop ( name , value ) : pass return add_property_noop
add extra xml properties to the tag for the calling test .