| Constructor and description |
|---|
ComparisonResultBundleAsJsonObject
(java.lang.String jsonText)@param jsonText
{
"ComparisonResultBundle": [
{
"ComparisonResult": {
"expectedMaterial": {
"Material": {
"url": "null",
"suffix": "",
"fileType": {
"FileType": {
"extension": "png",
"mimeTypes": [
"image/png"
]
}
},
"path": "build/tmp/testOutput/ComparisonResultBundleSpec/test_deserializeToJsonObject/Materials/47News_chronos_capture/20190216_064354/main.TC_47News.visitSite/47NEWS_TOP.png",
"lastModified": "2019-02-22T22:22:11"
}
},
"actualMaterial": {
"Material": {
"url": "null",
"suffix": "",
"fileType": {
"FileType": {
"extension": "png",
"mimeTypes": [
"image/png"
]
}
},
"path": "build/tmp/testOutput/ComparisonResultBundleSpec/test_deserializeToJsonObject/Materials/47News_chronos_capture/20190216_204329/main.TC_47News.visitSite/47NEWS_TOP.png",
"lastModified": "2019-02-22T22:22:11"
}
},
"criteriaPercentage": 30.197159598135954,
"imagesAreSimilar": true,
"diffRatio": 16.86,
"diff": "build/tmp/testOutput/ComparisonResultBundleSpec/test_deserializeToJsonObject/Materials/ImageDiff/20190216_210203/ImageDiff/main.TC_47News.visitSite/47NEWS_TOP.20190216_064354_-20190216_204329_.(16.86).png"
}
}
]
}
|
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
containsImageDiff(java.nio.file.Path imageDiffPath) |
|
java.util.Map |
get(int index) |
|
java.util.Map |
get(java.nio.file.Path imageDiffPath)look up a Map object as ComparisonResult in the bundle. |
|
int |
size() |
|
java.lang.String |
srcOfActualMaterial(java.nio.file.Path imageDiffPath) |
|
java.lang.String |
srcOfExpectedMaterial(java.nio.file.Path imageDiffPath) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
jsonText
-
{
"ComparisonResultBundle": [
{
"ComparisonResult": {
"expectedMaterial": {
"Material": {
"url": "null",
"suffix": "",
"fileType": {
"FileType": {
"extension": "png",
"mimeTypes": [
"image/png"
]
}
},
"path": "build/tmp/testOutput/ComparisonResultBundleSpec/test_deserializeToJsonObject/Materials/47News_chronos_capture/20190216_064354/main.TC_47News.visitSite/47NEWS_TOP.png",
"lastModified": "2019-02-22T22:22:11"
}
},
"actualMaterial": {
"Material": {
"url": "null",
"suffix": "",
"fileType": {
"FileType": {
"extension": "png",
"mimeTypes": [
"image/png"
]
}
},
"path": "build/tmp/testOutput/ComparisonResultBundleSpec/test_deserializeToJsonObject/Materials/47News_chronos_capture/20190216_204329/main.TC_47News.visitSite/47NEWS_TOP.png",
"lastModified": "2019-02-22T22:22:11"
}
},
"criteriaPercentage": 30.197159598135954,
"imagesAreSimilar": true,
"diffRatio": 16.86,
"diff": "build/tmp/testOutput/ComparisonResultBundleSpec/test_deserializeToJsonObject/Materials/ImageDiff/20190216_210203/ImageDiff/main.TC_47News.visitSite/47NEWS_TOP.20190216_064354_-20190216_204329_.(16.86).png"
}
}
]
}
look up a Map object as ComparisonResult in the bundle. The argumet imageDiffPath is matched against the diff propert of each contained Map objects as ComparisonResult.