summaryrefslogtreecommitdiffstats
path: root/test-apis-ci/src/main
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-09-26 17:40:43 +0300
committerYuli Shlosberg <ys9693@att.com>2017-09-26 17:59:07 +0300
commitf8854eef352140497f0502e3f31bc839d173824b (patch)
tree085a8a8d36e3812448c2ac88d80b0e465348d2b7 /test-apis-ci/src/main
parent8a81749486c5be79fa4498a8e91cb949a601cc86 (diff)
Add VNFs to sanity docker
Change-Id: I8b81db65fdbad997d8bdf680eed7dcde1b200eb4 Issue-Id: SDC-401 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'test-apis-ci/src/main')
-rw-r--r--test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/api/ComponentBaseTest.java30
1 files changed, 12 insertions, 18 deletions
diff --git a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/api/ComponentBaseTest.java b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/api/ComponentBaseTest.java
index ad1e8dd37d..1817b6e5cb 100644
--- a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/api/ComponentBaseTest.java
+++ b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/api/ComponentBaseTest.java
@@ -123,21 +123,20 @@ public abstract class ComponentBaseTest {
public void setBrowserBeforeTest(java.lang.reflect.Method method, ITestContext context) throws Exception {
- String suiteName = ExtentManager.getSuiteName(context);
- ExtentTestManager.startTest(method.getName());
- ExtentTestManager.assignCategory(this.getClass());
-
-// boolean emptyDataProvider = method.getAnnotation(Test.class).dataProvider().isEmpty();
-// String className = method.getDeclaringClass().getName();
-// if (emptyDataProvider) {
-// System.out.println("ExtentReport instance started from BeforeMethod...");
-// String suiteName = ExtentManager.getSuiteName(context);
+// String suiteName = ExtentManager.getSuiteName(context);
// ExtentTestManager.startTest(method.getName());
// ExtentTestManager.assignCategory(this.getClass());
-//
-// } else {
-// System.out.println("ExtentReport instance started from Test...");
-// }
+
+ boolean emptyDataProvider = method.getAnnotation(Test.class).dataProvider().isEmpty();
+ String className = method.getDeclaringClass().getName();
+ if (!method.getName().equals("onboardVNFShotFlow")) {
+ System.out.println("ExtentReport instance started from BeforeMethod...");
+ ExtentTestManager.startTest(method.getName());
+ ExtentTestManager.assignCategory(this.getClass());
+
+ } else {
+ System.out.println("ExtentReport instance started from Test...");
+ }
}
@@ -176,13 +175,8 @@ public abstract class ComponentBaseTest {
@AfterClass(alwaysRun = true)
public synchronized static void cleanAfterClass() throws Exception{
-// System.out.println("<<<<<<<<class name>>>>>"+method.getDeclaringClass());
-// System.out.println("<<<<<<<<class name>>>>>"+method.getName());
-
-
System.out.println("delete components AfterClass");
deleteCreatedComponents(getCatalogAsMap());
-// extentReport.flush();
}