ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How to pass parameters into an action.Please explain me 
with examples
 Question Submitted By :: Rayudu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to pass parameters into an action.Please explain me with examples
Answer
# 1
hi u can pass parameters into different actions by 
navigating to file in qtp there go to settings tab & click 
on parameters tab where you can specify the name ,type & 
the default value of it..Apply it & use it in your 
script..If you have not understood write to me
 
Is This Answer Correct ?    3 Yes 0 No
Akshar
 
  Re: How to pass parameters into an action.Please explain me with examples
Answer
# 2
I know that what u have explained.But how to use those 
parameteres in a an action.I want the script that how to 
use input action parameters.That is why I already asked 
that I want explanation with examples.
suppose I want to pass 2 values for a,b and would like to 
get the result in "c". see below code 

c=int(a)+int(b)

How should I pass parameters here and how should i write 
the code for passing parameters.How should i call that 
action. give me the detailed exp..
 
Is This Answer Correct ?    0 Yes 0 No
Rayudu
 
 
 
  Re: How to pass parameters into an action.Please explain me with examples
Answer
# 3
Hi Rayudu,

i will take the example that you have taken.
C = a + b
Now you want a and b to be parameterized.
So for that you have to pass the value of a and b using the 
datatable in QTP.
Select 2 columns in datatable and name them Value_1 and 
Value_2.You can choose either Global datatable or action 
datatable.Suppose you choose Global datatable.
Now put a value say 3 under column Value_1 and put another 
value say 5 under column Value_2.
Now this is how you gonna write it:

c= Datatable.value("Value_1",dtglobalsheet) + 
Datatable.value("Value_2",dtglobalsheet)

Now is this solve your problem? or if you have any further 
queries then just reply...
 
Is This Answer Correct ?    0 Yes 0 No
Deepakm82
 
  Re: How to pass parameters into an action.Please explain me with examples
Answer
# 4
Thanks for your reply Deepak! But my question is not that.
By using Action Parameters.EX: I would like to enter the 
values in Parameter tab of the Action properties.



Name   type     Defaultvalue      description
A      Number    25               First value
B      Number    30               Second value

My question is How should validate these values in a script
c=int(a)+int(b)
I am calling this action in another action like
RunAction Action1,Oneiteration
But it did not resulted 55.
I know how to pass parameters through datatable.
Please answer it if u know
 
Is This Answer Correct ?    0 Yes 1 No
Rayudu
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
I have an application running in Linux server. I am reaching the application through emulators like telnet. My operating system at the client side is Windows XP. Using emulator I am connecting the Linux server and working on the application. Can I automate the testing of the software running in Linux server using QTP. In short, does QTP support the applications running in Linux servers.  1
1)what is the Exact Meaning of Environment Variables? 2)what is Compile Module in QTP? what exactly it contains Functions or Actions?  3
How to load the object repository at run time? TCS7
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?  1
what is purpose of automation?  2
DIFFERENT RUN MODE IN QTP..1-VERIFY MODE 2-UPDATE MODE 3- dEBUG MODE. My question is in whic sitution we use these modes Explain me with example  1
can any body help me out by providing links/material for descriptive programming in QTP otherwise can you post decriptive programing based interview Questetion&ans. plz help me out . i need it. ADP1
How many tables r created during the recording in QTP?  1
How can we parameterize our test, values in flat file. Ex:- Values in notepad, with that values i want to parameterize the test. Ordain-Solutions2
How many actions we can create with in a test?  4
What is output value in QTP? Why do we use the output value in QTP?How many types of output values are there in QTP? what are their respective usage in QTP? IBM7
how can i prepare for QTP(8.2) to face interview ? give over view details?  45
I am struggling to understand QTP more from descriptive programming point of view. Is it easy to learn good QTP in South india by good faculty than north india? I found a great lack of institution in here. can you suggest me better instituion. I am holding two years of experience in same company, is there possibility in south india for me?  1
How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' in command window, how QTP get the result?)  2
how we can do web browser using parametarisation in QTP ? Kanbay2
what is virtual object?  2
How to execute the test cases using QTP. i.e What is the use of QTP while execution  2
QTP9.1 does not support to text checkpoint in Windows application? Is this correct? If this is correct, what is alternative for Text checkpoint?  1
what's the difference in between function and sub and give some code as well Patni1
what is input pramater out output pramater ?i want the decrepation..?how to use in QTP? Infinite-Computer-Solutions2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com