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 |
What are the different types of checkpoints?
Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
How will you set a unique four digit number in an edit field in QTP?
Tel me what was the automation testing process you followed?
What is object state in trigger events,in recovery scenario.write a script to handle this.
I am using Shared OR, and my collegues are also using Shared OR. How to merge Object Repositories?
when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.
What does mean by Scope of Automation?n How we defined it?
What are the features of quick test pro(qtp)?
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?