code: def generate(self, *args, **kwargs):
          
          xmlstr = str(self)
          filename = args[0]
          with open(filename, 'w') as fil:
              fil.write(xmlstr)
  
          with open(self.get_latest_filename('junit.xml'), "w") as latest_report:
              latest_report.write(xmlstr)
docs: Implementation for generate method from ReportBase. Generates the xml and saves the
          report in Junit xml format.
  
          :param args: 1 argument, filename is used.
          :param kwargs: Not used
          :return: Nothing