In 1st screen,if v enter a/c no. in one field, the
information of the subscriber will be displayed. The
details should be displayed only in screen 3(NOTE:details
should not display in screen 2).How can v do using QTP.
Answer Posted / nanda
yeah u can test it...
first to get value value of account number field...
get_text = browser("XXXX").page("XXXX").WebEdit("Account
number").getROProperty("Text")
(I just written for capturing data, write remaining script
for complete the process in first page)
coming to second scenario..the get-text should not be
displayed in page.
check_text =
browser("XXXX").page("XXXX1").getROProperty("innertext")
search_text = instr(check_text,get_text)
if search_text = 0 then
msgbox "text is not Found"
else
msgbox "Text is not found in second page"
browser("XXXX").page(XXXX1").WebLink("Next").click
'***the above line is to open for 3rd page, i given sample.
browser("XXXX").page("XXXX2").sync
n = browser("XXXX").page("XXXX2").getRoproperty("innerText")
g = instr(n,get_text)
if g = 0 then
msgbox "text is not found in 3 rd page"
else
msgbox "text is found in 3rd page"
end if
If any queries...
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
To which environments does quicktest professional (qtp) supports?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
Where we can use the analog mode and where we can use the low – level mode?
Can we run multiple QTP scripts one after the other without manual intervention? How?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
what is description object?
How to export quicktest professional (qtp) results to an .xls file?
Explain the concept of object repository and how qtp recognises objects?
How to analyzing test results using quicktest professional?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
How to create scenario selector
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Explain types of descriptive programming?
Explain the difference between call to action and copy action?