SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    FYI- QTP scripts can be developed in various langu

    Hi All, I saw the basic question from many QTP users "How many languages does QTP supports?"

    Here is answer:

    You can write your QuickTest automation scripts in any language and development environment that supports automation. For example, you can use: VBScript, JavaScript, Visual Basic, Visual C++, or Visual Studio.NET.

    For more details

    Choosing a Language and Development Environment for
    Designing and Running Automation Scripts
    You can choose from a number of object-oriented programming languages for your automation scripts. For each language, there are a number of development environments available for designing and running your automation scripts.

    Writing Your Automation Script
    You can write your QuickTest automation scripts in any language and development environment that supports automation. For example, you can use: VBScript, JavaScript, Visual Basic, Visual C++, or Visual Studio.NET.

    Some development environments support referencing a type library. A type library is a binary file containing the description of the objects, interfaces, and other definitions of an object model.

    If you choose a development environment that supports referencing a type library, you can take advantage of features like Microsoft IntelliSense, automatic statement completion, and status bar help tips while writing your script. The QuickTest automation object model supplies a type library file named QTObjectModel.dll. This file is stored in <QuickTest installation folder>\bin.

    If you choose an environment that supports it, be sure to reference the QuickTest type library before you begin writing or running your automation script. For example, if you are working in Microsoft Visual Basic, choose Project > References to open the References dialog box for your project. Then select QuickTest Professional <Version> Object Library (where <Version> is the current installed version of the QuickTest automation type library).

    Running Your Automation Script
    There are several applications available for running automation scripts. You can also run automation scripts from the command line using Microsoft's Windows Script Host.

    For example, you could use the following command line to run your automation script:

    WScript.exe /E:VBSCRIPT myScript.vbs

    N.B. This information is also mentioned in QTP help chm file
    Thanks & Regards,

    B.Sandeep

  2. #2
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: FYI- QTP scripts can be developed in various l

    QTP documentation overloads the term "script".

    One meaning is a QTP Test script which runs in the context of the QTP runtime. This is normally authored in vbScript and that is the only language you can use if you also want to use QTP's debugger (which is really the MS vbScript debugger). Here is a thread that talks about the alternative of using JavaScript for this purpose:

    http://www.sqaforums.com/showflat.ph...;Number=374473

    The other use of the term "script", and the entry in online help that you refer to above, is to develop and execute "AOM scripts" that are run external to the QTP application, but which contain syntax that invokes QTP and one of its test scripts.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:47 AM.

Copyright BetaSoft Inc.