Top Banner

of 21

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.

QTP interview questions and answers - contributed by Rohit SrivastavaQ1. What phases are involved in testing an application in QTP?The Quick Test Professional process consists of the following main phases: Analyzing Application: before preparing test cases need to analyze the application to find out the testing needs. Preparing Testing Infrastructure: based on testing needs create those resources, resources like, shared repository, function library etc. Building Test Cases: create test script containing action to be performed while testing. Add object repository with the test function libraries. Enhancing Test: by making use of checkpoints, broadening the scope of test, add logic and condition to test for checking purpose. Debugging, Running and analyzing Test: debug the test so that it works without interruption. Run these test and analyze the test result generated by QTP Report Defects: lock bug into the bug report and send it to the development team.Q2. How many types of recording modes in the QTP?The QTP enable us with three type of recording mode: Normal (by Default recording): In this recording mode QTP identify the object irrespective of their location on the screen. It is done by recording object based on application window. Analog Recording: it is used when exact mouse movement and action performed by mouse is important. Used in testing the paint application and signature made with the help of mouse. Low Level Recording: it helps in identifying those objects which is not recognized by the QTP. It is used when the location of object is changing inside the screen.Q3. What is object repository?Object Repository: when QTP learn any object from application it stores those object in the Object Repository with the properties of the object. It is used to identify the object. There are two types of object repository: Shared Object Repository: It can be shared between multiple tests but it does not allow making changes in the repository. Mostly used in Keyword Driven methodology. It is saved with .TSR extension. Local Object Repository: This type of object repository is linked with only one test. In this we can perform change in the repository, like changing the properties of the object, adding object in the repository. It is saved with .MTR extension.

Q4. Explain step generator in QTP?Step Generator in QTP helps in creating those steps which is performed over the object while testing. Use of Step Generator in QTP: Help in debugging the script by making use of Break. To add those step which we forget to perform while recording. To ensure that objects exist in the repository To add up step in the function library.Q5. Explain the use of Action Split in QTP?Action Split: it is used to split the action into two parts. There are two type of split an action: Splitting into two sibling action: both split actions are independent of each other. Splitting into Parent-Child nested action: in this second split action is only called after the execution of the parent split action. Child split action depends upon the parent split action.QTP generated the duplicate copy of the object repository when we perform Split action. We can add object to anyone spilt action which is not added into another split actions repository.Q6. What is the purpose of loading QTP Add-Ins?Add-Ins: are small programs or files which can be added to computer in order to enhance the capabilities of the system. The purposes of loading Add-Ins into QTP are following: To increase capabilities of the system. To improve the graphics quality, communications interface. To load the particular function into the memory. To excess only those functions that is required for the execution of the script.Q7. What is a data driven test in QTP? Data Driven is an automation testing part in which test input or output values, these values are read from data files. It is performed when the values are changing by the time. The different data files may include data pools. The data is then loaded into variables in recorded or manually coded scripts. In QTP to perform the data to drive the test, we use the parameterization process. When we do data-driven test, we perform two extra steps: Converting the test to a data-driven test. Creating a corresponding data table.

