mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Renamed label in Regression Test dialog
Updated doc for regression test and new dialog image
This commit is contained in:
parent
3996f6442d
commit
7318780122
@ -27,7 +27,7 @@ CAF_PDM_SOURCE_INIT(RiaRegressionTest, "RiaRegressionTest");
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiaRegressionTest::RiaRegressionTest(void)
|
RiaRegressionTest::RiaRegressionTest(void)
|
||||||
{
|
{
|
||||||
CAF_PDM_InitFieldNoDefault(&applicationWorkingFolder, "workingFolder", "Application Working Folder", "", "", "");
|
CAF_PDM_InitFieldNoDefault(&applicationWorkingFolder, "workingFolder", "Folder containing <b>compare</b>", "", "Location of compare tool from Image Magic suite", "");
|
||||||
applicationWorkingFolder.setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());
|
applicationWorkingFolder.setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault(®ressionTestFolder, "regressionTestFolder", "Regression Test Folder", "", "", "");
|
CAF_PDM_InitFieldNoDefault(®ressionTestFolder, "regressionTestFolder", "Regression Test Folder", "", "", "");
|
||||||
|
@ -1,43 +1,41 @@
|
|||||||
|
|
||||||
## Regression test system
|
## Regression test system
|
||||||
|
|
||||||
A regression tool for QA is build into ResInsight. This tool will do the following:
|
A regression tool for QA is build into ResInsight. This tool will do the following:
|
||||||
|
|
||||||
1. Scan a directory for sub directories containing a RegressionTest.rip files.
|
1. Scan a directory for sub directories containing a **RegressionTest.rip** files.
|
||||||
2. Each found project file will be opened, and all views in this project will be exported as snapshot images to file.
|
2. Each found project file will be opened, and all views in this project will be exported as snapshot images to file.
|
||||||
3. When snapshot images from all projects are completed, difference images based on generated and QA-approved images are computed.
|
3. When snapshot images from all projects are completed, difference images based on generated and QA-approved images are computed.
|
||||||
4. Based on these three sets of images, an HTML report is created and automatically displayed.
|
4. Based on these three sets of images, an HTML report is created and automatically displayed.
|
||||||
|
|
||||||
### Starting regression tests
|
### Starting regression tests
|
||||||
|
|
||||||
To be able to run regression tests you need the *compare* tool from the ImageMagic suite.
|
To be able to run regression tests you need the **compare** tool from the [ImageMagic suite](http://www.imagemagick.org/script/compare.php).
|
||||||
|
|
||||||
|
|
||||||
You can start the tests either from the command line or from the ResInsight Gui.
|
You can start the tests either from the command line or from the ResInsight Gui.
|
||||||
From the ResInsight Gui select : **Debug -> Regression Test Dialog**
|
From the ResInsight Gui select : **File->Testing->Regression Test Dialog**
|
||||||
|
|
||||||
![](images/RegressionTestDialog.png)
|
![](images/RegressionTestDialog.png)
|
||||||
|
|
||||||
The **Application Working Folder** is basically the path to the executable of the image compare utility used, even though the CWD of Resinsight is temporarily changed to this path during execution.
|
Specify location of compare tool in **Folder containing compare**. The current working directory of Resinsight is temporarily changed to this path during execution.
|
||||||
|
|
||||||
### Creating regression tests
|
### Creating regression tests
|
||||||
|
|
||||||
An example of the folder structure is shown below:
|
An example of the folder structure is shown below:
|
||||||
|
|
||||||
```
|
RegressionTestFolder/
|
||||||
RegressionTestFolder/
|
TestCase1/
|
||||||
TestCase1/
|
RegressionTest.rip
|
||||||
RegressionTest.rip
|
RegTestBaseImages/
|
||||||
RegTestBaseImages/
|
RegTestDiffImages/
|
||||||
RegTestDiffImages/
|
RegTestGeneratedImages/
|
||||||
RegTestGeneratedImages/
|
TestCase2/
|
||||||
TestCase2/
|
...
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
To create regression tests you need to do the following:
|
To create regression tests you need to do the following:
|
||||||
|
|
||||||
1. Create a root directory containing one directory for each testcase.
|
1. Create a root directory containing one directory for each testcase.
|
||||||
2. In each of the Test Case folders create a Resinsight project file called RegressionTest.rip.
|
2. In each of the **Test Case** folders create a Resinsight project file called **RegressionTest.rip**.
|
||||||
3. Run the regression test for the first time, and thereby creating images that can be used as Base images.
|
3. Run the regression test for the first time, and thereby creating images that can be used as Base images.
|
||||||
4. Rename the generated RegTestGeneratedImages/ folder to RegTestBaseImages/
|
4. Rename the generated RegTestGeneratedImages/ folder to RegTestBaseImages/
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 291 KiB |
Loading…
Reference in New Issue
Block a user