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.
Answer Posted / 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 |
Post New Answer View All Answers
Through array we can execute the testcase how ? give me example
How you calling actions in qtp?
Sql questions to find second max salary and how to use joins
How do we analyze the checkpoint results?
When ‘option explicit’ keyword is used in qtp?
What are the data types in qtp?
What are the views available in quicktest professional?
Mention the test steps of qtp.
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
What is the difference between rational rose and QTP?
what is defenetion of kiran can u tell me plz CVS, SVN
How can we conduct U-I Testing by using QTP??????
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?