- 1. What is the Difference between Bitmap Check point & Image Check point .?
Image checkpoint does do a pixel to pixel comparison but instead compare image properties like alt text , destination url etc.
- 2. What is the difference between the functions and actions in QTP .?
Functions is a VB Script programming concept and do not have their own Object Repository or Data Table. Functions help in re-use of your code. Ex: You can create a Function in your script to concatenate two strings.
- 2. What are keyword view and Expert view in QTP .?
Expert View gives the corresponding VB Script statement for every test step in the Keyword view.
- 3. What are the different types of Test Automation Frameworks .?
1) Linear Scripting - Record & Playback
2) The Test Library Architecture Framework.
3)The Data-Driven Testing Framework.
4)The Keyword-Driven or Table-Driven Testing Framework.
- 4. How will you check a web application for broken links using QTP .?
- 5. What is a Run-Time Data Table? Where can I find and view this table .?
- 6. What are the difference between check point and output value .?
An output value is a value captured during the test run and can be stored in a specified location like the Datable or even a variable. Unlike Checkpoints, no PASS/FAIL status is generated.
- 7. How would you connect to database using vbscript .?
b) username
c) password
d) DNS name
You can code the database connectivity command directly or you can use the SQL Query tool provided by QTP.
- 8. What is QTP batch testing tool .?
- 9. What are the drawbacks of QTP .?
1) Huge Tests in QTP consume lots of memory and increase CPU utilization.
2) Since QTP stores results in HTML file (and not txt) the result folder sometimes becomes big.
- 10. What is an Optional Step .?
- 11. What is Reporter.ReportEvent .?
Syntax
Reporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath]
where
EventStatus = 0 or micPass
1 or micFail
2 or micDone
3 or micWarning
Results can assume any status like Pass , Fail , Warning etc. You can also send screenshot to the test results window.
- 12. How will you declare a variable in QTP .?
Dim temp 'Will declare the temp variable
Set temp = 20 ' Will assign a value 20 to temp.
- 13. How would you export a Script from one PC to another in QTP .?
- 15. Can launch two instances of QTP on the same machine .?
- 16. Give the syntax to import/export xls into QTP .?
DataTable.ImportSheet '..\..\TestData\Input.xls',1,dtGlobalSheet
DataTable.ExportSheet '..\..\Results\Output.xls','Global'
- 17. What is SetToProperty .?
- 18. What is the standard timing delay for web based application in QTP .?
- 19. What is the Action Conversion Tool .?
- 20. What is the extension for a function library .?
- 21. If the Global Data sheet contains no data and the Local Datasheet contains two rows of data, how many times will the test iterate .?
- 22. What is Accessibility Checkpoint .?
- 23. What is the difference between an Action and a Function .?
VB Scripting.
Action can have a object repository associated with it while a function can’t. A function is
just lines of code with some / none parameters and a single return value while an action can
have more than one output parameters.
- 24. What are the various events available in the Recovery Scenario Manager .?
2) Pop Up Window: This event is useful in managing various unwanted application windows,
which get built-up at runtime.
3) Test Run Error: This event is useful in handling VBScript statement errors at runtime.
4) Object State: This event is useful in handling object related errors at runtime.
- 25. What factors affect bitmap checkpoints .?
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.