GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 588 of 647    Print  
Call vbscript Function in QTP
How to call a function created by using vbscript in QTP


  
Total Answers and Comments: 1 Last Update: January 08, 2008     Asked by: sriram_tvs 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 08, 2008 08:26:59   #1  
Neeraj Chauhan Member Since: January 2008   Contribution: 3    

RE: Call vbscript Function in QTP
Hi
           Can you specify wat you wanna to ask, plz

According to me

1: There is a framwork where you keep your all files (scripting) After defining functions.
 
2: Go to File-->Settings---> there will be (+) sign and browse (there give te file path)

3: you can check you are on the way or not by clicking on giving two options just blow, afte click on 2nd option you will find a message (valid or not)

4: and press "ok"

5: go to your QTP and write function name to which you are going to call remember function shhould be in that file you have set path for which?

6: as you will write function name and give a space this will ask you fr arguments.

 
Is this answer useful? Yes | No

 Related Questions

More details on Question: I was trying to call the QTP Scripts from Load Runner Controller Scenario. There, I only see options for Vuser Scripts, GUI Scripts, Astra Tests and All Files(*.*) options in 
Latest Answer : there is a spcial patch from mercury should be purchased for which the qtp 8.2 scripts will be compatible with load runner ...
Read Answers (4) | Asked by : Raj

In the mortgage business certain activity must take place within a specific number of business days from the loan origination date. The purpose of this assignment is to develop a function that will calculate the business date ‘x’ number of days from a specific start date. For example: 10 Business days from August 25th, 2003 is September 8th, 2003.This function is to have a two input parameters, consisting of the start date in the format mm/dd/yyyy and the number of days to advance.
View Question | Asked by : lakshmi12a

What is the function used while writing reusable actions scripts? and on what basis you will select reusable actions?
Read Answers (4) | Asked by : subhash

In QTP, How can I call different users to logon to a web application under test, one after the other? (In a while loop)I will appreciate your help.Thanks,

Write a VB script function to set flight date which should be 4 days ahead from current date.
Read Answers (1) | Asked by : Rakshita

There are two actions in Test Script.Action1 and Action2. Action1 is Reusable. In Action2 we call Action1.How to Pass value from Action2 to Action1 and use it in Action1.PLEASE ANY ONE CAN HELP.
Read Answers (3) | Asked by : Ashok

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

Hi Freinds,How can i use the array values which are defined in Test.Action1 in another Test.Action2?Is there any function?I can pass the values of variables where as iam not able to pass array which consists of set of values?Please can anyone give the solution fo it .Its very urgent.
Read Answers (2) | Asked by : vasavi

I have a formula like ((X >> 8)*25600)+ ((X & 0x00FF)*100)!I know that it is not possible to use EVAL function to evaluate this formula because of the syntax. Can anybody suggest me if there are any simple ways for evaluating the formulas like above from the script??? I am not interested in using Select Case.....
View Question | Asked by : Lingaraj


 Sponsored Links

 
Related Articles

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value  and  passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

What is DECODE function used for?

DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf("%d",printf("%d %d %d", a,a,a)); } In this above program the inner printf i
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What is the default return value of a function?

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.   When a programmer wants other than integer values to be returned from function then it is essential that the pro
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape