|
331. How Will You Declare A Variable In QTP?
Date Posted: 06/27/2012
Ans: We can declare a variable in QTP by suing DIM keyword and we can assign value to the variable using the SET keyword.
DIM temp ‘will declare temp variables
Set temp=20 ‘will assign a value 20 to temp variable.
|
|
|
332. Can We Record An Application That Is Running On A Remote Machine Using QTP?
Date Posted: 06/27/2012
Ans: yes. We can record an application provided you are accessing application through the local browser not via remoter like citrix. If you are still unable to record, it is advisable to install QTP and application on same machine.
|
|
|
333. What Is Action Split And Purpose Of Using This In QTP?
Date Posted: 06/27/2012
Ans: Action split is to divide an existing action in to two parts. The purpose of this is to divide action based on their functionality to improve code re use.
|
|
|
334. Write Syntax For How To Call One Script From Another And Syntax To Call One Action In Another?
Date Posted: 06/27/2012
Ans: Run Action. Action Name, [Iteration Mode, Iteration Range, Parameters]
|
|
|
335. How Do We Create New Test Case Sets In TD?
Date Posted: 06/27/2012
Ans:
-
Login to TD
-
Click on test lab tab
-
Select desired folder under which we need to create the test set.
-
Click on “new Test set or Ctrl +N” icon to create test set.
|
|
|
336. How To Export QTP Results To A “...xls File”?
Date Posted: 06/27/2012
Ans: By default it creates XML file and displays the results.
|
|
|
337. How To Import Data Present In Data Table To An “.xls File” ?
Date Posted: 06/27/2012
Ans: Data Table. Export “…xls file name…”
|
|
|
338. What Is The Transaction?
Date Posted: 06/27/2012
Ans: We can measure how long it takes to run a section of your test defining transactions.
|
|
|
339. How Can We Perform Various Import And Export Operations Among Various Object Repositories In QTP?
Date Posted: 06/27/2012
Ans: We can import all of the objects contained in an actions local repository to a new shared object repository in the file system or to a quality centre project. This enables to make local objects to be accessible to other actions. We can export local object repository to a new shared object repository using object repository window.
|
|
|
340. Where Can I Find Web Page Cookies With QTP?
Date Posted: 06/27/2012
Ans: The cookies used by browser can be accessed through the browsers document object model. In the following example the cookie collection is returned from the browser.
Browser (“Flight reservation”). Page (“Flight reservation”). Object. Cookie
|
|