@@ -44,7 +44,9 @@ public void onStart(ISuite iSuite) {
4444 Log .info ("Start suite testing for " + iSuite .getName ());
4545 iSuite .setAttribute ("WebDriver" , DriverManager .getDriver ());
4646 //Gọi hàm startRecord video trong CaptureHelpers class
47- CaptureHelpers .startRecord (iSuite .getName ());
47+ if (video_record .trim ().toLowerCase ().equals (YES )) {
48+ CaptureHelpers .startRecord (iSuite .getName ());
49+ }
4850 ExtentReportManager .initReports ();
4951 }
5052
@@ -54,10 +56,15 @@ public void onFinish(ISuite iSuite) {
5456 WebUI .stopSoftAssertAll ();
5557 //Kết thúc và thực thi Extents Report
5658 ExtentReportManager .flushReports ();
57- ZipUtils .zip ();
59+ if (zip_folder .trim ().toLowerCase ().equals (YES )) {
60+ ZipUtils .zip ();
61+ }
5862 EmailSendUtils .sendEmail (count_totalTCs , count_passedTCs , count_failedTCs , count_skippedTCs );
5963 //Gọi hàm stopRecord video trong CaptureHelpers class
60- CaptureHelpers .stopRecord ();
64+ if (video_record .trim ().toLowerCase ().equals (YES )) {
65+ CaptureHelpers .stopRecord ();
66+ }
67+
6168 }
6269
6370 public AuthorType [] getAuthorType (ITestResult iTestResult ) {
@@ -118,7 +125,7 @@ public void onTestFailure(ITestResult iTestResult) {
118125 }
119126
120127 //Allure report screenshot file and log
121- Log .error ("FAIL !! Screenshot for test case: " + getTestName (iTestResult ));
128+ Log .error ("FAILED !! Screenshot for test case: " + getTestName (iTestResult ));
122129 Log .error (iTestResult .getThrowable ());
123130
124131 AllureManager .takeScreenshotToAttachOnAllureReport ();
0 commit comments