What is diff. between ordinal identifier INDEX and Location?
Answers were Sorted based on User's Feedback
Answer / swetha
when ordinal identifier is selected as location then qtp
will be generating numbers like 1,2,3... depending on the
sequence of the object present in the application where as
when index is selected it will be generating numbers
depending on the index of the program related to objects
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vinay
in index u wil get the no based on the location of the
object in the source code or memory. mainly used for web
based app. in ordinal identifier the no is generated based
on the location of the object with respect to the left top
end of the screen. mainly for web based application.
| Is This Answer Correct ? | 2 Yes | 1 No |
what is the smart identification techniqu?what r the different mechanisums used in it?
How to Compare two database tables by using QTP?Please give me code details.
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
what is the Descriptive Progarmming? how it is help to testers in QTP?
Hi Friends, How to trap an error message on Web page through QTP. Example:- When I put wrong user id or Password on a web page, I get the error message. So when I add the error object in Reposatory, every time it shows as Login Failed Object exist, eventhough using corret login details. And if I do the same without adding the object it shows as object not found. This might be because while recording QTP takes every new page as _1 _2 _3 and so on. as below. Browser("XXXXX").Page("XXXXX_1"). >>login Browser("XXXXX").Page("XXXXX_2"). >>Inbox Browser("XXXXX").Page("XXXXX_3"). >>Sent Items I used below code. Browser("XXXXX").Page("XXXXX").WebEdit("firstname").Set strFN Browser("XXXXX").Page("XXXXX").WebEdit("lastname").Set strLN Browser("XXXXX").Page("XXXXX").WebEdit("userid").Set strUserID Browser("XXXXX").Page("XXXXX").WebEdit("password").Set strPass Browser("XXXXX").Page("XXXXX").WebButton("Login >").Click If Browser("XXXXX").Page("XXXXX_2").Image ("msg_icon_error").Exist 5 Then Reporter.ReportEvent micFail, "XXXXX", "Login Failed!" ExitRun (It shows login failed ever after login is passed. Else Reporter.ReportEvent micPass, "XXXXX", "Login Successful!" End If Please find out a way for me here, and provide me with the correct code. Thanks in Advance.
how to test background color and dynamic images during runtime
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
How many tabs are available in debug viewer pane?
How to retrieve value (data) from notepad using QTP ?
Explain the parameter in qtp?
How to Import the data from MS-Access in QTP?
Which statement will use for close an action in QTP?