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
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 |
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 |
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?
how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript
How to load the object repository at run time?
Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance...
How do you start automating/ writing your QTP scripts ?
Discuss quicktest professional environment?
Wt is the difference between Business Component and scripted component?
what is difference between wait and synchronization point.
How qtp identifies objects?
What is the difference between link and hyperlink?
How to carry out bit map check points in QTP
What is the difference between functional spec. and Business requirement specification?