Index: tst_instructions_poc/test.py =================================================================== diff -u -r6bb43117bca2673c5de877f5b70b094da344418a -r84c1284ecff1f30169d50afb688be18934eb8506 --- tst_instructions_poc/test.py (.../test.py) (revision 6bb43117bca2673c5de877f5b70b094da344418a) +++ tst_instructions_poc/test.py (.../test.py) (revision 84c1284ecff1f30169d50afb688be18934eb8506) @@ -82,13 +82,14 @@ for line in contents: length =len(line) line_count += 1 - if line[0] =="[": + if "[" in line: title = line.split("^") title_strip = title[1][:-2] title_list.append(title_strip) continue - else: + elif "#" not in line: conf_data = line.split("=") + print(f"~~~{conf_data}~~~") if length > 2: count += 1 instructions.append(conf_data[0]) @@ -110,14 +111,15 @@ """ test.startSection("Verifying instruction and image from" +title+ "screen") for count in range(title_count_dict.get(title)): + test.log(f"********************{title_count_dict.get(title)}") instruction_text = instructions[index] image_text = image_names[index] instruction_text = instruction_text.replace('\\n','\n') index += 1 #to remove last empty character from the string if instruction_text[-1] == " ": instruction_text = instruction_text.rstrip() - test.log(str(text_obj_names)) + test.log(str(text_obj_names[0])) image_status = waitForObjectExists(get_img_obj(text_obj_names[0],"{}{}".format(config.IMAGE_LOCATION,image_text))).status test.compare(str(image_status),str(IMAGE_READY),image_text + " - image title is valid and loaded on UI.") test.compare(str(waitForObject(get_text_obj(text_obj_names[0],instruction_text)).text),instruction_text, "Instruction from" +title+ "screen is visible and matched")