Geeks Talk

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.

VB Scripting

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 ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-01-2008
Contributing Member
 
Join Date: Oct 2007
Location: India
Posts: 36
Thanks: 4
Thanked 3 Times in 3 Posts
ramyamca1984 is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-01-2008
Junior Member
 
Join Date: Dec 2007
Location: Mumbai
Posts: 23
Thanks: 1
Thanked 3 Times in 3 Posts
kaustubh.konkar is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to kaustubh.konkar For This Useful Post:
  #3 (permalink)  
Old 02-01-2008
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 354
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
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
Reply With Quote
The Following 2 Users Say Thank You to bizzzzzare For This Useful Post:
  #4 (permalink)  
Old 02-01-2008
Contributing Member
 
Join Date: Oct 2007
Location: India
Posts: 36
Thanks: 4
Thanked 3 Times in 3 Posts
ramyamca1984 is on a distinguished road
Re: VB Scripting

Thanks u very much Mr.Umesh
Reply With Quote
  #5 (permalink)  
Old 08-07-2008
Junior Member
 
Join Date: Jul 2008
Location: Pune
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
pavankumar.vanam is on a distinguished road
Re: VB Scripting

I want Count the edit boxes in login window?


Plz write any one script
Reply With Quote
  #6 (permalink)  
Old 08-07-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
Arrow 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
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 10:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved