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
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 |
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 |
how will you handle the situation when object is not caputred during record?
how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
What is the difference between per-action and shared?
How do you change Logical Name of the object in test script?
what is defination of intergration testing?
Basically why we need testing?
what is the script to select 2 or more than 2 options from a listbox.
Waht is diff between SystemUtil.Run and invokeapplication
What is the Test Object model in QTP?
I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.
What is Descriptive Programing? In which cases, we will go for descriptive programing?