Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Changed fileName in RemoteLogDashboard uploafFile object to use testF…
Browse files Browse the repository at this point in the history
…ileNameTemplate (#1149)

Description : Fix for issue - #1148
testFileNameTemplate is needed for the log files sent to Remote Dashboard to be able to associate them with a given test case

Co-authored-by: Anuradha Konduri <[email protected]>
  • Loading branch information
anuradha24 and Anuradha Konduri committed Mar 21, 2020
1 parent 2b0e419 commit be98235
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public void setVideoRecorded(boolean videoRecorded) {
this.videoRecorded = videoRecorded;
}

public String getTestNameNoExtension() {
return testNameNoExtension;
}

public String getVideoFolderPath() {
return videoFolderPath;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void updateDashboard(TestInformation testInformation) throws Exception {
uploadFile.stream = new FileInputStream(Paths.get(testInformation.getVideoFolderPath(),
testInformation.getSeleniumLogFileName()).toString());
}
uploadFile.fileName = testInformation.getBrowserDriverLogFileName();
uploadFile.fileName = testInformation.getTestNameNoExtension()+".log";
fields.add(uploadFile);

this.setupMetadata(testInformation).addProperty("Type", "logfile");
Expand Down

0 comments on commit be98235

Please sign in to comment.