I am adding below condition in while loop to compare two xml with limit to its repetition ${__javaScript(("${checkstatus}".indexOf("${check_satus_assertion}"