Graphical tests
Posted: 17 Sep 2014, 12:36
size=150Graphical tests/size
Version 0.1.73 and higher
From version 0.1.73 you can define extended automatic test in Design Forms Builder: bGraphical test/b.
Graphical test is extension of standard Numeric test (well known from older versions). In addition to numerical values, graphical test also compares graphical output.
All inputs for graphical output are saved in TestIO file: Input variables, Results, Dialog; Layout, Language, Sample output.
Sample graphical output saved in TestIO is compared to the results of tested run.
uResult of comparison are two numeric values:/u
list
*Correlation coefficient = (SamePixels / TotalNumberOfPixels) => this value lays in range 0.00 - 1.00.
0.00 = Bitmaps are different
1.00 = Bitmaps are the same/*:m
*Number of different pixels = total number of different pixels/*:m/list:u
uBitmaps are considered to be equal if:/u
list
*Correlation coefficient is greater than 99.9%./*:m
*Number of different pixels < 100/*:m/list:u
Correlation coefficient and number of different pixels are saved in Test log.
uAdding new graphical test:/u
list
*Open CLS in DesignForms Builder/*:m
*Select Layout, Language/*:m
*Setup dialog and/or input variables/*:m
*Click on MainMenu - Tools - Add new graphical test/*:m/list:u
Version 0.1.73 and higher
From version 0.1.73 you can define extended automatic test in Design Forms Builder: bGraphical test/b.
Graphical test is extension of standard Numeric test (well known from older versions). In addition to numerical values, graphical test also compares graphical output.
All inputs for graphical output are saved in TestIO file: Input variables, Results, Dialog; Layout, Language, Sample output.
Sample graphical output saved in TestIO is compared to the results of tested run.
uResult of comparison are two numeric values:/u
list
*Correlation coefficient = (SamePixels / TotalNumberOfPixels) => this value lays in range 0.00 - 1.00.
0.00 = Bitmaps are different
1.00 = Bitmaps are the same/*:m
*Number of different pixels = total number of different pixels/*:m/list:u
uBitmaps are considered to be equal if:/u
list
*Correlation coefficient is greater than 99.9%./*:m
*Number of different pixels < 100/*:m/list:u
Correlation coefficient and number of different pixels are saved in Test log.
uAdding new graphical test:/u
list
*Open CLS in DesignForms Builder/*:m
*Select Layout, Language/*:m
*Setup dialog and/or input variables/*:m
*Click on MainMenu - Tools - Add new graphical test/*:m/list:u