Skip to content

Commit 5f0faec

Browse files
committed
tech: added examples of regular expressions for test name cases
1 parent 115d5c7 commit 5f0faec

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/com/microfocus/application/automation/tools/octane/tests/junit

1 file changed

+2
-0
lines changed

src/main/java/com/microfocus/application/automation/tools/octane/tests/junit/JUnitExtension.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ public GetJUnitTestResults(Run<?, ?> build, HPRunnerType hpRunnerType, List<File
226226
if(build.getAction(ParametersAction.class) != null && build.getAction(ParametersAction.class).getParameter(TEST_RESULT_NAME_REGEX_PATTERN_PARAMETER_NAME) != null &&
227227
build.getAction(ParametersAction.class).getParameter(TEST_RESULT_NAME_REGEX_PATTERN_PARAMETER_NAME).getValue() != null) {
228228
try {
229+
//\[.*\] - input for testName = testName[parameters]
230+
//\[.*\) - input for testName = testName[parameters](more params)
229231
this.testParserRegEx = Pattern.compile(Objects.requireNonNull(build.getAction(ParametersAction.class).getParameter(TEST_RESULT_NAME_REGEX_PATTERN_PARAMETER_NAME).getValue()).toString());
230232
} catch (IllegalArgumentException e){
231233
logger.error("Failed to parse regular expression pattern for test result name extractor.Job name: {}, Build {}, Input: {}, Error massage: {}.",

0 commit comments

Comments
 (0)