Q8. How to use Parameterization in QTP?It is the process of making use of different values in place of recorded values which is replaced by variable which contains different values that can be used during the execution of the scripts. QTP enable us with different type of Parameterization, passing of data: Using Loop statement. Dynamically test data submission Using data table. Fetching data from external files. Fetching data from databases. By taking test data front end(GUI)Q9. Is it possible to call from one action to another action in QTP?Yes, QTP enable us to call from one action to another action. There are two ways of calling action: Call to Copy of action: in this we generate the copy of action in our repository which enables us to perform change to the copy of action. Call to Existing action: we call to action which is made up earlier. This generates the reference to the action. We can access the action in read only mode. In this no copy of existing script and data table is made.Q10. Explain different types of action in QTP?When generating the test script, it includes only one action. Action contains the number of steps to be performed on application to test the application. There are three type of action in QTP: Non-Reusable action: it can be called by test only once in which it is stored. Reusable action: it can be called by test multiple times in which it is stored. External action: it is reusable action but stored in external test. We can call external action but it will be available in read only mode we cannot perform any change to the External Action.Q11. What is difference between Run time object and Test object?The difference between Run time Object and Test object are: Run time object are actual object in the application whereas test object are reference of the actual object. Run time object always have same name whereas test object name varies in different environment. Test object are used to identify the actual object in the application which is run time objects. Run time object resides in the application whereas test object resides in the object repository.Q12. Explain Measuring Transaction.Measuring transaction means that to measure how much time it take to execute a set of step over the application. A transaction is collection of steps that we are intended to know how much time it take to execute. We can define the transaction by enclosing the set of steps with the start transaction and end transaction. Start transaction: after encounter of start transaction time measurement start. End transaction: it is used to stop the time measurement.Q13. Explain different checkpoints in QTP.Checkpoint is a point where QTP current value or property of the object with the expected value or property of the object. When we insert the check point in the test, then in keyword view checkpoint is added in front of current row and in expert view a checkpoint statement is added. QTP enable us with following types of check point: Standard Checkpoint: check properties of objects like button, combo boxes, list etc. Image Checkpoint: check value of an image Bitmap Checkpoint: check image zooming capability. Table Checkpoint: check information of a table. Text Checkpoint: check text is displayed on correct place. Text Area Checkpoint: check text is displayed in specific area. Accessibility Checkpoint: used to determine website which is not as per W3C guidelines. Page Checkpoint: checks properties of the webpage. Database Checkpoint: check content of database XML Checkpoint: check XML content.Q14. Can we create a QTP test from QC? Yes we can create QTP test from QC but we must first make sure QTP has the ability to execute tests from Quality Center. Please ensure the following option in QTP Run Settings is enabled:When QTP is enabled, follow the below steps to schedule and execute tests from Quality Center:1. Login to Quality Center and Navigate to Test Lab Module2. After selecting the correct Test Set, Click the Execution Flow Tab.3. Right-click on the test that requires configuration of Time Dependency and click Test Run Schedule.4. In the Run Schedule window, select the Time Dependency tab. The time and date of execution can be configured.5. Time dependency will be added to the relevant test.6. After time dependency has been added, navigate back to the Execution Grid pane. From the Execution Grid, select the tests to be run at the designated date and time.7. From the Automatic Runner dialog, click Run All.8. Once Run All is clicked from the Automatic Runner dialog, the test status will change to Waiting and QC will fire the tests to be run at the scheduled date and time:9. QC will fire the tests in the sequence configured in the Execution Flow pane. The Test Run Scheduler will show all the tests that were selected and are executing and are to be executed.Q15. What is expert view and keyword view?Expert View: It contains the steps performed over the application in VBScript language. Expert view enables us to editing the script. In keyword view a row exist for each object and method which is mention in Expert View.Keyword View: contains the steps executed on the application in keyword driven tabular form in English language. Keyword View contains four fields: ITEM, Operation, Value, and Document. Selecting items and operation we can create and modify test.Q16. Describe Synchronization Point.Synchronization Point: When application response speed is not same as the test execution speed this may cause error. In order to remove this error we use Synchronization point. Synchronization is done by making QTP test to wait until the application is ready for execution. When we insert Synchronization point in test then QTP generates the WaitProperty Statement in the ExpertView. For synchronization we can use: Exist statement Wait statement. Increase the defaulted time of QTP waits for web page to load. Change in default timeout setting.Q17. Explain checkpoint.Checkpoint is a point where QTP current value or property of the object with the expected value or property of the object. When we insert the check point in the test, then in keyword view checkpoint is added in front of current row and in expert view a checkpoint statement is addedQ18. What is Keyword Driven Framework?In Keyword driven framework the QTP executed script which is written in the excel sheet by help of Driver Script. For making Keyword Driven Framework we have two ways: Specify Script Values Directly in the Excel Write Global Functions to perform action on application as function keywords in Excel.Q19. What are benefits of QTP?The benefits of QTP are: Standalone tool and integrated with Quality Center. Testing results stores in database automatically, can be used for analyzing system performance. Supports Key word driven testing. QTP Identifies objects, even if they change from build to build. By using QTP, Test execution time and cost will reduce. Suitable for both client server and web based application Better error handling mechanism Excellent data driven testing featuresQ20. What are the disadvantages of recording test cases in QTP?Following are the Disadvantage of recording test cases in QTP Occupies lot of space result in reducing QTP performance. Updating test is difficult. Internal to the QTP, which may cause corrupted.Q21. What is difference between design time and run time data table?The differences between Design time and Run time table are: Design time table are visible in QTP main test but Run time table is visible in Test Result Window. Design time table is created before the execution of test whereas Run time table is created after execution of test. Design time table referred to the external data but Run time table represent actual design table in the application.

Q22. What is the process of synchronizing QTP and AUT?We can synchronize QTP and AUT by applying any one of the following methods: Wait statement. Using exit statement Synchronization point. Increasing timeout.( tool default synchronization point) Syn (synchronize method) methodQ23. What is difference between Shared and Local Object Repository?The difference between Shared and Local Object Repository are: Shared OR can be shared between multiple tests whereas Local OR can only link with one test. Shared OR does not allow making changes in the repository but Local OR enable tester to perform change in the object property present in the Object Repository or adding object in OR. Mostly used in Keyword Driven methodology. It is saved with .TSR extension where as Local OR is saved with .MTR extension.Q24. What are the shot cut keys of:a) Normal Recording: F3b) Run the test script: F5c) To stop the recording: F4d) For Analog Recording:Ctrl+Shift+F4e) Low Level Recording: Ctrl+Shift+F3f) To switch between Tree View and Expert View: Ctrl+TabQ25. Can we create User Defined Functions in QTP?Yes we can create User Defined Function. User defined function is used when we want to execute segment of code several time while testing the application. User defined function can be saved in two ways: Within Function Library: saved with .qfl file extension. Within Action Script: saved with .vbs or .txt file extension.Q26. What is recovery scenario in QTP?While executing a test, some unexpected error and event may occur. To overcome this we take the help of Recovery Scenario. The Recovery Scenario Consist of Following: Trigger Event: when an unexpected events or errors invoke. Recovery Operation: Operation needed to perform for running the remaining test script. Post-Recovery Test Run Option: after recovering from unexpected error where to start the remaining test execution.Q27. What are the steps involved in Recovery Scenario Wizard?The Recovery Scenario Wizard consists of following steps: Defining of trigger event Defining Recovery operation Selection of Post Recovery Run Specifying either to associate recovery scenario to the current test or all new test.

Q28. Explain different type of event trigger option.In QTP, there are following type of trigger: POP-UP window: QTP identify POP-UP window based on window title and textual content. Object State: object state is identified by its properties. Test Run Error: when test run result value is failed it is identified. Application Crash: this state is identified by predefined list of application.Q29. What are the different types of Recovery Operation?Following type of Recovery Operation is available in QTP: Keyboard or mouse operation. Close Application Process. Function call. Restart Microsoft Windows.Q30. How to change the priorities of the Recovery scenario properties?To change the priorities of Recovery scenario we do following step: STEP 1: SELECT scenario. STEP 2: Click UP or DOWN button in order to increase and decrease the priorities of the Recovery Scenario. Repeat STEP 1 and STEP 2 for each scenario.Q31. Explain Sub Procedure of VBScript.SUB procedure: it is used only to perform action but has no return value.-It takes arguments like constant, variable or expression.-When no argument is given it take empty parentheses ().-SYNTAX of SUB Procedure:[Public ] [Default] [Private] Sub name [(arglist)][Statements][EXIT sub][Statement]End SubQ32. Describe Function Procedure in VBScript.Function procedure: it consists of steps of statements written in VBScript with some return value. Function statement is used to declare name, argument and code. When no argument is given it take empty parentheses (). Name is used to return the value. SYNTAX of Function Procedure: [Public][Default][Private] Function name [(arglist)][Statements][name = expression][Exit Function][Statements][name = expression]End FunctionQ33. Explain Calling Sub procedure.Calling Sub procedure is used to call Function and Sub Procedure.SYNTAX of Calling Procedure: Call procname( firstarg, secondarg) Procname firstarg, secondargBoth Syntax are correct. First syntax use the CALL keyword, when we use CALL keyword then it is mandatory to write the argument in parentheses. Q34. How to remove associated Function library?Ans. To remove the associated Function Library we can perform any one of the following method: METHOD 1:-Select Resource Pane.-Right click on function library, select Remove Function Library. METHOD 2:-Select Resource Pane,-Select Function Library.-Press DELETE key. METHOD 3:-Go to list of Associated Function Library in the Resource Pane.-Select the Function and click the Remove button.Q35. Give the Syntax to load Function at run time.Syntax to load the function at run time:LoadFunctionLibrary strCurrentLibPath + DialogCrashChecks.qfl, strCurrentLibPath + DialogL18nChecks.qflQ36. What is Regular Expression?The Varying window labels problem can be solved by using the regular expressions. Regular expressions enable QTP to identify objects with varying names or titles. We can use regular expressions in Test Script Language statements. A regular expression is a string. Regular expression is followed by an exclamation mark. We use special characters such as a period (.), asterisk (*), caret (^), and brackets ([ ]), by this we can generate the conditions of the search. For example, the string !hit.* matches both chit and hit. Q37. What are the different attribute used with Regular Expression?The different attribute of Regular Expression are: Backslash(\): when it is encountered the next character is treated as literal character. Period(.): is used to search any single character. Square Bracket[ ]: is used to search a single character within a list of characters. Caret(^): is used match any character in the list except those specified in string. Asterisk(*): to match zero or all occurrence of the preceding characters.Q38. What is difference in Global and action sheet in QTP?Global Sheet: Globally accessible by all tests. Used when we have to perform many actions by using single script.Action Sheet: Locally accessible in a test. It is used when only one action is performed with one script.

