-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBaseTest.java
53 lines (47 loc) · 2.13 KB
/
BaseTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.fs.app.automation;
import au.com.foxsports.test.automation.framework.logger.TestFrameworkLogger;
import au.com.foxsports.test.automation.framework.main.ExecutionController;
import au.com.foxsports.test.automation.framework.utilities.helper.Util;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.junit.runner.notification.RunListener;
/*
@RunWith(Cucumber.class)
//@CucumberOptions(features = { "classpath:com.fs.app.automation" })
@CucumberOptions(features = { "classpath:src\\main\\resources" })
*/
public class BaseTest extends RunListener {
// This is dummy BaseTest
@Override
public void testRunStarted(Description description) throws Exception {
TestFrameworkLogger.createTestSuiteLog("Execution started for test suite at " + Util.getCurrentSystemTime("dd/MM/yyyy hh:mm:ss a"));
//ExecutionController.setupTestSuiteExecution(false);
// Configurating report from file:/C:/Users/Vinay.Misra/.m2/repository/com/relevantcodes/extentreports/2.40/extentreports-2.40.jar!/com/relevantcodes/extentreports/resources/extent-config.xml
}
/* *//*
* (non-Javadoc)
* @see org.junit.runner.notification.RunListener#testStarted(org.junit.runner.Description)
*//*
@Override
public void testStarted(Description description) throws TestFrameworkException, IOException {
// ExecutionController.setupTestCaseExecution(description.getMethodName());
}
*//*
* (non-Javadoc)
* @see org.junit.runner.notification.RunListener#testFinished(org.junit.runner.Description)
*//*
@Override
public void testFinished(Description description) throws Exception {
// ExecutionController.performTestCaseCompletionTasks();
}
*//*
* (non-Javadoc)
* @see org.junit.runner.notification.RunListener#testRunFinished(org.junit.runner.Result)
*//*
@Override
public void testRunFinished(Result result) throws TestFrameworkException, IOException {
// ExecutionController.performTestSuiteCompletionTasks(result);
}*/
}