Skip to content

Commit

Permalink
Added save of HAR file to robot tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Oct 8, 2024
1 parent fbc8a5d commit 509883c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ public boolean stopServer(TestCaseExecution tce) {

// Log Execution
if ((tce.getVerbose() > 0)
&& !(tce.getControlStatus().equals(TestCaseExecution.CONTROLSTATUS_KO))
&& !tce.getControlStatus().equals(TestCaseExecution.CONTROLSTATUS_OK)
&& parameterService.getParameterBooleanByKey("cerberus_executionloghar_enable", tce.getSystem(), true)) {
try {
tce.addFileList(recorderService.recordHar(tce, har));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ private List<TestCaseCountryProperties> getTestCaseCountryPropertiesFromParamete
String type = propJson.getString("type");
String value = propJson.getString("value1");
String value2 = propJson.getString("value2");
String value3 = propJson.getString("value3");
String value3 = "";
if (propJson.has("value3")) {
value3 = propJson.getString("value3");
}
String length = propJson.getString("length");
int rowLimit = propJson.getInt("rowLimit");
int retryNb = propJson.optInt("retryNb");
Expand Down Expand Up @@ -415,8 +418,8 @@ private List<TestCaseStepActionControl> getTestCaseStepActionControlsFromParamet
String description = controlJson.getString("description");
String screenshot = controlJson.getString("screenshotFileName");
if (!delete) {
testCaseStepActionControl.add(testCaseStepActionControlFactory.create(test, testCase, stepId, actionId, controlId, sort,
conditionOperator, conditionValue1, conditionValue2, conditionValue3, conditionOptions,
testCaseStepActionControl.add(testCaseStepActionControlFactory.create(test, testCase, stepId, actionId, controlId, sort,
conditionOperator, conditionValue1, conditionValue2, conditionValue3, conditionOptions,
controlValue, value1, value2, value3, options, isFatal, description, screenshot, doScreenshotBefore, doScreenshotAfter, waitBefore, waitAfter));
}
}
Expand Down

0 comments on commit 509883c

Please sign in to comment.