Thursday, October 14, 2010

Issues & Troubleshooting - QTP QC

Error while running the test from Quality Center

Error: Cannot get RemoteAgent's ClassID for test type

Option 1:
In QTP, Tools -> Options -> Run
Check the checkbox for “Allow other HP prodoucts to run the test and components"

Option 2:
Install Quality Center Add in for QTP from QC -> Addins page


Install “HP Quality Center Connectivity”

Option 3:
Go to “More HP Quality Center Add-ins” page
Under “HP Tools and Add in” click on “HP Quick Test Professional Add-in”

Download and install the Add-in for the compatible version of QTP on your machine.  (You need to uninstall previously install add in and install it again)

QuickTest Professional: Covers QTP 9.2, 9.5 and 10.00 Process Automation Handbook: A Guide to Theory and Practice

Email:ashishdesai0412@gmail.com

Sunday, September 26, 2010

QTP - Q & A : Series III

--------------------------------------------------------------------------------------------
Software Testing (2nd Edition)

Agile Testing: A Practical Guide for Testers and Agile Teams

Testing Computer Software, 2nd Edition
--------------------------------------------------------------------------------------------
1. If you are typing in Expert view and you type an object followed by a dot, what does Quick Test display?
       A. Nothing
       b. The arguments for that object
       C. The methods and properties for that object
       D. The child objects and methods for that object

2. What are bitmap checkpoints sensitive to?
       A. Image size and object type
       B. Object type and image type
       C. Screen resolution and object type
       D. Screen resolution and image size

3. When a test is run in update mode, what is updated?
      A. The test results
      B. The object descriptions
      C. The action names in the test
      D. The logical names in the test

4. What object is used to read information from a text file?
      A. Read
      B. Readline
      C. TextStream
      D. File System
      E. Open Text file

5. What must you do before a shared object repository can be edited?
       A. Enable Editing
       B. Add a new object
       C. Open the object repository
       D. OPen an action that used that shared object repository

6. What is the difference between a subroutine and a function?
       A.  Subroutine can call itself, a function cannot
       B.  A function returns a value; a subroutine cannot
       C. A function can accept arguments; a subroutine cannot
       D. A subroutine can call other procedures; a function cannot

7. What are the phases in the Quick Test flow?
       A. Plan, Record. Enhance, Run
       B. Prepare,  Record, Verify, Run
       C. Plan, Create, Verify, Run
       D. Prepare, Create, Verify & Enhance, Integrate

8. What does the GetTOProperty method do?
     A. Retrieves the value of a property from the test object.
     B. Retrieves the available properties from a test object.
     C. Retrieves the value of a property from a run time object.
     D. Retrieves the available properties from a run time object.

9. The key that is used to Start/End analog recording mode?
  1. F3
  2. SHIFT+ALT+F3
  3. CTRL+SHIFT+F3
  4. F10 
10. The list of test objects and their properties and values are stored in the
  1. Object Repository
  2. Object Identification
  3. Object Class 
11. The statement that calls the recorded analog file is
  1. RunAnalog
  2. CallAnalog
  3. ExecuteAnalog 

12.In Batch Test process, the test list are saved in file format as,
     A.*.mtb
     B.*.mts
     C.*.mbt
     D.*.mtr       

13.The method that adds to the test while implementing Synchronization is
     A.Synchronize
     B.Wait
     C.WaitProperty
     D.Pause

14. What is the extension for Script file?
     .mts

15.What is the extension for Recovery Scenario File?
     .qrs

16.What is the extension for shared object repository?
     .tsr

17.What is the extension for Per Action repository?
      .mtr

18.What is the extension for Action Template?
     .mst

19.What is the extension for virtual object collection?
     .vot

20. what is the extension for Test Results?
     .xml

21. what is the extension for Batch file?
     .mtb


Source: Google

QTP - Q & A : Series II

1. In which command can you associate a function library to a test?
      A. Run options
      B. Test Settings
      C. View Options
      D. Function Definition Generator

2. To use low-level recording, what must you do first?
       A. Start a new test
       B. Be in the keyword view
       C. Be recording in Normal Mode
       D. Click Low Level recording under the Automation Menu

3. What method is used to retrieve the number of columns in the query results?
       A. Field.Count
       B. Fields.Item
       C. Fieds.Count(BOF)
       D. Fields.Count.Value

4. You should use local object repositories when you?
       A. Work with single-action tests
       B. Work with multiple-action tests
       C. Create multiple tests for a single application.
       D. Expect the test object properties to change frequently.

5. In Test Settings-->Run the Data Table iteration options are for which data sheet?
       A. Local
       B. Global
       C. Run-time Data Table
       D. Design-time data Table

