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 |
When using descriptive programming?
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
Could you please suggest a book to start with QTP and also a book for advanced concepts?
What is quick test pro?
What is the difference between functional spec. and Business requirement specification?
Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn
How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
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?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
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
can objects recogonised without repository?
Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer