Tuesday, April 20, 2010

QTP Quiz: Test Yourself on QTP

Instructions: Click the answer button to see the correct answer.
  1. The toolbar enables you to view the details of an individual action or the entire test flow is


    1. Testing toolbar
    2. None of the above
    3. Action toolbar
    4. Test Pane

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


    1. F3
    2. SHIFT+ALT+F3
    3. CTRL+SHIFT+F3
    4. F10

  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?


    1. Add the specific property to the list
    2. Use the Default property
    3. Use some other property to identify your object

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


    1. Object Repository
    2. Object Identification

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


    1. GetVisibleText
    2. GetROProperty
    3. SetROProperty
    4. GetTOProperty

  6. Bitmap checkpoint is supported in VB environment.


    1. True
    2. False

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


    1. F12
    2. F2
    3. F10
    4. F7

  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.


    1. Checkpoint
    2. All the above
    3. Output Value
    4. Compare the object property

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


    1. Low-Level Recording Mode
    2. Normal recording Mode
    3. Analog Mode

  10. The statement that calls the recorded analog file is


    1. RunAnalog
    2. CallAnalog
    3. ExecuteAnalog

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


    1. Call Action
    2. Split Action
    3. Reusable Action

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


    1. False
    2. True

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



    1. Check Checkpoint
    2. Checkpoint

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


    1. Accessibility
    2. Text Area
    3. Standard
    4. Text

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


    1. No
    2. Yes

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


    1. Yes
    2. No

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


    1. Set ab = Connection("srcfilepath ") , Set ws = ab.getdata(sheetid)
    2. Set ab = CreateObject("srcfilepath ") , Set ws = ab.getsheet(sheetid)
    3. Set ab = GetObject("srcfilepath") , Set ws = ab.worksheets(sheetid)

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


    1. GetData(Row,Col)
    2. GetRowValue(Rowid,Colname)
    3. GetCellData (Row,Col)


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


    1. StartTransaction(“Name”), EndTransaction(“Name”)
    2. Services.StartTransaction "Name", Services.EndTransaction "Name"
    3. StartTransaction.services "Name”, EndTransaction.services "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


    1. Output Value
    2. Checkpoints
    3. Active Screen

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


    1. True
    2. false

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


    1. *.mtb
    2. *.mts
    3. *.mbt
    4. *.mtr

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


    1. InvokeApplication
    2. SystemUtil.Run
    3. Run
    4. Both b & c
    5. Both a & b

  24. Can we add external library files in QTP?


    1. No
    2. Yes

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


    1. recovery.activate
    2. enable
    3. recovery.enable
    4. activate

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


    1. Reporter.log()
    2. Reporter.reportevent()
    3. Reporter.msgbox()
    4. Reporter.report()

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


    1. SystemUtil.terminate
    2. SystemUtil.Stop
    3. SystemUtil.CloseProcessByName

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


    1. false
    2. True

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


    1. Function generator
    2. Step generator
    3. Object repository

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


    1. Synchronize
    2. Wait
    3. WaitProperty
    4. Pause

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


    1. Recovery scenario
    2. Smart identification
    3. Handling object

  32. Post-recovery test run options specifies


    1. how to continue the run session after QTP identify the event
    2. errors while running
    3. recovery scenario during a run session

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


    1. non-reusable action
    2. Reusable action
    3. External action

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


    1. False
    2. True

  35. The command used to connect with Database is


    1. Createobject(“connectivity name”)
    2. dbconnect(“connectivity name”)
    3. open(“connectivity name”)
    4. None of the above

  36. The method used to retrieve the folders is


    1. FileSystemObject.Getfolder()
    2. FileSystemObject.selectfolder()
    3. FileSystemObject.retrievefolder()

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


    1. XMLfile1.compare(XMLfile2)
    2. XMLcompare(file1,file2)
    3. compare(XMLfile1,XMLfile2)

  38. Can we change name of checkpoint?


    1. No
    2. Yes

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


    1. *.mts
    2. *.usr
    3. *.mtr
    4. *.vbs

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


    1. setFunc()
    2. RegisterUserFunc()
    3. RegisterFunc()

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


    1. openURL()
    2. navigateURL()
    3. navigate()

  42. The 3 Parameter types available in data driver is


    1. DataTable,Environment,Random number
    2. DataTable,random number,unique
    3. environment,string,numeric

  43. The method added to the test while parameterizing is


    1. get Data (variable, dtGlobalSheet)
    2. get DataTable(variable, dtGlobalSheet)
    3. Set Data(variable, dtGlobalSheet)
    4. Set DataTable(variable, dtGlobalSheet)

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


    1. length(array)
    2. ubound(array)
    3. count(array)

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


    1. GetItemsCount
    2. GetCount
    3. GetItemCount

  46. Can we parameterize the checkpoints properties?


    1. No
    2. Yes

  47. In data base check point we can not set the expected value from the test?


    1. True
    2. False

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


    1. DataBase CheckPoint
    2. Accessibility checkpoint
    3. Bitmap checkpoint
    4. Standard checkpoint

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


    1. On Error Resume Next
    2. On Error Raise Next
    3. On Error Next



    No comments:

    Post a Comment