|
28 | 28 | import java.nio.file.Files;
|
29 | 29 | import java.text.DateFormat;
|
30 | 30 | import java.text.SimpleDateFormat;
|
31 |
| -import java.util.*; |
| 31 | +import java.util.ArrayList; |
| 32 | +import java.util.Base64; |
| 33 | +import java.util.Date; |
| 34 | +import java.util.HashMap; |
| 35 | +import java.util.Iterator; |
| 36 | +import java.util.List; |
| 37 | +import java.util.TreeMap; |
32 | 38 | import java.util.regex.Matcher;
|
33 | 39 | import java.util.regex.Pattern;
|
34 | 40 | import org.apache.commons.lang3.StringUtils;
|
@@ -1143,7 +1149,7 @@ private TestCaseExecutionData property_getFromNetworkTraffic(TestCaseExecutionDa
|
1143 | 1149 | //Record result in filessytem.
|
1144 | 1150 | testCaseExecutionData.addFileList(recorderService.recordProperty(execution.getId(), testCaseExecutionData.getProperty(), 1, harRes.toString(1), execution.getSecrets()));
|
1145 | 1151 |
|
1146 |
| - String valueFromJson = this.jsonService.getFromJson(harRes.toString(), null, jsonPath, |
| 1152 | + String valueFromJson = this.jsonService.getFromJson(execution, harRes.toString(), null, jsonPath, |
1147 | 1153 | testCaseExecutionData.getNature().equals(TestCaseCountryProperties.NATURE_RANDOM), testCaseExecutionData.getRank(), testCaseExecutionData.getValue3());
|
1148 | 1154 |
|
1149 | 1155 | if (valueFromJson != null) {
|
@@ -1231,7 +1237,7 @@ private TestCaseExecutionData property_getFromExecutionObject(TestCaseExecutionD
|
1231 | 1237 | recorderService.recordProperty(tCExecution.getId(), testCaseExecutionData.getProperty(), 1, executionObject, tCExecution.getSecrets());
|
1232 | 1238 |
|
1233 | 1239 | String valueFromJson = this.jsonService
|
1234 |
| - .getFromJson(executionObject, null, testCaseExecutionData.getValue1(), |
| 1240 | + .getFromJson(tCExecution, executionObject, null, testCaseExecutionData.getValue1(), |
1235 | 1241 | testCaseExecutionData.getNature().equals(TestCaseCountryProperties.NATURE_RANDOM), testCaseExecutionData.getRank(), testCaseExecutionData.getValue3());
|
1236 | 1242 |
|
1237 | 1243 | if (valueFromJson == null) {
|
@@ -1348,7 +1354,10 @@ private TestCaseExecutionData property_getFromHtml(TestCaseExecutionData testCas
|
1348 | 1354 | valueFromHTML = this.webdriverService.getElements(tCExecution.getSession(), identifier);
|
1349 | 1355 | break;
|
1350 | 1356 | case (TestCaseCountryProperties.VALUE3_VALUELIST):
|
1351 |
| - valueFromHTML = this.webdriverService.getElements(tCExecution.getSession(), identifier); |
| 1357 | + valueFromHTML = this.webdriverService.getElementsValues(tCExecution.getSession(), identifier); |
| 1358 | + break; |
| 1359 | + case (TestCaseCountryProperties.VALUE3_VALUESUM): |
| 1360 | + valueFromHTML = this.webdriverService.getElementsValuesSum(tCExecution, identifier); |
1352 | 1361 | break;
|
1353 | 1362 | case (TestCaseCountryProperties.VALUE3_ATTRIBUTE):
|
1354 | 1363 | valueFromHTML = this.webdriverService.getAttributeFromHtml(tCExecution.getSession(), identifier, testCaseExecutionData.getValue2(), TestCaseCountryProperties.NATURE_RANDOM.equals(testCaseExecutionData.getNature()), testCaseExecutionData.getRank());
|
@@ -1752,7 +1761,7 @@ private TestCaseExecutionData property_getFromJson(TestCaseExecutionData testCas
|
1752 | 1761 | recorderService.recordProperty(execution.getId(), testCaseExecutionData.getProperty(), 1, jsonResponse, execution.getSecrets());
|
1753 | 1762 |
|
1754 | 1763 | String valueFromJSON = this.jsonService
|
1755 |
| - .getFromJson(jsonResponse, null, testCaseExecutionData.getValue1(), |
| 1764 | + .getFromJson(execution, jsonResponse, null, testCaseExecutionData.getValue1(), |
1756 | 1765 | testCaseExecutionData.getNature().equals(TestCaseCountryProperties.NATURE_RANDOM), testCaseExecutionData.getRank(), testCaseExecutionData.getValue3());
|
1757 | 1766 |
|
1758 | 1767 | if (valueFromJSON == null) {
|
|
0 commit comments