Q39. Explain XML Checkpoints.XML Checkpoints are used for the verification of the current and expect value or properties of the XML documents. A checkpoint fails when actual and expected values or properties are not same. QTP enables us with three types of XML Checkpoints: XML Web Page or Frame Checkpoints. XML File Checkpoints. XML Test Object Checkpoints.Q40. How to modify the Text Checkpoint?To modify the Checkpoint in QTP we do Go to Keyword View, Right-Click the Checkpoint. Select Checkpoint Properties. Checkpoint properties dialog box open, change the setting.Q41. What is Smart Identification?Smart Identification properties are used to identify the object even when object properties are changed. It uses two types of properties to identify the object in the application: Base Filter Properties: this is the fundamental property of the object, whose values cannot be changed. Optional Filter Properties: Properties other then fundamental properties are used in this. These properties are changing while performing the test on the application.Q42. What is the use of Ordinal identifier in QTP?Ordinal Identifiers are used to initialize the value to the object which is in numeric form and it is used to find out its order with respect to other objects. QTP enable us with following types of Ordinal Identifiers: Index: indicates the order of object. Location: determine the location of the object like inside the parent window, frame or dialog box relative to other objects. Creation Time: determine the order in which web browser open.Q43. How to delete an object from the Object Repository?To delete an object from the repository: Go to repository tree, select the object. Click the Delete button or select Edit> Delete. Click Yes to confirm.Q44. What is Cross Site Scripting?Cross Site Scripting is a thread in the dynamic website. It is also known as XSS. Cross site scripting occurs when a web application gathers malicious data from a user. The data is collected in the hyperlink form which contains malicious content within it. It allows malicious code to be inserted into the web page. The web page can be a simple HTML code or a client side script. When the malicious code is inserted in page and clicked by some user, the malicious code becomes a part of the web request of the user. This request can also execute on the users computer and steal information.Q45. What is contained in the Object Repository?Object Repository stores the element identification properties extracted from the application during recording. ID will be generated for each element and this ID is used for Object identification in the application. Object Repository acts as a repository for the application elements. Object Repository contains two properties of each object for the identification: Physical properties description of the object Logical name of the object.Second and latest questions

What is QTP?Quick Test Pro is a GUI based testing tool for automated functionality. It allows to automation of the user actions on a web based or client based and desktop software application. The functional regression test automation is used primarily by QTP. A scripting language is built atop of VBScript for specifying the test procedure and to manipulate the objects and controls of the application under a test.QTP works together with Mercury Interactive WinRunner and HP Quality Center and also supports the Quality Assurance of an enterprise.Quick Test Pro- What is QTP?- April 30, 2009 at 18:00 PM by Rajmeet Ghai What is QTP?Quick test pro is used to automate user actions (like mouse clicks and keyboard actions) of an application. This is provided by a GUI. It is used to specifically automate functional and regression testing. A number of plug-ins is available in QTP for enhancing the environment. Quick Test Pro - Explain the concepts of Test Fusion Report of QTP.-March 02, 2010 at 04:50 am byVidya Sagar Explain the concepts of Test Fusion Report of QTP.Test Fusion report displays different aspects of the test run, soon after the tester has run a test. A high-level results overview, and expandable Tree View of the test, test data used, the screen shots of the application for every step which highlights discrepancies if at all and each check point pass a failures deep explanation; are the aspects. The combination of Test Fusion reports and Quick Test Pro, the reports can be shared across an entire Quality Assurance and the development team.Quick Test Pro- Explain the concepts of Test Fusion Report of QTP.- April 30, 2009 at 18:00 PM by Rajmeet Ghai Explain the concepts of Test Fusion Report of QTP.Test Fusion Report is a compilation of the entire testing process. It includes an overview of where the failure occurred, the test data that was used in testing, Screen shots to support inconsistencies, detailed view of checkpoints.Quick Test Pro - How does Run time data (Parameterization) is handled in QTP?-March 02, 2010 at 04:50 am byVidya Sagar How does Run time data (Parameterization) is handled in QTP?The parameter feature can be utilized in Quick Test Pro for enhancing the test or component by using parameterization. A variable acts as a parameter which is assigned a value through an external source or generator. In different steps or check points, the values can be parameterized in test component. The action parameters values can also be parameterized. A data driven wizard could be used to parameterize the same value in several steps.Quick Test Pro- How does Run time data (Parameterization) is handled in QTP?- April 30, 2009 at 18:00 PM by Rajmeet Ghai How does Run time data (Parameterization) is handled in QTP?QTP provides an integrated spreadsheet when test data is entered into the Data table. This spreadsheet works like Excel and allows creating multiple test iterations thereby saving programming efforts. Apart from manual entry, data can also be imported from databases, spreadsheets, or text files.

Quick Test Pro - Explain the QTP Tool interface-March 02, 2010 at 04:50 am byVidya Sagar Explain the QTP Tool interface.The QTP Tool interface has certain key elements:- Title bar displays the name of the open test - Menu bar displays menus of Quick Test Pro commands - File tool bar has buttons for assisting in managing tests- Test tool bar has buttons used while creating and maintaining tests- Debut tool bar has buttons used during debugging tests it can be viewed by clicking View->Toolbars->Debug.- Action Toolbar has buttons and several actions which enables the tester to view the individual action details or even the entire flow of the test. It can be displayed by clicking View->Toolbars->Action.- Test pane has 2 tabs for viewing the test; Tree view and Expert View- Test details pane has the Active Screen- Data table has Global and Action tabs for assisting in parameterizing the test. - Debug Viewer pane has three tabs for assisting in debugging the tests- Status bar displays the status of the test.Quick Test Pro- Explain the QTP Tool interface- April 30, 2009 at 18:00 PM by Rajmeet Ghai Explain the QTP Tool interface.The QTP tool interface has the following key items: Title bar used to display the name of the opened test. Menu bar used to display the different menu items. Debug toolbar Used for debugging. Enabled only when invoked from view option. Action too bar displayed when an external action is inserted. Test pane used to display the test in a tree view or export view. Data table contains Global and Action tabs for parameterization.