6. Why is low-level recording useful?
       A. It records exact keyboard operations on an object.
       B. It records exact coordinates of all mouse movements.
       C. It uses the object repository to determine what methods can be used.

7. Where are virtual objects collections stored?
       A. In a Function Library
       B. In the local Object Repository
       C. In the Object Repository Manager
       D. Dat folder inside of the QTP installation directory.

8. What is the correct set of add-ins installed automatically with Quick Test 9.2?
       A. .NET, Web, Java
       B. Web, SAP, VB
       C. Active X, VB, Web
       D. Active X, TE, Web Services

9. If you have a Virtual Object Collectio stored on your machine, and you dont want to use it, what must you do?
      A. Disable Virtual Object in Test Settings
      B. Remove the collection from you machine
      C. Disable virtual objects in General options
      D. Remove the collections from the resources list.

10. How do you close the database session after examining the results of an SQL query?
       A.  Call the AOD close function
       B. Use the close method for the RecordSet object
       C. Set the RecordSet and Connection objects equal to nothing
       D. Use the close method for the RecordSet and Connection objects

11. If the gloabl data sheet contains no data and the local datasheet contains two rows of data, how many times will the test iterate?
       A. 1
       B. 2
       C. 3
       D. 5

12. To bypass the object repository you can?
       A. Turn the object repository off
       B. Use a programmatic description
       C. Delete all objects in all respositories
       D. Add the object to the object repository manager.

13. Where you can merge two shared object repositories?
      A. The Object Repository
      B. The Object Repository Manager. 
      C. The Associate Object Repositories Tool.
      D. You can only merge local object repositories.

14. What object is used to send information to test results at the completion of the test run?
       A. Result
       B. Reporter.
       C. ReportEvent
       D. Resultreport


15. What can you use to handle unpredictable testing exceptions?
       A.  A Do Loop
       B. Recovery Scenario
       C. IF then Statement
       D. Select case statement.

16. After running a test that contains both input and output parameters, where can the results of an output parameter be found/
      A. Local DataSheet
      B. Global DataSheet
      C. Run-time Data Table
      D. Design-time Data Table.

17. Which statement is used to associate a procedure with a test object class?
       A. RegisterFunction
       B. RegisterUserProc
       C. RegisterUserFunc
       D. RegisterProcedure

18. How do you declate a constant
      A. Dim Statement
      B. Con Statement
      C. Const Statement
      D. Option Explicit Statement

19. What is created, by default with each new action?
       A. Local Data Sheet, Global data sheet, Folder
       B. Local Object Repository, Local Data Sheet, Folder
       C. Global Data Sheet, Local Object Repository, Folder
       D. Local Data Sheet, Global Data Sheet, Local Object Repository

20. In the Object Identification diablog box, which properties can be viewed?
       A. The base filter and option properties
       B. The mandatory and option properties
       C. The filter and assistive properties
       D. The mandatory and assistive properties


Source: Google Search

Monday, April 5, 2010

QTP - Q & A : Series I

1. What is the default Identifier?
    A. The Location.
    B. The Object Id.
    C. The Native Class.
    D. The Index Number.

2. Which of the following is an example of missing resource?
    A. An Object
    B. Run Results.
    C. A Regular Action.
    D. An External Action.

3. What are the available Environment Types?
     A. Built-In
     B. User-defined.
     C. User-Function.
     D. Built-In, User-Defined.
     E. Built-In, User-Function.

4. How can you retrieve the number of items in the list of Web List object?
    A. GetList.
    B. GetItem.
    C. GetItems Count.
    D. GetROProperty.

5. What method is used to send run-time Data sheet to an excel sheet?
     A. Send
     B.  Export
     C. Sendsheet.
     D. ExportSheet.

6. What does the GetROProperty method do?
     A. Retrieves the value of a property from the test object.
     B. Retrieves the available properties from a test object.
     C. Retrieves the value of a property from a run time object.
     D. Retrieves the available properties from a run time object.

7. What is the first thing that must be defined in a Recovery Scenario?
     A. Trigger.
     B.  Recovery Operation.
     C.  Recovery Scenario Name.
     D. The function used in the Scenario.

8. What does the source property of a database checkpoint object represent?
    A. The SQL Query
    B. The Identification number of the database.
    C. The number of rows returned from the query.
    D. The connectionstring used to connect to the database.

9. If a Procedure is defined in a test script, that procedure is accessible to which test/scripts?
    A. Only to other procedures
    B. It is not usable to any test scripts.
    C. The test script in which it is defined.
    D. Using the Step Generator, it is available to any test script.

