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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   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 we can add actions in the test using QTP?
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How we can add actions in the test using QTP?
Answer
# 1
There are four actions call to action ,copy of action,call

to exesitng action,call to winner,split action just right

click on any one select it
 
Is This Answer Correct ?    0 Yes 0 No
Sreeprasad
 
  Re: How we can add actions in the test using QTP?
Answer
# 2
just right click on the test pane select action if you want 
give action name
 
Is This Answer Correct ?    0 Yes 0 No
Rafi
 
 
 
  Re: How we can add actions in the test using QTP?
Answer
# 3
Your question was how to add actions in the test.
Are you trying to add a new action in the test itself or are
you trying to call an existing action?

1.If you are trying to add a new action: Alt I then N
or go to insert and select new action. It will generated
Action 2

2.Again the same procedure go to insert and you can select
Call to Copy of an Action or an Existing Action
 
Is This Answer Correct ?    0 Yes 0 No
Sowmya
 
  Re: How we can add actions in the test using QTP?
Answer
# 4
Please refer to this VB Script. 

You can add new action programmatically also. 

' Dim qtApp, ActionContent, ActionName, ActionDescr, 
NewAction, SecondAction, script
Set qtApp = CreateObject("QuickTest.Application") ' Create 
the application object
qtApp.Launch
qtApp.Visible = True
qtApp.New

ActionContent = "Window(""Calculator"").WinButton
(""1"").Click" & vbCrLf & "Window(""Calculator"").WinButton
(""+"").Click" & vbCrLf & "Window(""Calculator"").WinButton
(""+"").Click" & vbCrLf & "Window(""Calculator"").WinButton
(""="").Click"
ActionDescr = "A new sample action for the test."
ActionName = "Action" + CStr(qtApp.Test.Actions.Count + 1)

'Add a new action at the begining of the test

Set NewAction = qtApp.Test.AddNewAction(ActionName, 
ActionDescr, ActionContent, False, qtAtBegining)



For Attributed like ActionContent, please read all text 
from any Text file in which you have already written some 
code. 


With this help you can generate new QTP Script pretty 
quickly.
 
Is This Answer Correct ?    0 Yes 0 No
Sandeep
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
can some one help me how to compare the values from one sheet to values in another sheet? suposse i have a feild called Temp in action1 and i also have temp in action2. i want to compare the values of those two actions sheets data table? how can i do it using descriptive programming?  1
Are u place all QTP Framework folders in VSS? TCS4
How do you data drive an external spreadsheet?  1
How to Display last item of a Combobox by using QTP?  9
How to handle recovery scenario for a application crash.write script for this. Polaris2
What are the types of Object Repositories in QTP? Ordain-Solutions1
There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me Livetek2
What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example  2
How to get all the objects count and objects names in webpage using QTP ?  3
How do you return a value from a function  1
I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?  1
Explain about invoking of application?  2
How do u override the meaning of a standard object in QTP?  1
what are the difference ways of parameterising?  1
how are environment variables used in real time projects (testing)?what answer should be given about this in interview.need real time explanation breifly?thnx in advance.  2
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions  2
What is action required by QTP if a popup message is coming in exsisting script and now it is not coming. The script is having code to deal with popup message now when we run the script now the popup i snot coming according to new build, instead of changing the code what we can do? Verizon6
I am using Shared OR, and my collegues are also using Shared OR. How to merge Object Repositories?  6
When we use Object Spy? can we write QTP script before built is came in testing? Impulse2
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?  1
 
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