Quick Test Pro - Explain how QTP recognizes Objects in AUT-March 02, 2010 at 04:50 am byVidya Sagar Explain how QTP recognizes Objects in AUT.The objects are recognized through object repository. Object repository file persists the quick test definitions for various applications. While recording the script or test, an entry will be added by quick test at every time interaction. Each object of repository will be identified by a logical name.Quick Test Pro- Explain how QTP recognizes Objects in AUT- April 30, 2009 at 18:00 PM by Rajmeet Ghai Explain how QTP recognizes Objects in AUT.Object is any GUI element the user interacts with. As the user is testing the application, QTP records and stores each item the user interacts with. This is stored in an object repository. Each entry has a logical name and some properties to uniquely identify. Any reference of an object in the script is identified by the logical name. Each line in the quick test script has a reference to the object the user interacted with, a call to the method and parameter if any.Quick Test Pro - Explain the types of Object Repositories in QTP-March 02, 2010 at 04:50 am byVidya Sagar Explain the types of Object Repositories in QTP.QTP supports two types of Object Repository files:1. Shared Repository: The complete application utilizes one Object Repository, which is similar to Global GUI Map file in WinRunner.2. Action Repository: One Object Repository is created for each action, which is similar to GUI map file per test in WinRunner. Quick Test Pro- Explain the types of Object Repositories in QTP- April 30, 2009 at 18:00 PM by Rajmeet Ghai Explain the types of Object Repositories in QTP.All objects recognized by QTP are stored in Object Repository. The object repository can either be local or shared.Local- The objects stored in a local Object repository can be available to specific actions and not all. This is the default repository of QTP. Its extension is .mtrShared- Can be used by a number of Actions and tests. Its extension is .tsrWhen an action is performed, the object is first stored in local unless not preset in shared.

Quick Test Pro - Explain the check points in QTP-March 02, 2010 at 04:50 am byVidya Sagar Explain the check points in QTP.The conditions within the script are checked by using various check points. They are similar to control structures like if, if...else, for, while etc. The results are updated based on the check points.QTP supports 7 types of check points.1. Standard Check point2. Text Check point3. Text Area Check point4. Bit Map Check point5. Accessibility Check Point6. Data Base Check point7. XML Check PointQuick Test Pro- Explain the check points in QTP- April 30, 2009 at 18:00 PM by Rajmeet Ghai Explain the check points in QTP.Checkpoints in QTP allow the tester to verify if the functionalities deliver results as expected. Checkpoints can be inserted into a test or a test component and acts a verification point that compares the specified value of a property with its most recent value. Database checkpoints, image checkpoints, xml checkpoints, table checkpoints are the different types.

Quick Test Pro - What is Parameterizing Tests? -March 02, 2010 at 04:50 am byVidya Sagar What is Parameterizing Tests?Parameterizing tests is referred as replacement of fixed values with parameters, when converting the test into data driven tests.Quick Test Pro- What is Parameterizing Tests? - April 30, 2009 at 18:00 PM by Rajmeet Ghai What is Parameterizing Tests?In QTP, in order to test the same operation with different values, parameters can be passed. When parameters are sepcifed, the fixed values of the test are replaced by the parameters.

Quick Test Pro - What is test object model in QTP?-March 02, 2010 at 04:50 am byVidya Sagar What is test object model in QTP?Test object model is a combination of Test Object and Run object information of the objects that are used in the web application. The objects and their current properties are captured in an application using QTP.Quick Test Pro- What is test object model in QTP?- April 30, 2009 at 18:00 PM by Rajmeet Ghai What is test object model in QTP?A test model is used to represent objects in the application. It comprises of Object types and or classes. An object class is used to identify an object uniquely. It has a unique property and method. On the other hand a test object is created in order to represent actual object. A run time object is the actual object of the application.

Quick Test Pro - Difference between Image check-point and Bit map check point-March 02, 2010 at 04:50 am byVidya Sagar Difference between Image check-point and Bit map check point.A bit map check point need not have image and it goes by the screen area. Whereas in image check-point, an image is needed.Bitmap check point can compare the exact means of the source images with the destination images. It compares the exact image between both builds. Parts of images can also be checked. Where as in image check point, all the values and properties of the image can be checked. Quick Test Pro- Difference between Image check-point and Bit map check point- April 30, 2009 at 18:00 PM by Rajmeet Ghai Difference between Image check-point and Bit map check point.Image checkpoint allows property value like href tags, HTML tags of an image to be checked. It is also used to check the src tag to verify the image source file. Bit map checkpoint is specifically used to check an area of an application after capturing it as a bitmap. Image checkpoints can be used for only Web add-in environment. On the other hand, bit map check point can be used on all environments provided the corresponding add ins are loaded.

