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

What are the challenges you faced during you entire life automation ?

1197


Can you list some technologies that support qtp?

739


What is a checkpoint? How many check points are there in qtp?

740


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

830


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1894


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

1595


How did you use regular expressions in QTP and also in WR?

2372


What are the Disadvantages of shared object repository?

783


What is the basic concept of quicktest professional?

750


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1474


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

759


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1647


what could go wrong with test automation?

1739


If the objects hierarchy is changing from build to build, then how you will handle that condition?

790


what is description object?

1793