Find version number of the scripting engine

Find version number of the scripting engine ‘***************** ‘ Desciption ‘ Find the version number of the scripting engine ‘***************** Dim s, app Set app = CreateObject(“QuickTest.Application”) s = “” ‘ Build string with necessary info. s = ScriptEngine & ” Version “ s = s & ScriptEngineMajorVersion & “.” s = s & ScriptEngineMinorVersion [...]

Configures QuickTest views and panes

Configures QuickTest views and panes for running QuickTest in visible mode ‘*********************************************************************** ‘Description: ‘ ‘This configures QuickTest views and panes for running QuickTest in visible mode. ‘*********************************************************************** Dim qtApp, abc ‘ Declare the Application ( QTP ) object variable Set qtApp = CreateObject(“QuickTest.Application”) ‘ Create the Application object qtApp.Launch ‘ Start QuickTest qtApp.ActivateView “KeywordView” ‘ [...]

Count AddIns without opening QTP

Count AddIns without opening QTP ‘************************************************************ ‘Description ‘Counting the number of AddIns without opening the QTP ‘************************************************************ Step 1) Save the code wirtten below in notepad and save with .vbs extension Step2) Click or Schedule this .vbs file & find the QTP addins count. Dim app Set app = CreateObject(“QuickTest.Application”) MsgBox app.AddIns.Count ‘ Count the [...]

How to use func in QTP ??

Ans: Step(1) Copy the give .dll or .vbs file in the library folder that is in ur C:\CAS\Library (as given Folder structure ) Step(2) open QTP Step(3) Test >> Settings >> Resource >> Associated library file( Click on the + tab ) >> Browse the .dll / .vbs file , in side(C:\CAS\Library)

Run specific Test from QTP at specific time

Run test from QTP at specified time Ans: The steps are as follow: Step 1) Open a notepad. Step 2) Write the Code as follow, Set vin = CreateObject(“QuickTest.Application”) vin.Launch vin.Visible = True vin.WindowState = “Maximized” ‘Maximize QTP window vin.ActivateView “ExpertView” ‘Display Expert View vin.open “C:\Test1″, False ‘Opens test in editable mode vin.Test1.Run ‘Runs the [...]

How to use or call function in QTP

How to use Function in QTP ? Ans: Please note down the Steps to Use the function insde the QTP as follows, Note: Copy the Function in the notepad & save it with DLL or VBS extension Step(1) Copy that .dll or .vbs file anywhere in ur system like C:\myfolder Step(2) open QTP Step(3) Test [...]

Follow

Get every new post delivered to your Inbox.