def __process_criteria(self, classname, fc_obj, report_urls):
        if fc_obj.config['label']:
            data = (fc_obj.config['subject'], fc_obj.config['label'],
                    fc_obj.config['condition'], fc_obj.config['threshold'])
            tpl = "%s of %s%s%s"
        else:
            data = (fc_obj.config['subject'], fc_obj.config['condition'],
                    fc_obj.config['threshold'])
            tpl = "%s%s%s"
        if fc_obj.config['timeframe']:
            tpl += " for %s"
            data += (fc_obj.config['timeframe'],)
        disp_name = data % tpl
        testcase_etree = etree.Element("testcase", classname=classname, name=disp_name)
        if report_urls:
            system_out_etree = etree.SubElement(testcase_etree, "system-out")
            system_out_etree.text = "".join(report_urls)
        if fc_obj.is_triggered and fc_obj.fail:
            etree.SubElement(testcase_etree, "error", type="pass/fail criteria triggered", message="")
        return testcase_etree
dataset/ETHPy150Open Blazemeter/taurus/bzt/modules/reporting.py/JUnitXMLReporter.__process_criteria/swapped operands of `%`