Merge automation from ECOMP's repository
[vid.git] / vid-automation / src / main / java / vid / automation / test / test / AssociatePnfTest.java
index 5ee9612..7bec560 100644 (file)
@@ -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();