uick Test Pro - Explain about the QTP Automation Object Model-March 02, 2010 at 04:50 am byVidya Sagar Explain about the QTP Automation Object Model.Automation Object Model is a collection of objects, methods and properties. This collection is used for performing quick test operations. Any operation described in QTP interface can be performed throughout automation object model.Every option in QTP interface have objects, methods and properties are exposed by Quick Test Automation Object Model along with standard programming elements like control structures.Ex: dim qtAppset qtApp=createobject("QuickTest.Application")qtApp.Launch /*It launches the QTPqtApp.visible= "true" /* Qtp is visible to usqtApp.close /* It closes the QtpQuick Test Pro- Explain about the QTP Automation Object Model- April 30, 2009 at 18:00 PM by Rajmeet Ghai Explain about the QTP Automation Object Model.QTP automation object model can be used to represent configurations through objects, methods and properties. These objects, methods and properties are used to design the automation scripts along with some standard programming loops and conditional statements. Usually, most dialog boxes in QuickTest have a corresponding automation object. Automation scripts help in performing the same task repeatedly or configure quick test pro as per the needs.

What is Unit testing?AnswerUnit testing, also called Component testing is performed by programmers to test that a specified unit of the program meets the expected output when a particular input is provided. Here, the programmer has to know the internal logic and code of the system. It is a way of performing the White box testing. It involves checking that each feature specified in the Component Design is implemented in the components.A Unit in unit testing means a module self contained and by itself. What is Assembly testing?AnswerAssembly testing moves one step ahead of Unit testing. It checks if two or more modules are able to communicate and produce expected results or not. No Unit in the system can perform stand alone activities. The output of one module may be used as input by another, so it is highly important if the related modules are able to connect and produce the desired result. Assembly testing is a way of Black box testing and can be done through the UI. What is Regression testing?AnswerRegression testing is performed to see if the system would work well in case of any enhancements or changes in future. Here, all the scripts are run together to see that others are not effected by a change in one module.What is System Testing?AnswerSystem testing is done to see if the system delivers the required features, functional and non-functional requirements & outputs. It doesnt check each component individually but the whole system is checked as one entity. It is done at developers end. The testing for non-functional requirements includes:a. Performance Testingb. Volume Testingc. Stress Testingd. Documentation Testinge. Robustness TestingWhat is Acceptance Testing?AnswerAcceptance Testing is performed by the client to see if the system delivers what was requested. It looks similar to system testing but the difference is in the focus. Here, the testing is done by Client from his point of view as he is the one who knows the whole process and requirements of his business.What do you mean by V-model in testing?AnswerV-model performs a mapping between the type of test and the stage in project development i.e which test is to be performed at which stage. This has 4 levels of testing the system:1. Unit Testing-performed by system team at first level2. Integration/ Assembly testing-performed by system team or an independent tester3. System Testing- performed by system team4. Acceptance testing-performed by the client.

Testing -May 05, 2009 at 15:10 pm byVidya SagarWhat is difference between SITP and UTP in testing?A test plan that is done at the smallest level or stand alone mode is known as Unit Test Plan. For example, a project is having customer and invoicing modules. So the test on customer module and invoicing module will be done individually. This is Unit Test Plan.Later both customer and invoice is to be tested in one set. To do so, we integrate both into one set and test them. So System Integration Test Plan and Unit Test Plan can be done by using NUNIT. Unit testing is normally done by developers and the system testing is normally done by testing professionals in an integrated mode.Whats the difference between Unit testing, Assembly testing and Regression testing?Unit testing ensures that the program unit meets the requirements which are reliable. Unit testing is normally conducted by the programmer who is supervised by the team lead. Testing the individual unit is the main objective of unit testing. Unit testing follows white box testing style.Assembly testing demonstrates the interaction among modules in a correct, stable and proper manner which was defined in the functional requirements that are provided by the client. Assembly testing follows black box testing style.Regression testing ensures the proper functionality of an application irrespective of changes or enhancements to the system. The testers will run all the scripts in order to ensure that nothing has been affected.What is V model in testing?The mapping of the type of testing to the stage of development in a given project is done by V model. In this model of testing there is a testing stage for every development stage which means a mapping between the development and a testing.