From 6b91534bf6733b7b2bad87ef8f70296a05430476 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Mon, 11 Nov 2019 13:17:13 +0200 Subject: adjust BrowseASDCTest with FLAG_2002_ANY_ALACARTE_BESIDES_EXCLUDED_NEW_INSTANTIATION_UI Issue-ID: VID-701 Change-Id: Ieed6340e3ff1e727521d8d1747ff2db96614664d Signed-off-by: Eylon Malin --- .../onap/sdc/ci/tests/execute/setup/SetupCDTest.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'vid-automation/src/main/java/org') diff --git a/vid-automation/src/main/java/org/onap/sdc/ci/tests/execute/setup/SetupCDTest.java b/vid-automation/src/main/java/org/onap/sdc/ci/tests/execute/setup/SetupCDTest.java index bb6a19a36..b3be16a42 100644 --- a/vid-automation/src/main/java/org/onap/sdc/ci/tests/execute/setup/SetupCDTest.java +++ b/vid-automation/src/main/java/org/onap/sdc/ci/tests/execute/setup/SetupCDTest.java @@ -20,10 +20,12 @@ package org.onap.sdc.ci.tests.execute.setup; +import com.aventstack.extentreports.ExtentTest; +import com.aventstack.extentreports.Status; import java.io.File; import java.io.IOException; import java.util.UUID; - +import net.lightbody.bmp.core.har.Har; import org.onap.sdc.ci.tests.datatypes.Configuration; import org.onap.sdc.ci.tests.datatypes.User; import org.onap.sdc.ci.tests.datatypes.UserCredentials; @@ -44,11 +46,6 @@ import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeSuite; import org.testng.annotations.Test; -import com.aventstack.extentreports.ExtentTest; -import com.aventstack.extentreports.Status; - -import net.lightbody.bmp.core.har.Har; - public abstract class SetupCDTest extends DriverFactory { private static final String RE_RUN = "ReRun - "; @@ -172,7 +169,7 @@ public abstract class SetupCDTest extends DriverFactory { return url; } - public static void navigateToUrl(String url) throws Exception { + public static void navigateToUrl(String url) { try { System.out.println("Deleting cookies..."); deleteCookies(); @@ -282,7 +279,7 @@ public abstract class SetupCDTest extends DriverFactory { } } - public void navigateAndLogin(UserCredentials userCredentials) throws Exception { + public void navigateAndLogin(UserCredentials userCredentials) { int refreshAttempts = getWindowTest().getRefreshAttempts() != 0 ? getWindowTest().getRefreshAttempts() : 0; setRefreshAttempts(refreshAttempts); setUser(userCredentials); @@ -300,7 +297,7 @@ public abstract class SetupCDTest extends DriverFactory { return user; } - protected void reloginWithNewRole(UserCredentials userCredentials) throws Exception { + protected void reloginWithNewRole(UserCredentials userCredentials) { System.out.println(String.format("Setup before relogin with the userId %s", userCredentials.getUserId())); navigateAndLogin(userCredentials); } @@ -353,4 +350,4 @@ public abstract class SetupCDTest extends DriverFactory { StartTest.main(testSuiteArr); } -} \ No newline at end of file +} -- cgit 1.2.3-korg