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

No comments: