1. Pls can anyone give me the descriptive programing
script to find the number of edit boxes in a login window
in flights reservation (windows application only not web).
2. Using descriptive programing, how do you handle
changing URLs. Pls anyone, very urgent

Answers were Sorted based on User's Feedback



1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a..

Answer / hemakumar.m

1)Answer

Dim oEditDesc
Set oEditDesc=Description.Create()
oEditDesc("micclass").value="WinEdit"
a=Dialog("text:=Login").Childobject(oEditDesc).Count
Msgbox a

Is This Answer Correct ?    3 Yes 0 No

1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a..

Answer / sanu

Try this...

Set obj_edit = description.Create
obj_edit("nativeclass").value = "Edit"
Set EditDesc = dialog("Login").ChildObjects(obj_edit)

msgbox "Number of Edit Fields : "& EditDesc.count

For i = 0 to EditDesc.count - 1
EditDesc1 = (EditDesc(i).getROProperty("Attached Text"))
msgbox EditDesc1

Next

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.

3 Answers   Virtusa,


In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...

4 Answers   Indium Software,


How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ENGINEER " Please send me the answer

3 Answers  


what type of scripts are asked in qtp?

2 Answers  


How to resume the second iteration in the QTP,, if the error has intrupted the the second iteration. When i use run from step it starting from the first iteration again.

1 Answers  






Can we use same virtual objects in many number of tests?

1 Answers   TCS,


Is there any vbscript in QTP for Data Driven Test instead of using the option provided by QTP?

2 Answers  


Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?

1 Answers  


Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results.

1 Answers   Cap Gemini,


What exactly a frame Work means?what are the different type of frameworks done in QTP?why the caption for QTP given as advanced keyword driven?

4 Answers   Satyam,


hi,which is the best book to refer QTP 9.2 and Faq's.

2 Answers  


What is the default object synchronization timeout in qtp?

0 Answers  


Categories