-
Junior Member
VB Scripting
Hi to all,
I'm learning QTP. Pls let know VB scripting and descriptive programming in QTP are same or different.
If yes or no let me know where do i get all information regarding Vb
scripting and QTP descriptive programming..........
Thanks in Advance,
R.Ramya
-
Junior Member
Re: VB Scripting
VB scripting and Descriptive programming are two different sides of coin
Vb script is language used by QTP and we can do wrapper or substitute code using descriptive program over code written in QTP
e.g. If you would like to bypass object repository to do code. So, you can create your own description for repspective object. So, whenever script will playback. it will take mentioned object in the code
Below is the link for VB script
http://www.oreilly.com/catalog/vbscr...erpt/ch01.html
-
Expert Member
Re: VB Scripting
Hi Ramya,
VBScript is the language on which QTP is based. In sense QTP uses VBScripting coding pattern.
When we mention Descriptive Programming, it basically implies working with Objects directly and not using Object Repository. It is generally used when Objects are dynamic with regards to recognition properties. Sometimes was also use DP in order to increase the size of the shared Repository as this could affect performance sometimes.
We use Dp using 2 methods - Common one of creating a Description Object and working with it, Secondly passing Object Description as String Arguments.
Set ObjDesc = Description.Create
Now each Desc object would have 3 main properties associated with it - Name, Value and Regular Expression if needed.
obj_Desc(“html tag”).value= “INPUT”
obj_Desc(“name”).value= “txt_Name”
would indicate working with a Textbox by the identification Name.
Vbscripting is the base for QTP syntax and as such you cannot differentiate it. You could create User-defined function in .vbs files and include them as Library files in your tests.
Browse through the net or the answers in Geek Interview and I am sure you shall find enough material to read.
Cheers.....
-
Junior Member
Re: VB Scripting
Thanks u very much Mr.Umesh
-
Junior Member
Re: VB Scripting
I want Count the edit boxes in login window?
Plz write any one script
-
Expert Member
Re: VB Scripting
Set Ed_Box = Description.Create()
Ed_Box("micclass").value = "WebEdit"
Set Ed_Box_Collection = Browser(b).Page(p).ChildObjects(Ed_Box)
MsgBox Collection .Count
Regards,
Nawab
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules