Results 1 to 6 of 6

Thread: VB Scripting

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    27

    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


  2. #2
    Junior Member
    Join Date
    Dec 2007
    Answers
    22

    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


  3. #3
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

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


  4. #4
    Junior Member
    Join Date
    Oct 2007
    Answers
    27

    Re: VB Scripting

    Thanks u very much Mr.Umesh


  5. #5

    Re: VB Scripting

    I want Count the edit boxes in login window?


    Plz write any one script


  6. #6
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact