-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStepListener.java
47 lines (36 loc) · 1.11 KB
/
StepListener.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
package com.jcp.automation.common.listeners;
import com.jcp.transformer.automation.step.QAFTestStepListener;
import com.jcp.transformer.automation.step.StepExecutionTracker;
public class StepListener implements QAFTestStepListener {
// Date startDate = new Date();
// Date endDate = new Date();
@Override
public void afterExecute(StepExecutionTracker stepExecutionTracker) {
// endDate = new Date();
try {
} catch (Exception e) {
}
}
@Override
public void beforExecute(StepExecutionTracker stepExecutionTracker) {
// perform initial data load to cassandra
// dataload will be performed only once on first step invocation
try {
// CassandraDataLoad.loadAllDataToCassandra();
} catch (Exception e) {
e.printStackTrace();
}
try {
} catch (Exception e) {
}
// Reporter.log("TIME : "
// + ((new Timestamp(endDate.getTime()).getDateTime()) - (new Timestamp(
// startDate.getTime()).getDateTime())), MessageTypes.Info);
}
@Override
public void onFailure(StepExecutionTracker stepExecutionTracker) {
try {
} catch (Exception e) {
}
}
}