i have a window , initial its name is "NEW CUSTOMER"
i have to enter the details of customer in the test object
fields and after saving the window name is automatically
changing with the customer name .
so how to identify that window after saving.
(i am using descriptive programming.)

Answers were Sorted based on User's Feedback



i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of custo..

Answer / mahesh_sqa

When u Entered the Details of the customer in New Customer
Window when u press submit button\else to procced then it
can opens the window as customer names window right
means u can retrive the name of customer
var=browser(****).page(***).winedit("cuname").GetRoProperty
("text")

now compare the retrived value with window name.

Is This Answer Correct ?    1 Yes 0 No

i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of custo..

Answer / tvs ramakrishna chowdary

hello siva iam not telling that ur answer is wrong..ur
answer is correct...but the question is by using
discriptive prgming..in descriptive prg not at all objects
are available in the OR...so how can we change the constant
value in the respectve property value....

Is This Answer Correct ?    0 Yes 0 No

i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of custo..

Answer / tvs ramakrishna chowdary

hello below i am giving code as per my knowledge..correct
me if i wrong...
---------------------------------------------------------
browser(xxxx).page("title:=".*customer.*).xxxxxx

above i used .* regular expression

in both ways customer is common only before and after
customer is changing regularly..

Is This Answer Correct ?    0 Yes 0 No

i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of custo..

Answer / guest

First u take the window name into variable. in the script u
replace the property value with the variable. we can do
this in DP. a variable name (i.e. the property value, which
is changing dynamically, will be in the variable) can be
given as the property value of a property. ex :

browser(xxxx).page("title:=" &variablename).xxxxxx

now it takes what ever the window name/page name is.
i have not written the script properly. i said a way how we
can do this. so analize this n get better solution. i m not
100% clear with this solution ,but in this way we can do
this. correct me if i m wrong.

Is This Answer Correct ?    0 Yes 1 No

i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of custo..

Answer / siva

The Answer given by "Guest" is acceptable...
The scenario is- the window name is dynamically getting
changed, solution could be
you can use "Regular expression" method....
First you open the Repository and check the window property
as "Type" and for that "type" property value-chenge the
constant to a regular expression. I think you know the
process......if not follow this, at the bottom of the
repository window
you find two edit boxes namely...CONSTANT and PARAMETER.
right beside at the CONSTANT Edit box you find a small Icon
kind of thing and click that, set the regular expression
check box on (tick on that).

if it doesn't work...
then go to the ADD/REMMOVE OBJECTS, where you can look for
a property called "href" then give the property value as
the window URL (http:/********) then try..
if this also doesn't work...
you can go for another method to make the QTP to identify
the destination page rather than the window..
I can not type all that
u just try these two methods they don't-then mail me at
sivaprasadnunna79@yahoo.co.in I will help you
all the best.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How can we use the "CreateObject ("Scripting.FileSystemObject")" in QTP and what is the definition and purpose of it?

2 Answers  


How many scripts do you write per day. What is the average number of scripts you have written in your recent project

1 Answers   CenturyLink, Optum, Value Labs,


I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??

1 Answers  


What is smart identification?

2 Answers   Ordain Solutions,


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

0 Answers   Bank Of America,






Why divide a test into three action calls?

1 Answers  


Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance

1 Answers  


c language is thre but what is the purpose of c++, java is there but what is the purpose of Advanced java ....why these are all versions are coming...whta is the problem?

2 Answers   Accenture,


I am struggling to understand QTP more from descriptive programming point of view. Is it easy to learn good QTP in South india by good faculty than north india? I found a great lack of institution in here. can you suggest me better instituion. I am holding two years of experience in same company, is there possibility in south india for me?

1 Answers  


Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"

3 Answers  


What is Object Spy?

8 Answers  


types of output value in details.

4 Answers  


Categories