10. Where do you set the action iterations for a specified action?
      A. Action Settings
      B. Action Properties.
      C. Action Run Settings.
      D. Action Call Properties.


11. How do you know if Smart Identification has been used in a test?
      A. The Smart Identification icon appears in the test results.
      B. The test results will show a run error, causing  a test failure.
      C. The Properties used by the object repository will be changed.
      D. The object repository will show the Smart Identification Icon.

12. By default, how does Quick Test pass arguments to the procedure?
       A. ByVal
       B. ByRef
       C. ByArg
       D. ByRes

13. What looping statments are available in Quick Test?
       A. Whileend, Doloop, Ifthen
       B. Switchcase,ifthen, Fortext
       C. Fortext, Whileend, Doloop.
       D. Fortext, Doloop, Switchcase.

14. When does a Do loop statement evaluate for continuation?
       A. At the end of the loop
       B. At the start of the loop
       C. At the Start or the end of the loop
       D. This loop used a counter variable.

15. Where do you turn Smart Identification IN?
       A. The Object Repository.
       B. The Test Settings dialog.
       C. The General Options dialog.
       D. The object Identification dialog.

16. What are test object properties?
       A. Those properties as defined in a description object.
       B. Those properties as defined in Object identificaton.
       C. Thos properties displayed by an object at run-time.
       D. Those properties used in the object repository for object identification.


17. What are the two most commanly used ADO objects?
       A. Fields
       B. Execute
       C. Connection, RecordSet
       D. Open, ConnectionString

18. What is the function of Object Repository Manager?
       A. Assign Variable names to the test objects
       B. View/make/modify a Local Object Repository
       C. View/make/modify a Shared Object Repository
       D. Define new test objects using programmatic descriptions.

19. Which method for that Data utility object will allow you to retrieve information from the Data Table during a test run?
       A. Value
       B. Import
       C. GetCell
       D. GetValue

20. When a procedure is created in the Function Library editor, what is the extension on the file?
       A. .INI
       B. .TXT
       C. .QFL
       D. .VBS


21. Where do you mark an action as reusable?
       A. Action Settings
       B. Action Properties
       C. Action Run Settings
       D. Action Call Properties

22. What is the keyword used to define how the counter variable in a or next loop increments?
      A. ++
      B. Next
      C. Skip
      D.Step
23. What does the ChildObjects method return?
       A. A Collection object
       B. A String True/False
       C. A Boolean True/False
       D. The number of objects matching the ChildObject description.

24. What are the available trigger event types?
      A. Pop-up window, Object state, VBScript
      B. Object State, VBScript event, Application crash
      C. Pop-up window, object state, test run error, QTP crash
      D. Pop-up window, object state, test run error, application crash.

25. What information can be seen in the information pane?
       A. Syntax errors
       B. The test name and author
       C. The QTP license information.
       D. The machine ID and operating system.

26. What are the available step commands in Quick Test?
       A. Step.Step Into,Step Out
       B. Step Into, Step Over, Step Out
       C. Step Test, Step Action, Step Function
       D. Run from Step, Debug from Step, Run from Step.


27. What are the categories in Step Generator?
       A. Object, Operation, Value
       B. Library, Built-in. Local Script.
       C. Operation, Arguments, Return Value.
       D. Test objects, Utility Objects, Functions

28. Where do you configure an action to use a shared object repository?
       A. Test Settings
       B. Action Settings
       C. Action Call properties
       D. Associate Repositories.

29. What options are available to filter objects in the Target Object Repository pane when mergind object   
       repositories?
       A. Show all objects or show only objects with conflicting object types
       B. Show all objects or show only objects with conflicting descriptions.
       C. Show only objects with conflicting logical names or show only objects with conflicting object types.
       D. Show only objects with conflicting logical names or show only objects with conflicting   
           descriptions.

30. What does a break point do?
       A. Stops test execution at the specified step, after executing that step
       B. Stops test execution at the specified step, before executing that step.
       C. Pauses test execution at the specified step, after executing that step
       D. Pauses test execution at the specified step, before executing that step.

Software Testing (2nd Edition)

Prometric Centers


Sunday, April 4, 2010

HP Certification Details – QC 9.2

Exam Code: HP0-M15
Exam Name: HP Quality Center v9 (QC 9.2)
Exam Fees: US $70

Total Questions: 90
Passing Criteria: 70%

Exam Place: Any pro-metric center

Exam Preparation:
- Practical knowledge in Quality Center 9.2
- You should know the all functionalities of QC

Other details like HP Learner’s ID & Exam Registration etc same as in QTP

For any queries you can contact me: ashishdesai0412@gmail.com