Thursday, June 12, 2008

QTP Q&A

1. The toolbar enables you to view the details of an individual action or the entire test flow is

Action toolbar

2. The key that is used to Start/End analog recording mode?

SHIFT+ALT+F3

3. To use a specific property to identify your object, but that property is not listed in the properties list. Then how do you identify that object?

Add the specific property to the list

4. The list of test objects and their properties and values are stored in the

Object Repository

5. To retrieve the current property value of the objects in your application during the run session

GetROProperty

6. Bitmap checkpoint is supported in VB environment

True

7. What is the shortcut key that is used for a Standard Checkpoint?

F12

8. To compares the values of the specified property during a run session with the values stored for the same test object property within the test

Checkpoint

9. You will use the recording mode for an object not recognized by QuickTest

Low-Level Recording Mode

10. The statement that calls the recorded analog file is

RunAnalog

11. An action can be called by other tests or actions is

Reusable Action

12. You can replace the page in your Active Screen tab

True

13. QuickTest adds a checkpoint statement in the Expert View as

Check Checkpoint

14. A Checkpoint checks that a text string is displayed within a defined area in a Windows application is

Text Area

15. In ActiveX environment an “Accessibility checkpoint” is supported?

No

16. Can we get the execution time for an action in a Test?

Yes

17. The command used to retrieve data from excel sheet is

Set ab = CreateObject("srcfilepath ") , Set ws = ab.getsheet(sheetid)

18. The method used to get data from HTML Table is

GetCellData (Row, Col)

19. The Command used to insert the transactions in test is

Services.StartTransaction "Name", Services.EndTransaction "Name"

20. A step in which one or more values are captured at a specific point in your test and stored for the duration of the run session is

Output Value

21. QuickTest can detects an application crash and activate a defined recovery scenario to continue the run session.

True

22. In Batch Test process, the test list are saved in file format as,

*.mtb

23. The command used to invoke other application from QTP,

· invoke Application

· SystemUtil.Run

24. Can we add external library files in QTP?

Yes

25. The method that explicitly activates the recovery scenario mechanism is,

recovery.activate

26. The method used for sending information to the test results.

Reporter.reportevent()

27. To terminate an application that is not responding we use,

SystemUtil.CloseProcessByName

28.The recovery mechanism does not handle triggers that occur in the last step of a test

True

29. We can add Test object methods, function calls into the Test using

Function generator

30. The method that adds to the test while implementing Synchronization is

WaitProperty

31. The mechanism used to identify objects during run session is

Smart identification

32. Post-recovery test run options specifies

how to continue the run session after QTP identify the event

33. The action that can be called multiple times by the test as well as by other tests is

Reusable action

34. QuickTest supports virtual object for analog or low-level recording.

False

35. The command used to connect with Database is

Createobject(“connectivity name”)

36. The method used to retrieve the folders is

FileSystemObject.Getfolder()

37. The method used to compare 2 XML files is:

compare(XMLfile1, XMLfile2)

38. Can we change name of checkpoint?

No

39. The QTP script files are stored in the extension of

*.mts

40. The method used to register the user-defined function with test object is

RegisterUserFunc()

41. The method used to open the specified URL in a browser is

navigate()

42. The 3 Parameter types available in data driver is

DataTable, Environment, Random number

43. The method added to the test while parameterizing is

Set DataTable(variable, dtGlobalSheet)

44. The length of the array can be get by the method

ubound(array)

45. The method used to get the count value of list box or combo box is

GetItemsCount

46. Can we parameterize the checkpoints properties?

Yes

47. In data base checkpoint we cannot set the expected value from the test?

False

48. The checkpoint used to check the alt attribute exists for all relevant objects (such as images) is

Accessibility checkpoint

49. The method used to continue the test execution after getting run-time error is

On Error Resume Next

QTP Interview Q and A


1.What is Quick test pro?

It’s Mercury interactive keyword driven testing tool


2.By using QTP what kind of applications we can test?

By using QTP we can test standard windows applications, Web objects, ActiveX controls, and Visual basic applications.


3.What is called as test?

Test is a collection of steps organized into one or more actions, which are used to verify that your application performs as expected


4.What is the meaning of business component?

It’s a collection of steps representing a single task in your application. Business components are combined into specific scenario to build business process tests in Mercury Quality center with Business process testing


5.How the test will be created in QTP?

As we navigate through our application, QTP records each step we perform and generates a test or component that graphically displays theses steps in a table-based keyword view.


6.What are all the main tasks, which will be accomplished by the QTP after creating a test?

After we have finished recording, we can instruct QTP to check the properties of specific objects in our application by means of enhancement features available in QTP. When we perform a run session, QTP performs each step in our test or component. After the run session ends, we can view a report detailing which steps were performed, and which one succeeded or failed.


7.What is Actions?

A test is composed of actions. The steps we add to a test are included with in the test's actions. By each test begin with a single action. We can divide our test into multiple actions to organize our test.

8.What is a Run-Time data table?

The test results tree also includes the table-shaped icon that displays the run-time data table-a table that shows the values used to run a test containing data table parameters or the data table output values retrieved from an application under test


9.What are all the components of QTP test script?

QTP test script is a combination of VB script statements and statements that use QuickTest test objects, methods and properties


10. What is test object?

It’s an object that QTP uses to represent an object in our application. Each test object has one or more methods and properties that we can use to perform operations and retrieve values for that object. Each object also has a number of identification properties that can describe the object.


Unit Testing


A unit test
is a procedure used to verify that a particular module of source code is working properly. The idea about unit tests is to write test cases for all functions and methods so that whenever a change causes a regression, it can be quickly identified and fixed. Ideally, each test case is separate from the others; constructs such as mock objectscan assist in separating unit tests. This type of testing is mostly done by the developers and not by end-users.

Types of Testing

  1. Unit Testing
  2. Integration Testing
  3. System Testing
  4. Regression Testing
  5. Load Testing
  6. Performance Testing
  7. Stress Testing
  8. Model Based Testing
  9. Installation Testing
  10. Usability Testing
  11. User Acceptance Testing
  12. Black Box Testing
  13. White Box Testing
  14. Glass Box Testing
  15. Fuzz Testing

Thursday, April 10, 2008

Define: Testing



Testing is the process of exercising or evaluating a system or a component by manual or automated, to verify that it satisfies the specified requirements.