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


Please Help Members By Posting Answers For Below Questions

Explain hybrid framework with advantages and disadvantages?

546


Discuss quicktest professional environment?

592


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1391


Are Shared ORs read-only?

635


What do you mean by checkpoints in qtp?

563






What is keyword driven framework?

622


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4148


What is accessibility check point?

663


Can you brief the hurdles you faced during Automation testing?

580


Mention what are the different types of recording modes in qtp? Which will be used when?

564


How does qtp identify gui object?

588


What is smart identification in QTP?

634


what is output value in QTP and how it can be used in automation testing

1440


Hi Samrat, Thank u very much, what u said it is right.

1349


When should I use smart identification?

608