GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 430 of 674    Print  
What is the different between ACTION and LIBRARY functions

  
Total Answers and Comments: 1 Last Update: July 11, 2007     Asked by: G. Aruna Kumar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 11, 2007 19:24:47   #1  
adisgee Member Since: July 2007   Contribution: 42    

RE: What is the different between ACTION and LIBRARY f...
A Test Script can have multiple actions and each actions can access multiple functions. A function usually will be limited to processing a calculation or perfrom a small series of operations before returing some value for further manipulation. You would want to keep a function as small and compact as possible.

With an action it basically will perfrom the act of testing (as in executing a particular test script) by using functions for intermediate calculations / processing.

Library funtions usually will be placed within external files typicall a txt or a vbs file while actions will be an inherrent part of the test script.

Hope the answer helps
Thanks
Aditya.

 
Is this answer useful? Yes | No

 Related Questions

In Quick Test Pro 8.21. While Recording/writing the Script i want to know the " Selecting Tab Position Action Script".Eg: Window contains 4 tab positions i would like to select 2 tab position at that time how script will come. plz write the script and send me. 2. How can i generate and select Tree View in Programatically. Eg: Mycomputer Contains all drives information like as below. +My Computerwhen i press + Symbol My Computer will Expand that format like-- My Computer Drive

How to use automation object to load the library files in QTP. I tried to use this stmt" set App = createobject("Quicktest.Application")App.Test.Settings.Resources.Libraries.Add ("F:QTPrepository.vbs"),1 ".could u pls help how to add it by script itself? what is executefile concept? is it workaround to my question?

Latest Answer : Select the particular action and click on the position form where you want to run the script. Then Right Click and select "Run From Step". ...
Read Answers (3) | Asked by : umakarri

Latest Answer : Per Action Repository is specific to only one QTP script.While Shared Repository can be used in which ever Script desired. Just that whenever any modification is done in the Shared OR, it should again be saved otherwise it will not be effected ...
Read Answers (1) | Asked by : Deepti K

I am testing a Java executable application and and IE based application.I have a script that I would like to launch the Java executable, enter a record in the database, the switch over to IE and search the database. Currently I am having trouble: 1) The java EXE cannot be launched from the QTP command line. So my run settings are run on any open Java application. This is not preferable and right now DEV cannot figure out why QTP can launch other Java apps and not ours. So when I start the script

How to use global variables in QTP?also how to pass parameters between different actions?where to find info on functions?
Read Answers (2) | Asked by : Ritu

There are three types of actions in QTP1.Non-Reusable Actions2. Reusable Actions3. External ActionsI would like to know what is this external action all about and how do we use that.Explain me in detail about this External action.
Read Answers (3) | Asked by : G.V.K.Reddy

Hi,Lets say i generate QTP scripts and save the scripts in D:QTP1.Now on an other PC if i copy the scripts to say C:QTP2 folder i cannot see the reusable action nor can call any other action. Can some one explain me why this happens and a way in which i can make my scripts independent of location where it is stored.
Read Answers (5) | Asked by : Mahendra

How can insert a call to external action with its path as relative path? Now what is happening is when I insert a call to an external action, the QTP also includes the path of external action and I can't modify that. I can't give the path of this action as relative path in order to use it any other system! Is there any solution for this?
Read Answers (3) | Asked by : Lingaraj

When i run test with login(global action) and book many tickets (local sheet), with every iteration QTP appear an error that is an notice include button "Stop","Skip",....I don't know why?
View Question | Asked by : luckystar


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Introducing JSON

Introducing JSON In AJAX applications client server communication is usually packed in XML documents or in the JSON JavaScript Object Notation format Interestingly enough JSON s popularity increased together with the AJAX phenomenon although the AJAX acronym includes XML mosgoogle JSON is the format
 

Microsoft AJAX Library - Inheritance using Prototypes

Inheritance using Prototypes Once again prototyping can help us implement an OOP feature in a more elegant way than when using closures Prototype based inheritance makes use of the behavior of JavaScript prototypes When accessing a member of a function that member will be looked for in the function
 

Microsoft AJAX Library - Inheritance using Closures

Inheritance using Closures and Prototypes There are two significant techniques for implementing the OOP concept of inheritance with JavaScript code The first technique uses closures and the other technique makes use of a feature of the language named prototyping Early implementations of the Microsof
 

Microsoft AJAX Library - JavaScript Execution Context

JavaScript Execution Context In this section we ll take a peek under the hood of the JavaScript closures and the mechanisms that allow us to create classes objects and object members in JavaScript For most cases understanding these mechanisms isn t absolutely necessary for writing JavaScript code&am
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Associative Arrays

Thinking of Objects as Associative Arrays A key element in understanding JavaScript objects is understanding the notion of associative arrays which are nothing more than collections of key value pairs As a NET developer you have worked with associative arrays represented by classes such as NameValue
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape