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

Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.

1 Answers   CTS,


what is the frame work your using in automation testing

2 Answers  


Explain the difference between smart identification and object identification withn clear example. please it is very urgent

2 Answers   Wipro,


four browser are open same application i want to enter 3browser how?

3 Answers   IBM,


can u give one scenario for for PopWindow Exception & write Code for that?

2 Answers   Cap Gemini,






what type of framework u r using in ur organization

0 Answers   Wipro,


could any help me please, how to work on visual foxpro application using UFT

0 Answers   NA,


How you automate testscripts one by one or moduelwise or all at once

2 Answers  


Why QTP is termed as a Record and Playback tool?

1 Answers  


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


from what stage you will start automation in your project

5 Answers   TCS,


What are the various automation frameworks available in qtp?

0 Answers  


Categories