07-19-2008, 01:25 AM
I have an web based application that provides a template form (whole page) of all the data entered in the previous screens.
The template is displayed in the form of "HTML Document". I found it by right clicking on the template and properties. The type was "HTML document".
Winrunner was unable to work on this section of the application.
All our scripts are in "Descriptive Programming" by coding them. We are not using any inbuilt checkpoints of QTP. We are implementing Dynamic CPs.
Now i need to verify whether the expected data is displayed in my template. When the template section is recognized with QTP, each and every line in the HTML doc is displayed as "Webelement".
This makes things more difficult.
Say eg:
At the top of the template i have the sentence as:
"The value you have entered are"
Then in the later portion of the template, i have the same text "The value you have entered are" shown.
If i need to verify the presence of text at both the places, i need to verify whether these webelements "exists" in template.
Since i'm not using Obj Repo for this webelement, i suspect Desc programming will always pass even if the above text is present only in one section of template.
I need to verify the data dynamically.
How can i work on this section.
Any help on this is much appreciated.
Thanks,
Swami
The template is displayed in the form of "HTML Document". I found it by right clicking on the template and properties. The type was "HTML document".
Winrunner was unable to work on this section of the application.
All our scripts are in "Descriptive Programming" by coding them. We are not using any inbuilt checkpoints of QTP. We are implementing Dynamic CPs.
Now i need to verify whether the expected data is displayed in my template. When the template section is recognized with QTP, each and every line in the HTML doc is displayed as "Webelement".
This makes things more difficult.
Say eg:
At the top of the template i have the sentence as:
"The value you have entered are"
Then in the later portion of the template, i have the same text "The value you have entered are" shown.
If i need to verify the presence of text at both the places, i need to verify whether these webelements "exists" in template.
Since i'm not using Obj Repo for this webelement, i suspect Desc programming will always pass even if the above text is present only in one section of template.
I need to verify the data dynamically.
How can i work on this section.
Any help on this is much appreciated.
Thanks,
Swami