GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 98 of 674    Print  
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.

  
Total Answers and Comments: 2 Last Update: July 03, 2007     Asked by: vasavi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 18, 2006 09:08:45   #1  
kvvsatish Member Since: July 2006   Contribution: 7    

RE: hi Freinds,How can i use the array val...

k lets suppose we have two actions and the following is the code

Action1

Dim a

a array( 2 3 4 )
Environment.Value( p ) a

This statement maps the array to p which is a environment variable

Action2

var Environment( p )

msgbox var(0)

msgbox var(1)

We can access the array elements with var which is mapped with that array



 
Is this answer useful? Yes | No
July 03, 2007 09:18:23   #2  
Rajarshi Roy        

RE: hi Freinds,How can i use the array val...
When I am trying to do the above steps for passing an array output from action 1 to action 2 I am getting an error message saying "This array is fixed or temporarily locked: 'environment' "
Why is this happening can anybody tell.

 
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

Hello,I'm using QTP 8.2. and I want to test an Application which is designed with Oracle Forms 10 g.Before installing the Oracle Addin for QTP 8.2. I was able to open the Application with QTP and IExplorer 6.0.After Installing the Oracle Addin for QTP 8.2. I wasn't able to open the Application neither with QTP nor ÍExplorer.I only installed the Addin. I haven't installed any upgrade or patch!The following failure is shown in the JAVA Console after starting the application:java.lang.VerifyError:
Read Answers (5) | Asked by : SPortz

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?

I have 10 Edit Boxes in my application. i Named them as Text1, Text2, Text3...Text10. Now i want to set values in these Text Boxes using Loop Statement. Can i Usefor i=0 to 10 browser("b1").page("p1").WebEdit("Text" & i).set "value" &inext**********Is it acceptable WebEdit("Text"&i) ? I am getting error here.Any suggestions?
Read Answers (6) | Asked by : Nagelli Anil Kumar

What is Key Word driven Testing?What is the differance built in variables and User defined variables?
Read Answers (4) | Asked by : Ratnakar

I am testing a web application using QTP, it is not recognizing date picker, which is coded in Java Script. any solution?
Read Answers (3) | Asked by : Sooraj

Is there any reliable solution for the conversion of existing WinRunner scripts to QTP? if so please pass on your valuable suggestion Thanks a lot.
Read Answers (3) | Asked by : chaithanya

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.

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

Hi i am new to VB Scripting, I have a problem to declare an array in QTP. I am using a variable to declare an array which is come in runtime.Example:Dim variable1 - declare the variable using dimvariable1 = "senthil" - assign the value which is come in run timeDim variable1 (10) - declare the dynamic array using dimvariable1 (1) = "kumar" - store the value in arrayvariable1 (2) = "chandru" - store the value in array This is the way i tried, but


 Sponsored Links

 
Related Articles

ODP.NET - Working with Bind Variables together with OracleParameter

ODP NET Working with Bind Variables together with OracleParameter With the help of OracleParameter you can include bind variables within any SQL statement These bind variables are nothing but run time query parameters The values in the SQL statement are bound at run time when we use bind variables m
 

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
 

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
 

ERP: More than a Sales Solution

ERP More than a Sales Solution In this globalized world ERP is no longer just a competitive advantage It is an important requirement for every enterprise Many specialists argue that ERP is completely necessary to deal with businesses in every corner of the market This is because ERP does not work in
 

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
 

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