aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java')
-rw-r--r--vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java b/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java
index 5ee961215..7bec56013 100644
--- a/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java
+++ b/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java
@@ -1,12 +1,14 @@
package vid.automation.test.test;
import org.junit.Assert;
-import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils;
+import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openqa.selenium.WebElement;
+import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import vid.automation.test.Constants;
import vid.automation.test.infra.Wait;
import vid.automation.test.sections.PnfSearchAssociationPage;
+import vid.automation.test.sections.SideMenu;
import vid.automation.test.sections.VidBasePage;
import vid.automation.test.sections.ViewEditPage;
import vid.automation.test.services.BulkRegistration;
@@ -21,6 +23,11 @@ public class AssociatePnfTest extends VidBaseTestCase {
private String pnfInstanceName = "MX_960-F722";
private String pnfModelName = "pnf 0";
+ @BeforeMethod
+ public void navigateToWelcomePage() {
+ SideMenu.navigateToWelcomePage();
+ }
+
@Test
public void testAssociatePnf() throws Exception {
SimulatorApi.clearAll();
@@ -132,7 +139,7 @@ public class AssociatePnfTest extends VidBaseTestCase {
//ubscriber NameModel Invariant UUID
elementTestId = Constants.ServiceModelInfo.INFO_TEST_ID_PREFIX + Constants.ServiceModelInfo.SUBSCRIBER_NAME_KEY;
infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText();
- Assert.assertEquals(String.format(Constants.ServiceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"USP VOICE");
+ Assert.assertEquals(String.format(Constants.ServiceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"SILVIA ROBBINS");
//Model Version
elementTestId = Constants.ServiceModelInfo.INFO_TEST_ID_PREFIX + Constants.ServiceModelInfo.MODEL_VERSION;
infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText();