InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What do you understand about output value in the context of UFT? What are the different types of output values present in UFT? |
|
Answer» A step in which an OBJECT property value is RECORDED at a given time in your test and stored in the desired location is known as an output value step. The saved values can be UTILISED as input in a test script at various points. The following are the different TYPES of output values present in UFT:
|
|
| 2. |
Is it feasible to run two UFT instances on the same workstation? If not, please explain why. |
|
Answer» No, we are UNABLE to run two instances of UFT on the same computer. UFT, on the other hand, manages numerous instances of applications that will be evaluated. On the same PC, we can even operate on two distinct apps without interrupting UFT recording. To do so, you'll need to change a few UFT configuration parameters. From Automation -> Record and Run settings -> choose, select the option "Record and Run on any opened APPLICATION." UFT, for EXAMPLE, can WORK in several windows of the Internet Explorer browser. |
|
| 3. |
What are the possible types of errors that one can encounter in UFT? |
|
Answer» Following are the different types of errors that ONE can encounter in UFT:
|
|
| 4. |
What do you understand about the synchronization point in the context of UFT? What are the different ways in which you can insert a synchronization point in UFT? |
|
Answer» The timing interface between the TOOL and the Application under TEST is known as the synchronization point. Synchronization point is a feature that allows you to set the time delay between TWO test script phases. For example, clicking on a link may take 1 second to load the website, 5 seconds, or even 10 seconds to load completely. The response time of the application server, network bandwidth, and client system capabilities are all issues to consider. The script will fail if the time varies unless the tester manages the time discrepancies intelligently. Following are the different ways of inserting a synchronization point in UFT:
|
|
| 5. |
How do you close the second browser that has been opened using UFT? |
|
Answer» The "creation time" feature can be used to DETERMINE which BROWSER INSTANCE was opened after another. This is nothing more than a counter for each browser instance that is launched. It starts at 0 for the FIRST one and goes up from there. You can use the following code to close the second browser that has been opened: Browser("creationtime:=1").Close |
|
| 6. |
What is the QTP Local Repository's extension? What does the .mtr extension stand for? |
|
Answer» The extension for a local repository in QTP is .BDB. The .mtr file is a BINARY file that provides information about checkpoints and other THINGS. To double-check that the .bdb file is a local object repository, rename it with the extension .tsr and open it in Object Repository Management (ORM). The same OBJECTS that appear in the Object Repository will appear here. If you try the same thing with a .mtr file, it will not work. |
|
| 7. |
What do you understand about GetRoProperty, SetToProperty and GetToProperty in the context of UFT? |
|
Answer» GetRoProperty: GetRoProperty is a built-in method for retrieving the object property's runtime value. There are four steps to using the GetRoProperty method.
SetToProperty and GetToProperty: SetToProperty and GetToProperty are two methods for changing a property's value.
|
|
| 8. |
What do you understand by data tables in the context of UFT? Explain the different types of data tables. Describe some of the data table object methods. |
|||||||||||||||||||||||||||||||||||||||
|
Answer» A DataTable, like MS Excel, aids TESTERS in the creation of data-driven TEST scenarios that may be used to repeat an Action. Datatables are divided into two categories:
The data sheet can be found under QTP's "Data" TAB, as seen below. The following table lists some of the data table object methods:
|
||||||||||||||||||||||||||||||||||||||||
| 9. |
How can you run numerous QTP scripts at the same time? |
|
Answer» Using the TestBatchRunner TOOL, we may RUN NUMEROUS QTP scripts at once. |
|
| 10. |
What do you understand about actions in the context of UFT? How can you import an action into a test? |
|
Answer» In UFT, your test will be divided into "logical units" or "Business Processes" with the help of ACTIONS. Actions aid in the creation of a more modular and efficient script. When a script is first written, it just has one ACTION. However, depending on your needs, you can add more Actions to your Micro Focus UFT Script. Actions are divided into two categories:
Importing Actions into a Test can be done in two ways:
|
|
| 11. |
What do you understand about descriptive programming in the context of UFT? What are the different types of descriptive programming? Explain. |
|
Answer» Descriptive programming is used to perform operations on an AUT object whose definition isn't recorded in the Object Repository. You can use this approach to skip the Object Repository and provide the Object DESCRIPTION DIRECTLY in the statement. An object name is merely a way to LINK a scripted item to its description in a repository. The script should run even if the object name in your script and object repository is changed. Following are the different types of descriptive programming: Static Descriptive Programming: In the Static Method, you specify an object's ATTRIBUTE in the following PATTERN for object identification. property:=values,This format is known as a property value pair, and it is delimited by inverted commas. If your object has many descriptions for identification, use commas to separate them. Dynamic Descriptive Programming: The second way to accomplish the same goal is to use Dynamic Descriptive Programming. It will be highly tedious to specify all the property value pairs for each sentence if your script uses the descriptive programming object candidate several times. In such instances, you might take advantage of QTP's Description Class. A description object's syntax is as follows: Set MyDescription = Description.Create();MyDescription("property").Value = "property-value"; |
|
| 12. |
What do you understand about checkpoints in the context of UFT? Explain the different types of checkpoints available in UFT. |
|
Answer» In UFT, a checkpoint is a point where the CURRENT value of an OBJECT's specified properties is compared to the intended value. If the present and predicted values are equal, the status is PASS; otherwise, the status is FAIL. Following are the different types of checkpoints available in UFT:
|
|
| 13. |
What are the features of UFT? |
|
Answer» UFT has a lot of functionality, but it's also quite straightforward to understand and train employees on. The following are a few excellent features that offer a lot of value to scripting:
|
|
| 14. |
What are the advantages of using UFT as an automation tool for testing? |
|
Answer» Following are the advantages of using UFT as an automation tool for testing:
|
|