Skip to content

Commit

Permalink
Add possibility to use variable (TESTFOLDER, TESTID, TESTDESCRIPTION)…
Browse files Browse the repository at this point in the history
… in the external execution name for Browserstack
  • Loading branch information
bcivel committed Dec 19, 2024
1 parent 68f2dc4 commit cd54d8e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ && isNotAlreadyDefined(caps, "appWaitActivity"))) {
if (isNotAlreadyDefined(caps, "name")) {
String externalExeName = parameterService.getParameterStringByKey("cerberus_browserstack_defaultexename", tCExecution.getSystem(), "Exe : %EXEID%");
externalExeName = externalExeName.replace("%EXEID%", String.valueOf(tCExecution.getId()));
externalExeName = externalExeName.replace("%TESTFOLDER%", String.valueOf(tCExecution.getTest()));
externalExeName = externalExeName.replace("%TESTID%", String.valueOf(tCExecution.getTestCase()));
externalExeName = externalExeName.replace("%TESTDESCRIPTION%", String.valueOf(tCExecution.getDescription()));
caps.setCapability("name", externalExeName);
}
if (tCExecution.getVerbose() >= 2) {
Expand Down

0 comments on commit cd54d8e

Please sign in to comment.