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


Please Help Members By Posting Answers For Below Questions

Through array we can execute the testcase how ? give me example

1395


How you calling actions in qtp?

624


Sql questions to find second max salary and how to use joins

959


How do we analyze the checkpoint results?

575


When ‘option explicit’ keyword is used in qtp?

744






What are the data types in qtp?

664


What are the views available in quicktest professional?

557


Mention the test steps of qtp.

536


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

1827


What is the difference between rational rose and QTP?

1776


what is defenetion of kiran can u tell me plz CVS, SVN

1568


How can we conduct U-I Testing by using QTP??????

1422


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

1736


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?

587


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1503