Sunteți pe pagina 1din 16

Search

• Home
• About
• QTP Forums
• QTP Jobs
• QTP Training

Recent Posts
o Update: QTP Forums
o Details on QTP Certification v10.0
o Automating Word Documents Part-3
o Automating MS Word Documents – Part 2
o Automating Word Documents: Part 1

Miscellaneous Concepts on QTP


• Some Useful Tips with QTP
• Best practises while writing QTP scripts
• Are You Sure You Want To Use QTP?
• Refresher on how QTP Identifies Objects?
• Using Relative path in QTP
• Identify broken links using QTP
• File handling using QTP
• QTP and Reporter Objects
• Points to take care with QTP and TD/QC
• Points to take care with Siebel add-in
• Points to take care with Oracle/Java add-in
• Points to take care with Active X add-in
• Points to take care with Visual Basic add-in
• Understanding enigmatic TO and RO property
• Identification vs Execution of checkpoint
• Descriptive Programming Simplified
• Ways to Launch Application
• Regular Expression Regularized!!!
• How to count total no of rows when all are not visible?
• Integrating ECATT and QTP
• Sending SOAP XML message using QTP
• Use keyboard to send input to your application
• Limitations of DataTable
• Recovery Scenarios in QTP

About Me

View my complete profile

Does QTP support...


• ...Adobe Flash/ Flex applications?
• ...MS Vista?
• ...SAP Netweaver?

Some Common Errors/ Issues


• Place screenshot in Results viewer

• QTP unable to identify pop up window

• Visual C++ Run time library error

• General Run Error

Test Yourself on QTP


• QTP Quiz: Objective Q & A

• Technical Interview Questions on QTP

Forums - All Forums


o how to get only numeric values from text
o GetROProperty URL redirect
o Check an object existing on a Browser
o QTP with Windows7
o Sending soap request in qtp

QTP Quiz: Objective Q and A

Instructions: Click the answer button to see the correct answer.


These questions are purely based on QTP 8.2

1. The toolbar enables you to view the details of an individual


action or the entire test flow is

a. Testing toolbar
b. None of the above
c. Action toolbar
d. Test Pane

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

a. F3
b. SHIFT+ALT+F3
c. CTRL+SHIFT+F3
d. 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?

a. Add the specific property to the list


b. Use the Default property
c. Use some other property to identify your object

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

a. Object Repository
b. Object Identification

5. To retrieve the current property value of the objects in your


application during the run session.

a. GetVisibleText
b. GetROProperty
c. SetROProperty
d. GetTOProperty
6. Bitmap checkpoint is supported in VB environment.

a. True
b. False

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

a. F12
b. F2
c. F10
d. 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.

a. Checkpoint
b. All the above
c. Output Value
d. Compare the object property

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

a. Low-Level Recording Mode


b. Normal recording Mode
c. Analog Mode
10. The statement that calls the recorded analog file is

a. RunAnalog
b. CallAnalog
c. ExecuteAnalog

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

a. Call Action
b. Split Action
c. Reusable Action

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

a. False
b. True

13. QuickTest adds a checkpoint statement in the Expert View


as

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

a. Accessibility
b. Text Area
c. Standard
d. Text

15. In ActiveX environment an “Accessibility checkpoint” is


supported.

a. No
b. Yes

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

a. Yes
b. No

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

a. Set ab = Connection("srcfilepath ") , Set ws =


ab.getdata(sheetid)
b. Set ab = CreateObject("srcfilepath ") , Set ws =
ab.getsheet(sheetid)
c. Set ab = GetObject("srcfilepath") , Set ws =
ab.worksheets(sheetid)

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

a. GetData(Row,Col)
b. GetRowValue(Rowid,Colname)
c. GetCellData (Row,Col)

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

a. StartTransaction(“Name”), EndTransaction(“Name”)
b. Services.StartTransaction "Name",
Services.EndTransaction "Name"
c. 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

a. Output Value
b. Checkpoints
c. Active Screen
21. QuickTest can detects an application crash and activate a
defined recovery scenario to continue the run session.

a. True
b. false

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

a. *.mtb
b. *.mts
c. *.mbt
d. *.mtr

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

a. InvokeApplication
b. SystemUtil.Run
c. Run
d. Both b & c
e. Both a & b

24. Can we add external library files in QTP?


a. No
b. Yes

25. The method that explicitly activates the recovery scenario


mechanism is,

a. recovery.activate
b. enable
c. recovery.enable
d. activate

26. The method used for sending information to the test


results.

a. Reporter.log()
b. Reporter.reportevent()
c. Reporter.msgbox()
d. Reporter.report()

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

a. SystemUtil.terminate
b. SystemUtil.Stop
c. SystemUtil.CloseProcessByName
28. The recovery mechanism does not handle triggers that
occur in the last step of a test

a. false
b. True

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

a. Function generator
b. Step generator
c. Object repository

30. The method that adds to the test while implementing


Synchronization is

a. Synchronize
b. Wait
c. WaitProperty
d. Pause

31. The mechanism used to identify objects during run session


is

a. Recovery scenario
b. Smart identification
c. Handling object
32. Post-recovery test run options specifies

a. how to continue the run session after QTP identify the


event
b. errors while running
c. 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

a. non-reusable action
b. Reusable action
c. External action

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


recording.

a. False
b. True

35. The command used to connect with Database is

a. Createobject(“connectivity name”)
b. dbconnect(“connectivity name”)
c. open(“connectivity name”)
d. None of the above

36. The method used to retrieve the folders is

a. FileSystemObject.Getfolder()
b. FileSystemObject.selectfolder()
c. FileSystemObject.retrievefolder()

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

a. XMLfile1.compare(XMLfile2)
b. XMLcompare(file1,file2)
c. compare(XMLfile1,XMLfile2)

38. Can we change name of checkpoint?

a. No
b. Yes

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

a. *.mts
b. *.usr
c. *.mtr
d. *.vbs

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


test object is

a. setFunc()
b. RegisterUserFunc()
c. RegisterFunc()

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

a. openURL()
b. navigateURL()
c. navigate()

42. The 3 Parameter types available in data driver is

a. DataTable,Environment,Random number
b. DataTable,random number,unique
c. environment,string,numeric

43. The method added to the test while parameterizing is


a. get Data (variable, dtGlobalSheet)
b. get DataTable(variable, dtGlobalSheet)
c. Set Data(variable, dtGlobalSheet)
d. Set DataTable(variable, dtGlobalSheet)

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

a. length(array)
b. ubound(array)
c. count(array)

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

a. GetItemsCount
b. GetCount
c. GetItemCount

46. Can we parameterize the checkpoints properties?

a. No
b. Yes

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

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

a. DataBase CheckPoint
b. Accessibility checkpoint
c. Bitmap checkpoint
d. Standard checkpoint

49. The method used to continue the test execution after


getting run-time error is

a. On Error Resume Next


b. On Error Raise Next
c. On Error Next

S-ar putea să vă placă și