Skip to content

Commit

Permalink
Added ability to save har file at the end of the test regardless of s…
Browse files Browse the repository at this point in the history
…uccess or failure
  • Loading branch information
Matthew Casperson authored and Matthew Casperson committed Apr 2, 2017
1 parent 8d65e35 commit b3539e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/au/com/agic/apptesting/LiveTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private File[] getHarFiles() {
return new File(".").listFiles(new FilenameFilter() {
@Override
public boolean accept(final File dir, final String name) {
return name.contains(Constants.FAILURE_SCREENSHOT_SUFFIX) && name.endsWith(".har");
return name.endsWith(".har");
}
});
}
Expand Down Expand Up @@ -178,7 +178,7 @@ public void stepTests() {
/*
We always expect to find the borwsermob.har file.
*/
Assert.assertTrue(Stream.of(getHarFiles()).anyMatch(file -> file.getName().endsWith("browsermob.har")));
Assert.assertTrue(Stream.of(getHarFiles()).anyMatch(file -> file.getName().endsWith(Constants.HAR_FILE_NAME)));
}

/**
Expand Down

0 comments on commit b3539e2

Please sign in to comment.