UFT Interview Questions together with Answers
1) What is UFT?
HP Unified Functional Testing (UFT) software, formerly known equally HP Quick Test Professional (QTP) provides functional together with regression seek automation for software applications together with environments. HP Unified Functional Testing tin ship away live on used for corporation character assurance.
HP Unified Functional Testing supports keyword together with scripting interfaces together with features a graphical user interface. It uses the Visual Basic Scripting Edition (VBScript) scripting linguistic communication to specify a seek procedure, together with to manipulate the objects together with controls of the application nether test.
2) What is the latest version of UFT available inwards the market?
Unified Functional Testing 12.02
3) What is Environment Variable inwards UFT together with why to occupation it?
Environment variables are global variables inwards UFT together with they are used to shop the global values similar User Id, password of the Application.
4) How many types of Test Recording modes inwards the UFT?
The UFT enable us amongst Four type of recording modes:
Normal (Default recording mode) Recording: In this recording way QTP position the object irrespective of their location on the screen. It is done past times recording object based on application window.
Analog Recording: it is used when exact mouse motility together with activity performed past times mouse is important. Used inwards testing the pigment application together with signature made amongst the assistance of mouse.
Low Level Recording: it helps inwards identifying those objects which is non recognized past times the QTP. It is used when the location of object is changing within the screen.
Insight Recording:
5) What types of License is available for UFT?
• Seat License: It is a machine locked license. This license tin ship away live on used solely for a machine it was generated.
• Floating License: It tin ship away live on used on whatsoever machine which has network access to the floating license server. At whatsoever betoken inwards fourth dimension the machines using the QTP license cannot transcend maximum license count on the server.
6) What is the occupation of object spy tool inwards UFT?
UFT provides 1 tool called object spy that tin ship away live on used to discovery out the properties together with the values of the object inwards UFT.
7) What are the types of mistake demand to live on handgrip inwards UFT?
There are iii types of mistake that 1 volition confront inwards UFT
• Syntax Errors
• Logical Errors
• Runtime Errors
8) what are the ways yous tin ship away handgrip run fourth dimension errors?
There are diverse ways to handgrip run fourth dimension errors, they are:
• Using seek settings
• Using on mistake statement
• Using err Object
• Using Exit Statement
• Recovery Scenarios
• Report Object
9) What is the departure betwixt snuff it activity together with snuff it iteration?
Exit activity is used when nosotros desire to snuff it from a exceptional action, spell snuff it iteration is used to snuff it from a exceptional activity iteration of an action.
10) What are the loops available inwards UFT together with what they do?
There are 4 loops available inwards VBScript for UFT?
• For...Next: For Next Loop volition execute a serial of statements until a specific counter value
• While...Wend Loop: While Wend Loop is used to execute a serial of statements equally long equally given status is true.
• Do...Loop: Do Loop volition run a block of statements repeatedly
• For Each...Next: In gild to execute a serial of statements for each statements for each object inwards collection “For Each Loop” is used
11) How volition yous telephone outcry upwards from 1 activity to to a greater extent than or less other action?
We tin ship away telephone outcry upwards an activity inwards 2 ways,
• Call to re-create of Action. - In this, the Action Object Repository, Script together with Datable volition live on copied to the goal Test Script.
• Call to Existing Action. - In this, ObjectRepository, Script together with Data tabular array volition NOT live on copied only a telephone outcry upwards (reference) would live on made to the Action inwards the root script.
12) What are Virtual Objects?
Your application may comprise objects that bear similar measure objects only are non recognized past times QTP. You tin ship away define these objects equally virtual objects together with map them to measure classes, such equally a push clit or a banking concern check box. QTP emulates the user's activity on the virtual object during the run session. In the seek results, the virtual object is displayed equally though it is a measure cast object.
13) How to perform Cross platform testing together with Cross browser testing using UFT? Can u explicate giving to a greater extent than or less example?
You volition demand to exercise divide Actions which get got aid of dissimilar OS together with Browsers
• Cross Platform Testing: Using the Built inwards Environment Variable yous tin ship away dig upwards the OS information.E.g. Platform = Environment ("OS"). Then based on the Platform yous demand to telephone outcry upwards the actions which yous recorded on that exceptional platform.
• Cross Browser Testing: Using this code e.g.Browser ("Core Values").GetROProperty("version") yous tin ship away extract the Browser together with its corresponding version. Ex: Internet Explorer half dozen or Netscape 5. Based on this value yous telephone outcry upwards the actions which are relevant to that browser.
14) What is descriptive programming?
• Typically, an object together with its properties must live on recorded inwards the Object Repository to enable QTP to perform activity second on it.
• Using descriptive programming, yous exercise non shop the object together with its holding values inwards the Object repository only elevate the holding value duo straight inwards the script.
• The thought behind descriptive programming is non bypass the object repository only assistance recognize dynamic objects.
15) What are the properties yous would occupation for identifying a browser & page when using descriptive programming?
You tin ship away occupation the call property
Ex: Browser ("name: ="xxx"").page ("name: ="xxxx"").....
OR
We tin ship away also occupation the holding "micClass".
Ex: Browser ("micClass: =browser").page ("micClass: =page")....
16) Explain the keyword CreateObject amongst an example?
Creates together with returns a reference to an Automation object
SYNTAX: CreateObject (servername.typename [, location])
Arguments:
Servername: Required. The call of the application providing the object.
Typename: Required. The type or cast of the object to create.
Location: Optional. The call of the network server where the object is to live on created.
Example: Set IE = CreateObject ("InternetExplorer.Application")
17) Can yous switch betwixt Per-Action together with Shared Object Repository? If yes how?
Yes .We tin ship away switch. Go to Test--->Settings--->Resources. Here yous get got an pick to direct repositories.
18) What is Object Spy? How to Use it?
• Object Spy helps inwards determining the run & seek fourth dimension object properties & methods of the application nether test.
• You tin ship away access object spy straight from the toolbar or from the Object Repository Dialog Box.
• It is really useful during Descriptive Programming
19) What is the occupation of Text output value inwards QTP?
Text Output values enable yous to capture text appearing on the application nether seek during run-time.
If parameterized, text output values volition capture values appearing inwards each iteration which would live on stored inwards the run-time information tabular array for farther analysis.
20) What is Step Generator?
Step Generator enables us to Add Test Steps inwards your script. Using pace generator yous tin ship away add together steps to your script without genuinely recording it.
21) What is Test Fusion Report?
• Test Fusion Report, displays all aspects of a seek run together with is organized inwards a Tree format.
• It gives details of each pace executed for all iterations.
• It also gives Run-time information table, Screen shots together with painting of the seek run if opted.
22) Explain the Checkpoints inwards UFT?The weather condition within the script are checked past times using diverse banking concern check points. They are similar to command structures similar if, if…else, for, spell etc. The results are updated based on the banking concern check points. Checkpoints inwards QTP allow the tester to verify if the functionalities deliver results equally expected. Checkpoints tin ship away live on inserted into a seek or a seek factor together with acts a verification betoken that COMPARES the specified value of a holding amongst its virtually recent value.
UFT supports 12 types of checkpoints:
• Standard Checkpoint
• Text Checkpoint
• Text Area Checkpoint
• Bit Map Checkpoint
• Accessibility Checkpoint
• Database Checkpoint
• XML Checkpoint (From Resource)
• XML Checkpoint (From Application)
• File Content Checkpoint
• Page Checkpoint
• Image Checkpoint
• Table Checkpoint
23) What is the Difference betwixt Bitmap Check betoken & Image Check point?
Bitmap checkpoint does a pixel to pixel comparing of an icon or portion of an image.
Image checkpoint does exercise a pixel to pixel comparing only instead COMPARE icon properties similar alt text, goal URL etc.
24) What factors touching bitmap checkpoints?
Bitmap checkpoints are affected past times concealment resolution together with icon size.
25) What is File Content Checkpoint inwards UFT?As the call say "File Content" Checkpoint are used to banking concern check the contents of the file. The next file contents tin ship away live on checked using this banking concern check point
• PDF Files
• RFT Files
• WinWord Files
• Text Files
• HTML Files
26) What is Parameter & why parametrization?
A parameter is a variable that is assigned a value from an external information root at run time. We occupation parameterization when nosotros desire to alter the value of properties at run time. It replaces a recorded input value inwards the script. The physical care for past times which the compass of a basic seek is expanded past times replacing fixed values amongst Parameters is known equally Parameterization. It greatly increases the might together with flexibility of tests.
Why Parameterization
• To seek boundary conditions.
• To seek expert information together with "bad" data.
27) Why exercise nosotros occupation breakpoints inwards UFT?
This is to halt the execution of your seek at a for sure betoken spell it’s running. Typically it is used to discovery the state of your application or to sympathise how a for sure characteristic plant at a for sure stage at runtime.
28) What is reusable action?
An activity that tin ship away live on called multiple times within or exterior the same seek is called reusable action. By default all actions are reusable.
29) How to give telephone outcry upwards to to a greater extent than or less other activity from 1 action?
Calling 1 activity from the other tin ship away live on done past times “Inserting a call” to an existing activity or past times creating a novel action.
30) What are the types of Automation Framework inwards UFT?
In gild to ease the physical care for of seek automation using UFT, seek automation is designed. There are mainly iii types of automation frameworks inwards UFT
• Keyword Driven Framework: It is used when multiple functionality needs to live on tested.
• Data Driven Framework: It is used to seek same menstruation amongst dissimilar seek data, seek information is given to a greater extent than importance than multiple functionality of application
• Hybrid Framework: It is a combination of information driven framework together with keyword.
31) Hybrid framework supports Descriptive programming. Is it true?
Yes. Frameworks are generally based on how together with where yous desire your seek assets to live on placed together with how they are to live on accessed for maximum efficiency. They exercise non limit how yous write yous seek itself.
32) What are the advantages of Hybrid framework?
Hybrid framework is zero only a combination of frameworks that brand yous become inwards at a solution for your testing needs past times taking what plant best for your scenario. The obvious payoff is the versatility. It tin ship away live on tailored to run across whatsoever testing project’s need.
33) What is a Run-Time Data Table? Where tin ship away I discovery together with persuasion this table?
Data similar parametrized output, checkpoint values,and output values are stored inwards the Run-time Table. It is an xls file which is stored inwards the Test Results Folder. It tin ship away also live on accessed inwards the Test Fusion Report.
34) What is the departure betwixt banking concern check betoken together with output value?
Check betoken is a verification betoken that COMPARES a electrical flow value for a specified holding amongst the expected value for that property. Based on this comparison, it volition generate a PASS or FAIL status.
An output value is a value captured during the seek run together with tin ship away live on stored inwards a specified location similar the Datable or fifty-fifty a variable. Unlike Checkpoints, no PASS/FAIL status is generated.
35) What is GetRoProperty?
GetRoProperty is a measure method provided past times UFT to fetch holding values of a run -time object.
36) What is “SetToProperty” together with when to occupation it inwards UFT?
Settoproperty stands for laid seek object property. You tin ship away occupation this holding to alter the object values at runtime. You tin ship away edit the holding values during the runtime, only the changes that are made are temporary.
37) In UFT how yous tin ship away forbid the organisation from getting locked?
To forbid organisation getting locked, whatsoever of the ii ways tin ship away live on used
Create a uncomplicated vbs file having code to press numlock telephone substitution together with run that vbs file
Edit 1 registry telephone substitution “DisableLockWorkstation =1” to disable locking
38) What is descriptive programming inwards UFT means?
Descriptive programming includes holding call together with holding value. Whenever UFT is facing difficulty inwards identifying objects from object repository, together with instead the object is straight identified from the script is known equally descriptive programming.
39) In UFT explicate the departure betwixt qfl together with vbs files?
• qfl is quick seek portion library file spell vbs is Microsoft’s vbscript
• qfl is a non-executable file spell vbs is an executable file
• To occupation file inwards UFT associate qfl file from seek setting, spell to include vbs file occupation “execute file statement”
40) How to exercise TSR file inwards UFT?
TSR way Test Shared Repository, it is created to part object repository.
To exercise TSR file, follow the steps
• Open object repository
• Go to file menu
• Go to export local objects pick together with select it
After that, UFT volition enquire yous to shop .tsr file. Give the path together with save. This volition exercise .tsr file inwards UFT
41) How to connect to QC inwards UFT?
To connect amongst QC, UFT provides the pick to connect QC straight from UFT GUI.
• Go to file menu
• Select (QC) character centre
• You volition live on asked to - Enter QC URL
• Enter user id, password together with project
Following higher upwards steps volition allow yous to connect amongst QC, afterward on yous tin ship away execute the tests from QC itself.
42) What is circular portion inwards UFT?
Round portion inwards UFT is used to circular the decimal
For example:
Mydecimal = 6.3433333
Roundedvalue= Round (Mydecimal, 3)
Print roundedvalue, it volition impress 6.343
43) How to discovery the total disclose of rows inwards the spider web tabular array inwards UFT?
There are iii ways which nosotros tin ship away discovery the count of rows inwards the tabular array inwards UFT
• Using row countproperty of UFT spider web tabular array object
• Using GetROProperty of UFT
• Using HTML DOM + UFT
44) Explain inwards what ways nosotros tin ship away export information tabular array to excel inwards UFT?
To export data-table to excel, at that topographic point are ii methods.
• DataTable.Export (“C:\export.xls”)
• DataTable.ExportSheet “C:\mysheet.xls” (If excel file does non exist, novel file is created)
45) In information tabular array canvas inwards UFT, how to read a value from the cell?
To read a value from the cell, nosotros follow 2 pace process
• We laid the row pointer inwards starting fourth dimension step
• In bit pace nosotros define the parameter/column call from the canvas to read.
• Example: For this example, nosotros get got laid the row pointer to 2 inwards transaction sheet
Datatable.GetSheet (“Transactions”).SetCurrentRow (2)
Now, nosotros get got to specify that nosotros desire to read a value from the module_name column from the transaction sheet
Print datatable.Value (“Module_Name, “Transactions”)
46) What are ordinal identifiers inwards UFT/ QTP?
The next are called Ordinal Identifiers inwards QTP / UFT
• Index
• Creation time
• Location
47) What are surroundings variables inwards UFT/QTP?
Environment Variables are similar to that of Global Variables when COMPARED to traditional programming languages similar "C".Environment Variable Names are illustration sensitive
Values of the Environment Variables tin ship away live on accessible to all the Actions or functions or Tests together with API using uncomplicated call
Syntax:
Environment ("EnvironmentVariableName") = "Value"
48) What are the dissimilar types of surroundings variables?
We get got ii type of Environment Variables
• Built In
• User Defined
• User Defined - Internal
• User Defined – External
Built In Environment variables are predefined variables defined past times QTP/UFT. Example of these variables are:
Msgbox Environment ("OS")
Msgbox Environment ("LocalHostName")
User tin ship away also exercise custom surroundings variables apart from the built-in surroundings variables. These variables are called User-defined Environment variables.Calling user defined variable is no dissimilar from built inwards surroundings variables.
Example: Msgbox Environment("ProjectName")
49) What is AOM (Automation Object Model)?
• You tin ship away occupation UFT Object Model to write programs that automate your UFT operations. The UFT Automation Object Model provides objects, methods, together with properties that enable yous to command UFT from to a greater extent than or less other application.
• You tin ship away forthwith command virtually every UFT characteristic together with capability using the objects, methods together with properties included inwards the UFT Automation Object Model.
• You tin ship away write an automation script to run a selected batch of tests. For each test, yous tin ship away recollect the associated add-ins list. Then, if the necessary add-ins are non already loaded, yous tin ship away closed UFT, charge the necessary add-ins, reopen UFT together with run the test.
• You tin ship away define your settings for a seek inwards UFT together with thus click “Generate Script” inwards the Generate tab of the Test Settings dialog box to generate an automation script based on the electrical flow seek settings. You tin ship away together with thus apply those same settings automatically to multiple tests using the whole automation script or excerpts from the generated file.
50) How to handgrip exceptions inwards UFT?
In UFT Exceptional treatment is done past times using -
• Recovery Scenarios
• Using “On Error” statement
In Recovery scenario yous get got to define -
• Triggered Events
• Recovery steps
• Post Recovery Test-Run
At Script Level yous tin ship away occupation the On Error Resume Next together with On Error Go to 0 statements.
51) What is a recovery scenario?
Recovery Scenario volition live on used inwards Recovering from Known Errors at Unknown intervals
The Following are the iv Recovery Trigger Events
• Popup Window
• Object State
• Test Run Error
• Application Crash
Recovery Scenario volition activate in 1 trial an mistake has occurred together with after mistake occurs Recovery Scenario volition trigger together with execute the Recovery activity. After Recovery Activity is completed, Post Recovery scenario volition Occurs.
The next are post Recovery Scenario Operations
• Repeat Current Step together with Continue
• Proceed to adjacent Step
• Proceed to Next Action Iteration
• Proceed to Next seek Iteration
• Restart Current Test Run
• Stop the seek run
Sumber http://www.gcreddy.com/
1) What is UFT?
HP Unified Functional Testing (UFT) software, formerly known equally HP Quick Test Professional (QTP) provides functional together with regression seek automation for software applications together with environments. HP Unified Functional Testing tin ship away live on used for corporation character assurance.
HP Unified Functional Testing supports keyword together with scripting interfaces together with features a graphical user interface. It uses the Visual Basic Scripting Edition (VBScript) scripting linguistic communication to specify a seek procedure, together with to manipulate the objects together with controls of the application nether test.
2) What is the latest version of UFT available inwards the market?
Unified Functional Testing 12.02
3) What is Environment Variable inwards UFT together with why to occupation it?
Environment variables are global variables inwards UFT together with they are used to shop the global values similar User Id, password of the Application.
4) How many types of Test Recording modes inwards the UFT?
The UFT enable us amongst Four type of recording modes:
Normal (Default recording mode) Recording: In this recording way QTP position the object irrespective of their location on the screen. It is done past times recording object based on application window.
Analog Recording: it is used when exact mouse motility together with activity performed past times mouse is important. Used inwards testing the pigment application together with signature made amongst the assistance of mouse.
Low Level Recording: it helps inwards identifying those objects which is non recognized past times the QTP. It is used when the location of object is changing within the screen.
Insight Recording:
5) What types of License is available for UFT?
• Seat License: It is a machine locked license. This license tin ship away live on used solely for a machine it was generated.
• Floating License: It tin ship away live on used on whatsoever machine which has network access to the floating license server. At whatsoever betoken inwards fourth dimension the machines using the QTP license cannot transcend maximum license count on the server.
6) What is the occupation of object spy tool inwards UFT?
UFT provides 1 tool called object spy that tin ship away live on used to discovery out the properties together with the values of the object inwards UFT.
7) What are the types of mistake demand to live on handgrip inwards UFT?
There are iii types of mistake that 1 volition confront inwards UFT
• Syntax Errors
• Logical Errors
• Runtime Errors
8) what are the ways yous tin ship away handgrip run fourth dimension errors?
There are diverse ways to handgrip run fourth dimension errors, they are:
• Using seek settings
• Using on mistake statement
• Using err Object
• Using Exit Statement
• Recovery Scenarios
• Report Object
9) What is the departure betwixt snuff it activity together with snuff it iteration?
Exit activity is used when nosotros desire to snuff it from a exceptional action, spell snuff it iteration is used to snuff it from a exceptional activity iteration of an action.
10) What are the loops available inwards UFT together with what they do?
There are 4 loops available inwards VBScript for UFT?
• For...Next: For Next Loop volition execute a serial of statements until a specific counter value
• While...Wend Loop: While Wend Loop is used to execute a serial of statements equally long equally given status is true.
• Do...Loop: Do Loop volition run a block of statements repeatedly
• For Each...Next: In gild to execute a serial of statements for each statements for each object inwards collection “For Each Loop” is used
11) How volition yous telephone outcry upwards from 1 activity to to a greater extent than or less other action?
We tin ship away telephone outcry upwards an activity inwards 2 ways,
• Call to re-create of Action. - In this, the Action Object Repository, Script together with Datable volition live on copied to the goal Test Script.
• Call to Existing Action. - In this, ObjectRepository, Script together with Data tabular array volition NOT live on copied only a telephone outcry upwards (reference) would live on made to the Action inwards the root script.
12) What are Virtual Objects?
Your application may comprise objects that bear similar measure objects only are non recognized past times QTP. You tin ship away define these objects equally virtual objects together with map them to measure classes, such equally a push clit or a banking concern check box. QTP emulates the user's activity on the virtual object during the run session. In the seek results, the virtual object is displayed equally though it is a measure cast object.
13) How to perform Cross platform testing together with Cross browser testing using UFT? Can u explicate giving to a greater extent than or less example?
You volition demand to exercise divide Actions which get got aid of dissimilar OS together with Browsers
• Cross Platform Testing: Using the Built inwards Environment Variable yous tin ship away dig upwards the OS information.E.g. Platform = Environment ("OS"). Then based on the Platform yous demand to telephone outcry upwards the actions which yous recorded on that exceptional platform.
• Cross Browser Testing: Using this code e.g.Browser ("Core Values").GetROProperty("version") yous tin ship away extract the Browser together with its corresponding version. Ex: Internet Explorer half dozen or Netscape 5. Based on this value yous telephone outcry upwards the actions which are relevant to that browser.
14) What is descriptive programming?
• Typically, an object together with its properties must live on recorded inwards the Object Repository to enable QTP to perform activity second on it.
• Using descriptive programming, yous exercise non shop the object together with its holding values inwards the Object repository only elevate the holding value duo straight inwards the script.
• The thought behind descriptive programming is non bypass the object repository only assistance recognize dynamic objects.
15) What are the properties yous would occupation for identifying a browser & page when using descriptive programming?
You tin ship away occupation the call property
Ex: Browser ("name: ="xxx"").page ("name: ="xxxx"").....
OR
We tin ship away also occupation the holding "micClass".
Ex: Browser ("micClass: =browser").page ("micClass: =page")....
16) Explain the keyword CreateObject amongst an example?
Creates together with returns a reference to an Automation object
SYNTAX: CreateObject (servername.typename [, location])
Arguments:
Servername: Required. The call of the application providing the object.
Typename: Required. The type or cast of the object to create.
Location: Optional. The call of the network server where the object is to live on created.
Example: Set IE = CreateObject ("InternetExplorer.Application")
17) Can yous switch betwixt Per-Action together with Shared Object Repository? If yes how?
Yes .We tin ship away switch. Go to Test--->Settings--->Resources. Here yous get got an pick to direct repositories.
18) What is Object Spy? How to Use it?
• Object Spy helps inwards determining the run & seek fourth dimension object properties & methods of the application nether test.
• You tin ship away access object spy straight from the toolbar or from the Object Repository Dialog Box.
• It is really useful during Descriptive Programming
19) What is the occupation of Text output value inwards QTP?
Text Output values enable yous to capture text appearing on the application nether seek during run-time.
If parameterized, text output values volition capture values appearing inwards each iteration which would live on stored inwards the run-time information tabular array for farther analysis.
20) What is Step Generator?
Step Generator enables us to Add Test Steps inwards your script. Using pace generator yous tin ship away add together steps to your script without genuinely recording it.
21) What is Test Fusion Report?
• Test Fusion Report, displays all aspects of a seek run together with is organized inwards a Tree format.
• It gives details of each pace executed for all iterations.
• It also gives Run-time information table, Screen shots together with painting of the seek run if opted.
22) Explain the Checkpoints inwards UFT?The weather condition within the script are checked past times using diverse banking concern check points. They are similar to command structures similar if, if…else, for, spell etc. The results are updated based on the banking concern check points. Checkpoints inwards QTP allow the tester to verify if the functionalities deliver results equally expected. Checkpoints tin ship away live on inserted into a seek or a seek factor together with acts a verification betoken that COMPARES the specified value of a holding amongst its virtually recent value.
UFT supports 12 types of checkpoints:
• Standard Checkpoint
• Text Checkpoint
• Text Area Checkpoint
• Bit Map Checkpoint
• Accessibility Checkpoint
• Database Checkpoint
• XML Checkpoint (From Resource)
• XML Checkpoint (From Application)
• File Content Checkpoint
• Page Checkpoint
• Image Checkpoint
• Table Checkpoint
23) What is the Difference betwixt Bitmap Check betoken & Image Check point?
Bitmap checkpoint does a pixel to pixel comparing of an icon or portion of an image.
Image checkpoint does exercise a pixel to pixel comparing only instead COMPARE icon properties similar alt text, goal URL etc.
24) What factors touching bitmap checkpoints?
Bitmap checkpoints are affected past times concealment resolution together with icon size.
25) What is File Content Checkpoint inwards UFT?As the call say "File Content" Checkpoint are used to banking concern check the contents of the file. The next file contents tin ship away live on checked using this banking concern check point
• PDF Files
• RFT Files
• WinWord Files
• Text Files
• HTML Files
26) What is Parameter & why parametrization?
A parameter is a variable that is assigned a value from an external information root at run time. We occupation parameterization when nosotros desire to alter the value of properties at run time. It replaces a recorded input value inwards the script. The physical care for past times which the compass of a basic seek is expanded past times replacing fixed values amongst Parameters is known equally Parameterization. It greatly increases the might together with flexibility of tests.
Why Parameterization
• To seek boundary conditions.
• To seek expert information together with "bad" data.
27) Why exercise nosotros occupation breakpoints inwards UFT?
This is to halt the execution of your seek at a for sure betoken spell it’s running. Typically it is used to discovery the state of your application or to sympathise how a for sure characteristic plant at a for sure stage at runtime.
28) What is reusable action?
An activity that tin ship away live on called multiple times within or exterior the same seek is called reusable action. By default all actions are reusable.
29) How to give telephone outcry upwards to to a greater extent than or less other activity from 1 action?
Calling 1 activity from the other tin ship away live on done past times “Inserting a call” to an existing activity or past times creating a novel action.
30) What are the types of Automation Framework inwards UFT?
In gild to ease the physical care for of seek automation using UFT, seek automation is designed. There are mainly iii types of automation frameworks inwards UFT
• Keyword Driven Framework: It is used when multiple functionality needs to live on tested.
• Data Driven Framework: It is used to seek same menstruation amongst dissimilar seek data, seek information is given to a greater extent than importance than multiple functionality of application
• Hybrid Framework: It is a combination of information driven framework together with keyword.
31) Hybrid framework supports Descriptive programming. Is it true?
Yes. Frameworks are generally based on how together with where yous desire your seek assets to live on placed together with how they are to live on accessed for maximum efficiency. They exercise non limit how yous write yous seek itself.
32) What are the advantages of Hybrid framework?
Hybrid framework is zero only a combination of frameworks that brand yous become inwards at a solution for your testing needs past times taking what plant best for your scenario. The obvious payoff is the versatility. It tin ship away live on tailored to run across whatsoever testing project’s need.
33) What is a Run-Time Data Table? Where tin ship away I discovery together with persuasion this table?
Data similar parametrized output, checkpoint values,and output values are stored inwards the Run-time Table. It is an xls file which is stored inwards the Test Results Folder. It tin ship away also live on accessed inwards the Test Fusion Report.
34) What is the departure betwixt banking concern check betoken together with output value?
Check betoken is a verification betoken that COMPARES a electrical flow value for a specified holding amongst the expected value for that property. Based on this comparison, it volition generate a PASS or FAIL status.
An output value is a value captured during the seek run together with tin ship away live on stored inwards a specified location similar the Datable or fifty-fifty a variable. Unlike Checkpoints, no PASS/FAIL status is generated.
35) What is GetRoProperty?
GetRoProperty is a measure method provided past times UFT to fetch holding values of a run -time object.
36) What is “SetToProperty” together with when to occupation it inwards UFT?
Settoproperty stands for laid seek object property. You tin ship away occupation this holding to alter the object values at runtime. You tin ship away edit the holding values during the runtime, only the changes that are made are temporary.
37) In UFT how yous tin ship away forbid the organisation from getting locked?
To forbid organisation getting locked, whatsoever of the ii ways tin ship away live on used
Create a uncomplicated vbs file having code to press numlock telephone substitution together with run that vbs file
Edit 1 registry telephone substitution “DisableLockWorkstation =1” to disable locking
38) What is descriptive programming inwards UFT means?
Descriptive programming includes holding call together with holding value. Whenever UFT is facing difficulty inwards identifying objects from object repository, together with instead the object is straight identified from the script is known equally descriptive programming.
39) In UFT explicate the departure betwixt qfl together with vbs files?
• qfl is quick seek portion library file spell vbs is Microsoft’s vbscript
• qfl is a non-executable file spell vbs is an executable file
• To occupation file inwards UFT associate qfl file from seek setting, spell to include vbs file occupation “execute file statement”
40) How to exercise TSR file inwards UFT?
TSR way Test Shared Repository, it is created to part object repository.
To exercise TSR file, follow the steps
• Open object repository
• Go to file menu
• Go to export local objects pick together with select it
After that, UFT volition enquire yous to shop .tsr file. Give the path together with save. This volition exercise .tsr file inwards UFT
41) How to connect to QC inwards UFT?
To connect amongst QC, UFT provides the pick to connect QC straight from UFT GUI.
• Go to file menu
• Select (QC) character centre
• You volition live on asked to - Enter QC URL
• Enter user id, password together with project
Following higher upwards steps volition allow yous to connect amongst QC, afterward on yous tin ship away execute the tests from QC itself.
42) What is circular portion inwards UFT?
Round portion inwards UFT is used to circular the decimal
For example:
Mydecimal = 6.3433333
Roundedvalue= Round (Mydecimal, 3)
Print roundedvalue, it volition impress 6.343
43) How to discovery the total disclose of rows inwards the spider web tabular array inwards UFT?
There are iii ways which nosotros tin ship away discovery the count of rows inwards the tabular array inwards UFT
• Using row countproperty of UFT spider web tabular array object
• Using GetROProperty of UFT
• Using HTML DOM + UFT
44) Explain inwards what ways nosotros tin ship away export information tabular array to excel inwards UFT?
To export data-table to excel, at that topographic point are ii methods.
• DataTable.Export (“C:\export.xls”)
• DataTable.ExportSheet “C:\mysheet.xls” (If excel file does non exist, novel file is created)
45) In information tabular array canvas inwards UFT, how to read a value from the cell?
To read a value from the cell, nosotros follow 2 pace process
• We laid the row pointer inwards starting fourth dimension step
• In bit pace nosotros define the parameter/column call from the canvas to read.
• Example: For this example, nosotros get got laid the row pointer to 2 inwards transaction sheet
Datatable.GetSheet (“Transactions”).SetCurrentRow (2)
Now, nosotros get got to specify that nosotros desire to read a value from the module_name column from the transaction sheet
Print datatable.Value (“Module_Name, “Transactions”)
46) What are ordinal identifiers inwards UFT/ QTP?
The next are called Ordinal Identifiers inwards QTP / UFT
• Index
• Creation time
• Location
47) What are surroundings variables inwards UFT/QTP?
Environment Variables are similar to that of Global Variables when COMPARED to traditional programming languages similar "C".Environment Variable Names are illustration sensitive
Values of the Environment Variables tin ship away live on accessible to all the Actions or functions or Tests together with API using uncomplicated call
Syntax:
Environment ("EnvironmentVariableName") = "Value"
48) What are the dissimilar types of surroundings variables?
We get got ii type of Environment Variables
• Built In
• User Defined
• User Defined - Internal
• User Defined – External
Built In Environment variables are predefined variables defined past times QTP/UFT. Example of these variables are:
Msgbox Environment ("OS")
Msgbox Environment ("LocalHostName")
User tin ship away also exercise custom surroundings variables apart from the built-in surroundings variables. These variables are called User-defined Environment variables.Calling user defined variable is no dissimilar from built inwards surroundings variables.
Example: Msgbox Environment("ProjectName")
49) What is AOM (Automation Object Model)?
• You tin ship away occupation UFT Object Model to write programs that automate your UFT operations. The UFT Automation Object Model provides objects, methods, together with properties that enable yous to command UFT from to a greater extent than or less other application.
• You tin ship away forthwith command virtually every UFT characteristic together with capability using the objects, methods together with properties included inwards the UFT Automation Object Model.
• You tin ship away write an automation script to run a selected batch of tests. For each test, yous tin ship away recollect the associated add-ins list. Then, if the necessary add-ins are non already loaded, yous tin ship away closed UFT, charge the necessary add-ins, reopen UFT together with run the test.
• You tin ship away define your settings for a seek inwards UFT together with thus click “Generate Script” inwards the Generate tab of the Test Settings dialog box to generate an automation script based on the electrical flow seek settings. You tin ship away together with thus apply those same settings automatically to multiple tests using the whole automation script or excerpts from the generated file.
50) How to handgrip exceptions inwards UFT?
In UFT Exceptional treatment is done past times using -
• Recovery Scenarios
• Using “On Error” statement
In Recovery scenario yous get got to define -
• Triggered Events
• Recovery steps
• Post Recovery Test-Run
At Script Level yous tin ship away occupation the On Error Resume Next together with On Error Go to 0 statements.
51) What is a recovery scenario?
Recovery Scenario volition live on used inwards Recovering from Known Errors at Unknown intervals
The Following are the iv Recovery Trigger Events
• Popup Window
• Object State
• Test Run Error
• Application Crash
Recovery Scenario volition activate in 1 trial an mistake has occurred together with after mistake occurs Recovery Scenario volition trigger together with execute the Recovery activity. After Recovery Activity is completed, Post Recovery scenario volition Occurs.
The next are post Recovery Scenario Operations
• Repeat Current Step together with Continue
• Proceed to adjacent Step
• Proceed to Next Action Iteration
• Proceed to Next seek Iteration
• Restart Current Test Run
• Stop the seek run