What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?
Dictionary object is similar to array to store variable value with key. To share data in different actions in a test, we can use dictionary object. In DO, we are not restricted to use keys as numeric similar to array.
Fetch all items:
Set obj=createobject("scripting.dictionary")
obj.Add "company","india"
obj.Add "company2","USA"
For each i in obj
msgbox obj.item(i)
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
can u expect, major bugs in NET BANKING Project? Modules Transaction Module, Customer Relation Module.
Tell me the situations where we will use Data Driven?
If created one virtual object? Next time I changed the window position will it work?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What is the use of ordinal identifier in qtp?
what is reusable action and how the same can be implemented (process)?
How do function returns a value?How can we pass one function value to other function as input
How to integrate the qualitycenter with qtp
In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click
How the exception handling can be done using quicktest professional (qtp)?
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?