Check points are normally used to check the screen values, screen object properties to find out if there are any changes from the recorded version.
Where as output values are used to check the properties of the objects and these properties will be written to the data table columns in the sctipt.
Use the below code to validate if the checkpoint is passed or failed:
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1"))if chk_PassFail then MsgBox "Check Point passed"else MsgBox "Check Point failed"end if
Use the below code to stop any exceptions that will raise due to check point failure.Reporter.Filter = rfDisableAll 'Disables all the reporting stuff
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1"))
Reporter.Filter = rfEnableAll 'Enable all the reporting stuff
if chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if
Wednesday, December 19, 2007
What is the difference between Check points and Output values ?
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: Check point, check point failed, data tables, Functional testing, mercury QTP, output value, QTP, testing tools
Data Tables in QTP
How many types of Data Tables are there in qtp ?
There are two types of Data tables:
1) Global data sheet:
The data in the global data sheets are accesible to all the actions in the script.
2) Local data sheet.
The data in the global data sheets are accesible to only to those actions i the current script.
Data tables can be used by using the below code:
DataTable(“column name”, dtGlobalSheet)
DataTable(column Name”, dtLocalsheet).
Normally we can change the data table values even in the runtime. But those changes will reflect only during the runtime. They will only change the run time data table. And if you want, this run time data can be exported by using datatable.export or datatable.exportsheet functions.
Because you can not save the changes made in runtime to the actual data tables.
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: data tables, datatables, global sheet, local sheet, parameters, parameters in qtp, runtime changes