I have a very dynamic application to automate using UFT. The labels on the application screen change based on the input provided by the user. I have an excel where I have set the field value for all possible fields present in the application. The challenge is I want my UFT script to pick only those field values for which it finds the field name on screen. Each time I run the script, based on the selection whatever fields apppear on the screen, I want it to pick only those corresponding values from the excel sheet and ignore the other values in that excel sheet.
Eg
Excel has the following vales
Name: Nancy Grade: 8 Hobby: Writing Friend: Veronica BFF: Karen
But in the application on screen only the following labels appear
Name: Hobby: BFF:
I want the UFT script to compare the field label on screen with that in excel and pick those values from excel (in this case Name, Hobby, BFF) and ignore the other fields (Grade and Friend) .
Is this possible?
Aucun commentaire:
Enregistrer un commentaire