Skip to content

Commit 75bbcb5

Browse files
committed
commented after scenario function calls
1 parent a5febd7 commit 75bbcb5

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/main/java/info/seleniumcucumber/stepdefinitions/PredefinedStepDefinitions.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -526,29 +526,29 @@ public void print_config()
526526
{
527527
configObj.printDesktopConfiguration();
528528
}
529-
@After
530-
public final void takeScreenShot(Scenario scenario) {
531-
if (scenario.isFailed()) {
532-
TakesScreenshot ts = (TakesScreenshot) driver;
533-
File srcFile = ts.getScreenshotAs(OutputType.FILE);
534-
try {
535-
ScenarioImpl impl = (ScenarioImpl) scenario;
536-
/*Collection<String> tags = impl.getSourceTagNames();
537-
String name = "Scenario";
538-
for (String t : tags) {
539-
name += "_" + t;
540-
}
541-
*/
542-
String name = "Screenshots/" + impl.getId().replaceAll("\\W", "_");
543-
FileUtils.copyFile(srcFile, new File(name + ".png"));
544-
} catch (IOException ex) {
545-
//Logger.getLogger(SmapScenario.class.getName()).log(Level.SEVERE, null, ex);
546-
}
547-
}
548-
}
549-
550-
@After
551-
public final void tearDown() {
552-
DriverUtil.closeDriver();
553-
}
529+
// @After
530+
// public final void takeScreenShot(Scenario scenario) {
531+
// if (scenario.isFailed()) {
532+
// TakesScreenshot ts = (TakesScreenshot) driver;
533+
// File srcFile = ts.getScreenshotAs(OutputType.FILE);
534+
// try {
535+
// ScenarioImpl impl = (ScenarioImpl) scenario;
536+
// Collection<String> tags = impl.getSourceTagNames();
537+
// String name = "Scenario";
538+
// for (String t : tags) {
539+
// name += "_" + t;
540+
// }
541+
542+
// String name = "Screenshots/" + impl.getId().replaceAll("\\W", "_");
543+
// FileUtils.copyFile(srcFile, new File(name + ".png"));
544+
// } catch (IOException ex) {
545+
// //Logger.getLogger(SmapScenario.class.getName()).log(Level.SEVERE, null, ex);
546+
// }
547+
// }
548+
// }
549+
550+
// @After
551+
// public final void tearDown() {
552+
// DriverUtil.closeDriver();
553+
// }
554554
}

0 commit comments

Comments
 (0)