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.

Answers were Sorted based on User's Feedback



In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed..

Answer / 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

In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed..

Answer / nag

Hi, from where ur picking the value for entering A/C no, If
you are picking into a variable u can check the same
variable with the GetROProperty of the object in the 3rd
page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

When using descriptive programming?

0 Answers  


What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


Could you please suggest a book to start with QTP and also a book for advanced concepts?

2 Answers  


What is quick test pro?

0 Answers  


What is the difference between functional spec. and Business requirement specification?

5 Answers  






Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn

2 Answers   Hewitt,


How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?

3 Answers  


Suppose there are 10 browsers opened on desktop. I want to close all browsers except one browser in QTP. Can any one give the code for this?

7 Answers   IBM,


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

0 Answers  


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

0 Answers   IBM, TCS,


can objects recogonised without repository?

10 Answers   AZTEC,


Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer

2 Answers   IBM,


Categories