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

Whether it is possible to test the adobe's controls like zoom, resize, save etc using QTP...If yes, how u can do the same?

1 Answers  


how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript

1 Answers  


How to load the object repository at run time?

1 Answers  


Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


How do you start automating/ writing your QTP scripts ?

3 Answers   Keane India Ltd,






Discuss quicktest professional environment?

0 Answers  


Wt is the difference between Business Component and scripted component?

1 Answers   BSL,


what is difference between wait and synchronization point.

3 Answers   IBM, Intel,


How qtp identifies objects?

0 Answers  


What is the difference between link and hyperlink?

1 Answers  


How to carry out bit map check points in QTP

0 Answers   kenexa,


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

5 Answers  


Categories