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

I encountered with very strange problem in qtp while writing the script i written the code window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit this code was working fine for about 10-15 times i executed the script but after some time qtp started giving the error with the same code the error is "Object doesnt support this method or function window(...).window(..)" then i modified the code with only window"regexpwndtitle:=Open").Exit in place of window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit now again its working fine i cannot understand what thing is creating the problem if same code executed successfully in starting for about 10 times then why it is giving the error now can anyone give the reason .

0 Answers  


I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?

1 Answers   FAI,


what is the diffrence between script and Language ? (Chandana)

6 Answers   Cognizant, Wipro,


setroproperty and getroproperty difference

5 Answers   Ordain Solutions,


What is the quicktest professional (qtp) testing process?

0 Answers  


What is meant by Step Generator in Qtp How is it used? pls gimme in detail

7 Answers   AppLabs,


hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


Can i run the qtp, without OBJECT REPOSTIRY...

8 Answers  


WHAT IS THE FUNCTION (HOW TO DO) THE BATCH TESTING IN TEST DIRECTOR USING MANUAL TESTING PROCEDURE?

1 Answers   CTS,


What are the types of object repository in qtp?

0 Answers  


Where virtual objects stores results?

4 Answers  


what is the script for keyword driven framework in real time?plz its urgent

1 Answers   Accenture, CTS,


Categories