Geeks Talk

Prepare for your Next Interview




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


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-01-2008
ramyamca1984's Avatar
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: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
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
ramyamca1984's Avatar
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: 180
Thanks: 3
Thanked 13 Times in 13 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


Similar Threads

Thread Thread Starter Forum Replies Last Post
scripting sudhakartrk QTP 3 01-04-2008 03:11 PM
QTP Scripting ashok1133 QTP 2 12-17-2007 08:11 AM
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 07:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved