QTP Questions
Back
Next
- Once we get the Test Result from QTP. I Have to convert into Excel file format. Is it possible.
For Example :
Total Test Case is :
XXXXX Test Case passed :
XXX Test Case Failed :
XXX --------
Total XXXXXX ---------
A. You can create a column name call result status in the data table.If test iteration
is passed then put "PASS" else put "FAIL" in the datatable. Once execution complete you can check
the pass & failed then import it into excel or notepad.
For getting total test case number, use datatable.rowcount.
- Scalability testing comes under which tool?
A. Scalability testing comes under performance testing.
- What is the use of VIRTUAL OBJECTS? Explain?
A. The use of virtual objects in qtp identifies the objects including pixels(with co-ordinates).
- What are the types of Object Repositories in QTP?
A. There are two types of Object Repository files in QTP
1. Per Action Repository file
2. Shared Repository file
The Extension of Per Action is .mtr
The Extension of Shared is .tsr
We can use Per Action as Shared one, but we cannot use Shared Object Repository as per Action mode.
- Explain about the Test Fusion Report of QTP ?
A. Once a tester has run a test, a TestFusion report displays all aspects of the test run: a high level results overview,an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any
discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion
reports with QuickTest Professional, you can share reports across an entire QA and development team.
- Associated files in QTP?
A. Associated files are the script files(in which the functions/methods are defined)
Ex: If you want to add a associated file, make a file with functions in vb script, having extension .vbs
Using the file.
In Test ->Settings ->Resources, add a associated file by
selecting from proper location.
It can be made default for a test.
- What is batch run ?
A. Batch run is nothing but running all the scripts at 1 time. Usually we create a file called GLOBAL and store all the scripts.all the GUI's(in case of wr) will be stored here.We have to call all the scripts in that gui file and run it.
very imp: all the scripts should be executed first and then put into batch.
next very imp: we have to change the settings as RUN IN BATCH MODE.
- After running scripts how you report results, there is any specific report form?
A. Using QTP utility statement we can send report to Test Result Window. Here the utility statement
syntax is
report.reportevent event status,stepname,details
Argument-1 : Event status are 4 types
1. micpass.
2. micfail.
3. micdone.
4. micwarning.
Argument-2 : The status of object we are going to report.
Argument-3 : The details of the object.
