@@ -526,29 +526,29 @@ public void print_config()
526
526
{
527
527
configObj .printDesktopConfiguration ();
528
528
}
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
+ // }
554
554
}
0 commit comments