summaryrefslogtreecommitdiffstats
path: root/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes
diff options
context:
space:
mode:
Diffstat (limited to 'ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes')
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/AmdocsLicenseMembers.java56
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/CanvasManager.java151
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ConnectionWizardPopUpObject.java58
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/DataTestIdEnum.java68
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ServiceContainer.java51
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/TypesEnum.java2
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/UserManagementTab.java1
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/VendorSoftwareProductObject.java86
8 files changed, 325 insertions, 148 deletions
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/AmdocsLicenseMembers.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/AmdocsLicenseMembers.java
deleted file mode 100644
index 9c2cfa809c..0000000000
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/AmdocsLicenseMembers.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.openecomp.sdc.ci.tests.datatypes;
-
-public class AmdocsLicenseMembers {
-
- private String vendorId;
- private String vendorLicenseName;
- private String vendorLicenseAgreementId;
- private String featureGroupId;
-
- public AmdocsLicenseMembers(String vendorId, String vendorLicenseName, String vendorLicenseAgreementId, String featureGroupId) {
- super();
- this.vendorId = vendorId;
- this.vendorLicenseName = vendorLicenseName;
- this.vendorLicenseAgreementId = vendorLicenseAgreementId;
- this.featureGroupId = featureGroupId;
- }
-
- public String getVendorId() {
- return vendorId;
- }
-
- public void setVendorId(String vendorId) {
- this.vendorId = vendorId;
- }
-
- public String getVendorLicenseName() {
- return vendorLicenseName;
- }
-
- public void setVendorLicenseName(String vendorLicenseName) {
- this.vendorLicenseName = vendorLicenseName;
- }
-
- public String getVendorLicenseAgreementId() {
- return vendorLicenseAgreementId;
- }
-
- public void setVendorLicenseAgreementId(String vendorLicenseAgreementId) {
- this.vendorLicenseAgreementId = vendorLicenseAgreementId;
- }
-
- public String getFeatureGroupId() {
- return featureGroupId;
- }
-
- public void setFeatureGroupId(String featureGroupId) {
- this.featureGroupId = featureGroupId;
- }
-
- @Override
- public String toString() {
- return "AmdocsLicenseMembers [vendorId=" + vendorId + ", vendorLicenseName=" + vendorLicenseName + ", vendorLicenseAgreementId=" + vendorLicenseAgreementId + ", featureGroupId=" + featureGroupId + "]";
- }
-
-
-}
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/CanvasManager.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/CanvasManager.java
index 25ed4c2d91..b4f50020df 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/CanvasManager.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/CanvasManager.java
@@ -25,12 +25,15 @@ import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;
+import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.openecomp.sdc.ci.tests.datatypes.DataTestIdEnum.LeftPanelCanvasItems;
+import org.openecomp.sdc.ci.tests.datatypes.enums.CircleSize;
import org.openecomp.sdc.ci.tests.execute.setup.ExtentTestActions;
import org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest;
+import org.openecomp.sdc.ci.tests.pages.CompositionPage;
import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.StaleElementReferenceException;
@@ -39,6 +42,7 @@ import org.openqa.selenium.interactions.Actions;
import org.testng.Assert;
import com.aventstack.extentreports.Status;
+import com.clearspring.analytics.util.Pair;
public final class CanvasManager {
private Map<String, CanvasElement> canvasElements;
@@ -48,8 +52,14 @@ public final class CanvasManager {
private CanvasElement canvasElement;
// Offsets Are used to find upper right corner of canvas element in order to
// connect links
- private static final int CANVAS_ELEMENT_Y_OFFSET = 30;
- private static final int CANVAS_ELEMENT_X_OFFSET = 18; // 14 - 27
+ private static final int CANVAS_VF_Y_OFFSET = 30;
+ private static final int CANVAS_VF_X_OFFSET = 18; // 14 - 27
+
+ private static final int CANVAS_NORMATIVE_ELEMENT_Y_OFFSET = 12;
+ private static final int CANVAS_NORMATIVE_ELEMENT_X_OFFSET = 7;
+
+ private static final int CANVAS_SERVICE_Y_OFFSET = 27;
+ private static final int CANVAS_SERVICE_X_OFFSET = 16;
private CanvasManager() {
canvasElements = new HashMap<>();
@@ -116,6 +126,8 @@ public final class CanvasManager {
actions.perform();
actions.click().perform();
GeneralUIUtils.ultimateWait();
+
+ validateInstanceSelected(canvasElement);
ExtentTestActions.log(Status.INFO, String.format("Canvas element %s selected", canvasElement.getElementType()));
}
@@ -152,7 +164,7 @@ public final class CanvasManager {
}
return null;
}
-
+
public CanvasElement createElementOnCanvas(String elementName) throws Exception {
String actionDuration = GeneralUIUtils.getActionDuration(() -> {
try {
@@ -161,13 +173,13 @@ public final class CanvasManager {
e.printStackTrace();
}
});
-
+
if (canvasElement != null){
ExtentTestActions.log(Status.INFO, String.format("The element %s should now be on the canvas", elementName), actionDuration);
}
return canvasElement;
}
-
+
private CanvasElement createElementOnCanvasWithoutDuration(String elementDataTestId) throws Exception {
try {
WebElement element = findClickElement(elementDataTestId);
@@ -183,7 +195,7 @@ public final class CanvasManager {
addCanvasElement(canvasElement);
GeneralUIUtils.ultimateWait();
return canvasElement;
- }
+ }
catch (Exception e) {
System.out.println("Can't create element on canvas");
e.printStackTrace();
@@ -218,6 +230,7 @@ public final class CanvasManager {
return new ImmutablePair<Integer, Integer>(xElement, yElement);
}
+ // Will work only if 2 elements are big sized (VF size), if one of the elements is Small use the function linkElements
public void linkElements(CanvasElement firstElement, CanvasElement secondElement) throws Exception {
ExtentTestActions.log(Status.INFO, String.format("Linking between the %s instance and the %s instance.", firstElement.getElementType(), secondElement.getElementType()));
drawSimpleLink(firstElement, secondElement);
@@ -225,20 +238,41 @@ public final class CanvasManager {
ExtentTestActions.log(Status.INFO, String.format("The instances %s and %s should now be connected.", firstElement.getElementType(), secondElement.getElementType()));
}
+ public void linkElements(CanvasElement firstElement, CircleSize firstElementSize, CanvasElement secondElement, CircleSize secondElementSize) throws Exception {
+ drawSimpleLink(firstElement,firstElementSize, secondElement,secondElementSize);
+ selectReqAndCapAndConnect();
+ ExtentTestActions.log(Status.INFO, String.format("The instances %s and %s should now be connected.", firstElement.getElementType(), secondElement.getElementType()));
+ }
+
private void selectReqAndCapAndConnect() throws Exception {
- // Select First Cap
- GeneralUIUtils.getWebElementsListByTestID(DataTestIdEnum.LinkMenuItems.LINK_ITEM_CAP.getValue()).get(0).click();
- // Select First Req
- GeneralUIUtils.getWebElementsListByTestID(DataTestIdEnum.LinkMenuItems.LINK_ITEM_REQ.getValue()).get(0).click();
- // Connect
- GeneralUIUtils.getWebElementByTestID(DataTestIdEnum.LinkMenuItems.CONNECT_BUTTON.getValue()).click();
+ addFitstReqOrCapAndPressNext();
+ addFitstReqOrCapAndPressNext();
+ linkMenuClickOnFinishButton();
+ }
- GeneralUIUtils.waitForLoader();
+ private void addFitstReqOrCapAndPressNext() throws Exception {
+ addFirstReqOrCap();
+ linkMenuClickOnNextButton();
}
+ private void addFirstReqOrCap() {
+ GeneralUIUtils.getWebElementsListByClassName(DataTestIdEnum.LinkMenuItems.LINK_ITEM_CAP_Or_REQ.getValue()).get(0).click();
+ }
+
+ private void linkMenuClickOnNextButton() throws Exception {
+ GeneralUIUtils.clickOnElementByText("Next");
+ GeneralUIUtils.ultimateWait();
+ }
+
+ private void linkMenuClickOnFinishButton() throws Exception {
+ GeneralUIUtils.clickOnElementByText("Finish");
+ GeneralUIUtils.ultimateWait();
+ }
+
+
private void drawSimpleLink(CanvasElement firstElement, CanvasElement secondElement) throws Exception {
- int yOffset = CANVAS_ELEMENT_Y_OFFSET;
- int xOffset = CANVAS_ELEMENT_X_OFFSET;
+ int yOffset = CANVAS_VF_Y_OFFSET;
+ int xOffset = CANVAS_VF_X_OFFSET;
actions.moveToElement(canvas, firstElement.getLocation().left + xOffset,
firstElement.getLocation().right - yOffset);
@@ -250,6 +284,45 @@ public final class CanvasManager {
GeneralUIUtils.ultimateWait();
}
+ private void drawSimpleLink(CanvasElement firstElement, CircleSize firstElementSize, CanvasElement secondElement, CircleSize secondElementSize) throws Exception {
+ ExtentTestActions.log(Status.INFO, String.format("Linking between the %s instance and the %s instance.", firstElement.getElementType(), secondElement.getElementType()));
+ Integer yOffset = getCircleOffset(firstElementSize).right;
+ Integer xOffset = getCircleOffset(firstElementSize).left;
+ firstElement.getElementType();
+
+
+ actions.moveToElement(canvas, firstElement.getLocation().left + xOffset,
+ firstElement.getLocation().right - yOffset);
+
+ actions.clickAndHold();
+
+ yOffset = getCircleOffset(secondElementSize).right;
+ xOffset = getCircleOffset(secondElementSize).left;
+
+ actions.moveToElement(canvas, secondElement.getLocation().left + xOffset, secondElement.getLocation().right - yOffset);
+ actions.release();
+ actions.perform();
+ GeneralUIUtils.ultimateWait();
+ }
+
+ private Pair<Integer,Integer> getCircleOffset(CircleSize circleSize)
+ {
+ Pair<Integer,Integer> circleSizes;
+ if(circleSize.equals(CircleSize.VF))
+ {
+ circleSizes = new Pair <Integer,Integer> (CANVAS_VF_X_OFFSET,CANVAS_VF_Y_OFFSET);
+ }
+ else if (circleSize.equals(CircleSize.NORMATIVE))
+ {
+ circleSizes = new Pair <Integer,Integer> (CANVAS_NORMATIVE_ELEMENT_X_OFFSET,CANVAS_NORMATIVE_ELEMENT_Y_OFFSET);
+ }
+ else
+ {
+ circleSizes = new Pair <Integer,Integer> (CANVAS_SERVICE_X_OFFSET,CANVAS_SERVICE_Y_OFFSET);
+ }
+ return circleSizes;
+ }
+
public String updateElementNameInCanvas(CanvasElement canvasElement, String newInstanceName) throws Exception {
GeneralUIUtils.ultimateWait();;
clickOnCanvaElement(canvasElement);
@@ -265,4 +338,52 @@ public final class CanvasManager {
SetupCDTest.getExtendTest().log(Status.INFO, String.format("Name of element instance changed from %s to %s", oldInstanceName, newInstanceName));
return oldInstanceName;
}
+
+ /**
+ * @param canvasElement
+ * Validate that instance was selected on right sidebar
+ */
+ public void validateInstanceSelected(CanvasElement canvasElement) {
+ long maxWait = 3000;
+ long sumOfWaiting = 0;
+ long napPeriod = 200;
+ boolean isInstanceSelected;
+ do {
+ isInstanceSelected = CompositionPage.getSelectedInstanceName().contains(canvasElement.getElementType());
+
+ if (!isInstanceSelected) {
+ try {
+ TimeUnit.MILLISECONDS.sleep(napPeriod);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ sumOfWaiting += napPeriod;
+ if (sumOfWaiting > maxWait) {
+ Assert.fail(String.format("Can't select instance properly, waited for %s seconds", (int) (maxWait/1000)));
+ }
+ } while (!isInstanceSelected);
+ }
+
+ private void selectReqCapByName(String reqCapName)
+ {
+ GeneralUIUtils.clickOnElementByText(reqCapName);
+ GeneralUIUtils.ultimateWait();
+ }
+
+ private void selectTypeOfReqCap(String reqCapType)
+ {
+ GeneralUIUtils.getSelectList(reqCapType,DataTestIdEnum.LinkMenuItems.REQ_CAP_SELECT_DATA_TESTS_ID.getValue());
+ GeneralUIUtils.ultimateWait();
+ }
+
+ public void linkElementsAndSelectCapReqTypeAndCapReqName(CanvasElement firstElement, CircleSize firstElementSize, CanvasElement secondElement, CircleSize secondElementSize, ConnectionWizardPopUpObject connectionWizardPopUpObject) throws Exception {
+ drawSimpleLink(firstElement, firstElementSize, secondElement, secondElementSize);
+ selectTypeOfReqCap(connectionWizardPopUpObject.getCapabilityTypeSecondItem());
+ addFitstReqOrCapAndPressNext();
+ selectReqCapByName(connectionWizardPopUpObject.getCapabilityNameSecondItem());
+ linkMenuClickOnNextButton();
+ linkMenuClickOnFinishButton();
+ }
}
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ConnectionWizardPopUpObject.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ConnectionWizardPopUpObject.java
new file mode 100644
index 0000000000..be957fb87b
--- /dev/null
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ConnectionWizardPopUpObject.java
@@ -0,0 +1,58 @@
+package org.openecomp.sdc.ci.tests.datatypes;
+
+public class ConnectionWizardPopUpObject {
+
+ private String capabilityTypeFirstItem;
+ private String capabilityTypeSecondItem;
+ private String capabilityNameFirstItem;
+ private String capabilityNameSecondItem;
+
+ public ConnectionWizardPopUpObject(String capabilityTypeFirstItem, String capabilityNameFirstItem, String capabilityTypeSecondItem, String capabilityNameSecondItem) {
+ this.capabilityTypeFirstItem = capabilityTypeFirstItem;
+ this.capabilityTypeSecondItem = capabilityTypeSecondItem;
+ this.capabilityNameFirstItem = capabilityNameFirstItem;
+ this.capabilityNameSecondItem = capabilityNameSecondItem;
+ }
+
+ public String getCapabilityTypeFirstItem() {
+ return capabilityTypeFirstItem;
+ }
+
+ public void setCapabilityTypeFirstItem(String capabilityTypeFirstItem) {
+ this.capabilityTypeFirstItem = capabilityTypeFirstItem;
+ }
+
+ public String getCapabilityTypeSecondItem() {
+ return capabilityTypeSecondItem;
+ }
+
+ public void setCapabilityTypeSecondItem(String capabilityTypeSecondItem) {
+ this.capabilityTypeSecondItem = capabilityTypeSecondItem;
+ }
+
+ public String getCapabilityNameFirstItem() {
+ return capabilityNameFirstItem;
+ }
+
+ public void setCapabilityNameFirstItem(String capabilityNameFirstItem) {
+ this.capabilityNameFirstItem = capabilityNameFirstItem;
+ }
+
+ public String getCapabilityNameSecondItem() {
+ return capabilityNameSecondItem;
+ }
+
+ public void setCapabilityNameSecondItem(String capabilityNameSecondItem) {
+ this.capabilityNameSecondItem = capabilityNameSecondItem;
+ }
+
+ @Override
+ public String toString() {
+ return "ConnectionWizardPopUpObject{" +
+ "capabilityTypeFirstItem='" + capabilityTypeFirstItem + '\'' +
+ ", capabilityTypeSecondItem='" + capabilityTypeSecondItem + '\'' +
+ ", capabilityNameFirstItem='" + capabilityNameFirstItem + '\'' +
+ ", capabilityNameSecondItem='" + capabilityNameSecondItem + '\'' +
+ '}';
+ }
+}
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/DataTestIdEnum.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/DataTestIdEnum.java
index f2e46b2973..fdd6a572a4 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/DataTestIdEnum.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/DataTestIdEnum.java
@@ -151,11 +151,13 @@ public final class DataTestIdEnum {
}
public enum LinkMenuItems {
- CANCEL_BUTTON("link-menu-button-cancel"),
- CONNECT_BUTTON("link-menu-button-connect"),
- LINK_ITEM_CAP("link-item-capabilities"),
- LINK_ITEM_REQ("link-item-requirements"),
- LINK_MENU("link-menu-open");
+// CANCEL_BUTTON("link-menu-button-cancel"),
+// CONNECT_BUTTON("link-menu-button-connect"),
+// LINK_ITEM_CAP("link-item-capabilities"),
+// LINK_ITEM_REQ("link-item-requirements"),
+// LINK_MENU("link-menu-open");
+ LINK_ITEM_CAP_Or_REQ("req-or-cap-item"),
+ REQ_CAP_SELECT_DATA_TESTS_ID("SelectType");
private String value;
@@ -167,6 +169,9 @@ public final class DataTestIdEnum {
this.value = value;
}
}
+
+
+
public enum GeneralCanvasItems {
CANVAS("canvas"),
@@ -434,19 +439,20 @@ public final class DataTestIdEnum {
}
public enum StepsEnum {
- GENERAL("General"),
+ GENERAL("GeneralLeftSideMenu"),
ICON("Iconstep"),
- DEPLOYMENT_ARTIFACT("Deployment Artifact"),
- INFORMATION_ARTIFACT("Information Artifact"),
- PROPERTIES("Properties"),
- COMPOSITION("Composition"),
- ACTIVITY_LOG("Activity Log"),
- DEPLOYMENT_VIEW("Deployment"),
- TOSCA_ARTIFACTS("TOSCA Artifacts"),
- MONITOR("Monitor "),
- MANAGEMENT_WORKFLOW("Management Workflow"),
+ DEPLOYMENT_ARTIFACT("Deployment ArtifactLeftSideMenu"),
+ INFORMATION_ARTIFACT("Information ArtifactLeftSideMenu"),
+ PROPERTIES("PropertiesLeftSideMenu"),
+ COMPOSITION("CompositionLeftSideMenu"),
+ ACTIVITY_LOG("Activity LogLeftSideMenu"),
+ DEPLOYMENT_VIEW("DeploymentLeftSideMenu"),
+ TOSCA_ARTIFACTS("TOSCA ArtifactsLeftSideMenu"),
+ MONITOR("Monitor LeftSideMenu"),
+ MANAGEMENT_WORKFLOW("Management WorkflowLeftSideMenu"),
INPUTS("Inputs"),
- HIERARCHY("Hierarchy");
+ HIERARCHY("Hierarchy"),
+ PROPERTIES_ASSIGNMENT("Properties AssignmentLeftSideMenu");
private String value;
@@ -799,6 +805,36 @@ public final class DataTestIdEnum {
}
}
+ public enum PropertiesAssignmentScreen {
+
+ PROPERTIES_TAB("Properties"),
+ INPUTS_TAB("Inputs"),
+ COMPOSITION_TAB("Composition"),
+ PROPERTY_STRUCTURE_TAB("Property Structure"),
+ DECLARE_BUTTON("declare-button"),
+ SEARCH_BOX("search-box"),
+ SEARCH_BUTTON("search-button"),
+ FILTER_BUTTON("filter-button"),
+ FILTER_BOX("filter-box"),
+ CLEAR_FILTER_BUTTON("clear-filter-button"),
+ INPUT_DELETE_BUTTON("delete-input-button"),
+ INPUT_DELETE_DIALOG_DELETE("Delete"),
+ INPUT_DELETE_DIALOG_CLOSE("Close"),
+ FILTER_CHECKBOX_ALL("filter-checkbox-all");
+
+
+ private String value;
+
+ public String getValue() {
+ return value;
+ }
+
+ private PropertiesAssignmentScreen(String value) {
+ this.value = value;
+ }
+
+ }
+
public enum ImportVfRepository {
SEARCH("onboarding-search"),
IMPORT_VSP("import-csar"),
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ServiceContainer.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ServiceContainer.java
new file mode 100644
index 0000000000..e812bf97c6
--- /dev/null
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ServiceContainer.java
@@ -0,0 +1,51 @@
+package org.openecomp.sdc.ci.tests.datatypes;
+
+import org.openecomp.sdc.be.model.Resource;
+import org.openecomp.sdc.be.model.Service;
+
+
+public class ServiceContainer {
+ private Service service;
+ private Resource resource;
+ private VendorSoftwareProductObject vendorSoftwareProductObject;
+ private AmdocsLicenseMembers amdocsLicenseMembers;
+
+ public ServiceContainer(Service service, Resource resource, VendorSoftwareProductObject vendorSoftwareProductObject, AmdocsLicenseMembers amdocsLicenseMembers) {
+ this.service = service;
+ this.resource = resource;
+ this.vendorSoftwareProductObject = vendorSoftwareProductObject;
+ this.amdocsLicenseMembers = amdocsLicenseMembers;
+ }
+
+ public Service getService() {
+ return service;
+ }
+
+ public void setService(Service service) {
+ this.service = service;
+ }
+
+ public Resource getResource() {
+ return resource;
+ }
+
+ public void setResource(Resource resource) {
+ this.resource = resource;
+ }
+
+ public VendorSoftwareProductObject getVendorSoftwareProductObject() {
+ return vendorSoftwareProductObject;
+ }
+
+ public void setVendorSoftwareProductObject(VendorSoftwareProductObject vendorSoftwareProductObject) {
+ this.vendorSoftwareProductObject = vendorSoftwareProductObject;
+ }
+
+ public AmdocsLicenseMembers getAmdocsLicenseMembers() {
+ return amdocsLicenseMembers;
+ }
+
+ public void setAmdocsLicenseMembers(AmdocsLicenseMembers amdocsLicenseMembers) {
+ this.amdocsLicenseMembers = amdocsLicenseMembers;
+ }
+}
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/TypesEnum.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/TypesEnum.java
index d27eb0c150..4249f9cd68 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/TypesEnum.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/TypesEnum.java
@@ -22,7 +22,7 @@ package org.openecomp.sdc.ci.tests.datatypes;
public enum TypesEnum {
- RESOURCE("checkbox-resource"), VF("checkbox-vf"), VFC("checkbox-vfc"), CP("checkbox-cp"), VL("checkbox-vl"), SERVICE("checkbox-service"), PRODUCT("checkbox-product");
+ RESOURCE("checkbox-resource"), VF("checkbox-vf"), VFC("checkbox-vfc"), PNF("checkbox-pnf"), CP("checkbox-cp"), VL("checkbox-vl"), SERVICE("checkbox-service"), PRODUCT("checkbox-product");
private String value;
public String getValue() {
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/UserManagementTab.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/UserManagementTab.java
index 0101b430d8..799649b1b6 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/UserManagementTab.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/UserManagementTab.java
@@ -93,6 +93,7 @@ public class UserManagementTab {
}
public void updateUser(int index){
+ GeneralUIUtils.ultimateWait();
GeneralUIUtils.clickOnElementByTestId(DataTestIdEnum.UserManagementEnum.UPDATE_USER_BUTTON.getValue() + index);
}
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/VendorSoftwareProductObject.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/VendorSoftwareProductObject.java
index fbdb88e712..8b40210c0d 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/VendorSoftwareProductObject.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/datatypes/VendorSoftwareProductObject.java
@@ -1,47 +1,27 @@
package org.openecomp.sdc.ci.tests.datatypes;
-public class VendorSoftwareProductObject {
+public class VendorSoftwareProductObject extends VendorSoftwareProductObjectReqDetails {
- private String vendorName;
private String vspId;
- private String category;
- private String subCategory;
private String componentId;
- private String description;
private String attContact;
- private String vspName;
-
- public VendorSoftwareProductObject() {
- super();
- // TODO Auto-generated constructor stub
- }
+ private String version;
+
+ public VendorSoftwareProductObject(){super();}
- public VendorSoftwareProductObject(String vendorName, String vspId, String category, String subCategory, String componentId, String description, String attContact) {
- super();
- this.vendorName = vendorName;
+ public VendorSoftwareProductObject(String vspId, String componentId, String attContact, String version) {
this.vspId = vspId;
- this.category = category;
- this.subCategory = subCategory;
this.componentId = componentId;
- this.description = description;
this.attContact = attContact;
+ this.version = version;
}
-
- public String getVspName() {
- return vspName;
- }
-
- public void setVspName(String vspName) {
- this.vspName = vspName;
- }
-
- public String getVendorName() {
- return vendorName;
- }
-
- public void setVendorName(String vendorName) {
- this.vendorName = vendorName;
+ public VendorSoftwareProductObject(String name, String description, String category, String subCategory, String vendorId, String vendorName, LicensingVersion licensingVersion, LicensingData licensingData, String onboardingMethod, String networkPackageName, String onboardingOrigin, String vspId, String componentId, String attContact, String version) {
+ super(name, description, category, subCategory, vendorId, vendorName, licensingVersion, licensingData, onboardingMethod, networkPackageName, onboardingOrigin);
+ this.vspId = vspId;
+ this.componentId = componentId;
+ this.attContact = attContact;
+ this.version = version;
}
public String getVspId() {
@@ -52,22 +32,6 @@ public class VendorSoftwareProductObject {
this.vspId = vspId;
}
- public String getCategory() {
- return category;
- }
-
- public void setCategory(String category) {
- this.category = category;
- }
-
- public String getSubCategory() {
- return subCategory;
- }
-
- public void setSubCategory(String subCategory) {
- this.subCategory = subCategory;
- }
-
public String getComponentId() {
return componentId;
}
@@ -76,14 +40,6 @@ public class VendorSoftwareProductObject {
this.componentId = componentId;
}
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
public String getAttContact() {
return attContact;
}
@@ -92,11 +48,21 @@ public class VendorSoftwareProductObject {
this.attContact = attContact;
}
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
@Override
public String toString() {
- return "VendorSoftwareProductObject [vendorName=" + vendorName + ", vspId=" + vspId + ", category=" + category + ", subCategory=" + subCategory + ", componentId=" + componentId + ", description=" + description + ", attContact="
- + attContact + "]";
+ return "VendorSoftwareProductObject{" +
+ "vspId='" + vspId + '\'' +
+ ", componentId='" + componentId + '\'' +
+ ", attContact='" + attContact + '\'' +
+ ", version='" + version + '\'' +
+ '}';
}
-
-
}