Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on VB Scripting within the QTP forums, part of the Software Testing category; 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 ...
|
|||||||
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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 |
| The Following User Says Thank You to kaustubh.konkar For This Useful Post: | ||
|
|||
|
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.....
__________________
Regards, V.Umesh Krishnan QA Consultant |
| The Following 2 Users Say Thank You to bizzzzzare For This Useful Post: | ||
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| QTP Scripting | ashok1133 | QTP | 3 | 12-08-2008 02:38 AM |
| scripting | sudhakartrk | QTP | 3 | 01-04-2008 03:11 PM |
| scripting Database | Ajay Kanse | Database Design | 1 | 11-02-2007 07:46 AM |
| TSL Scripting | manjula_s23 | WinRunner | 3 | 08-24-2007 12:12 AM |
| QTP Scripting | satishraja4u | QTP | 6 | 07-31-2007 04:26 AM |