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
Explain hybrid framework with advantages and disadvantages?
Discuss quicktest professional environment?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
Are Shared ORs read-only?
What do you mean by checkpoints in qtp?
What is keyword driven framework?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
What is accessibility check point?
Can you brief the hurdles you faced during Automation testing?
Mention what are the different types of recording modes in qtp? Which will be used when?
How does qtp identify gui object?
What is smart identification in QTP?
what is output value in QTP and how it can be used in automation testing
Hi Samrat, Thank u very much, what u said it is right.
When should I use smart identification?