aboutsummaryrefslogtreecommitdiffstats
path: root/ui-ci
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-08-07 07:05:40 +0300
committerMichael Lando <ml636r@att.com>2017-08-07 07:05:40 +0300
commitb2c60183d5d654b945a24ec5564807e4f691c6e8 (patch)
treed6cdc354fa7ce27ea1e0ce60e6c57aa7c1ef20b6 /ui-ci
parentd1d771bed17c6a5beea19af8da0bf9113972f25a (diff)
[SDC] code sync
Change-Id: I576dd69504722c341b0f41a1f6232ed3f4bee8df Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'ui-ci')
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/ImportDCAE.java5
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/Vf.java7
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/VfDeploymentInformationalArtifacts.java25
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java2
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/verificator/ServiceVerificator.java4
5 files changed, 5 insertions, 38 deletions
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/ImportDCAE.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/ImportDCAE.java
index 5204c808c4..a26919ae2a 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/ImportDCAE.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/ImportDCAE.java
@@ -455,11 +455,6 @@ public class ImportDCAE extends SetupCDTest {
@Test
public void addDeploymentArtifactAndVerifyInCompositionScreenDCAEAssetTest() throws Exception{
-
- if(true){
- throw new SkipException("Open bug 320081");
- }
-
createDCAEAsset();
ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/Vf.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/Vf.java
index 17d1fa2906..126154661a 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/Vf.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/Vf.java
@@ -513,12 +513,7 @@ public class Vf extends SetupCDTest {
}
@Test
- public void addDeploymentArtifactAndVerifyInCompositionScreen() throws Exception{
-
- if(true){
- throw new SkipException("Open bug 320081");
- }
-
+ public void addDeploymentArtifactAndVerifyInCompositionScreen() throws Exception{
ResourceReqDetails vfMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
ResourceUIUtils.createResource(vfMetaData, getUser());
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/VfDeploymentInformationalArtifacts.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/VfDeploymentInformationalArtifacts.java
index f7e7945227..24badb3ec2 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/VfDeploymentInformationalArtifacts.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/VfDeploymentInformationalArtifacts.java
@@ -58,10 +58,6 @@ public class VfDeploymentInformationalArtifacts extends SetupCDTest {
// TC1434241 - Import VF Artifacts - Deployment Artifacts - One Artifact, One Type
@Test
public void importVfArtifactsDeploymentArtifactsOneArtifactOneType() throws Exception {
-
- if(true){
- throw new SkipException("Open bug 320081");
- }
String fileName = "TC1434241.csar";
String folder ="US825779";
@@ -77,10 +73,6 @@ public class VfDeploymentInformationalArtifacts extends SetupCDTest {
// TC1434245 - Import VF Artifacts - Deployment Artifacts - Multiple Artifacts, Multiple Types
@Test
public void importVfArtifactsDeploymentArtifactsMultipleArtifactsMultipleTypes() throws Exception {
-
- if(true){
- throw new SkipException("Open bug 320081");
- }
String fileName = "TC1434245.csar";
String folder ="US825779";
@@ -545,9 +537,6 @@ public class VfDeploymentInformationalArtifacts extends SetupCDTest {
public void updateWithExistedDeploymentArtifactByArtifactWithDifferentType() throws Exception {
String folder ="US825779";
String fileName = "ImportTC1444206.csar";
- if(true){
- throw new SkipException("Open bug 320081");
- }
List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
@@ -604,11 +593,7 @@ public class VfDeploymentInformationalArtifacts extends SetupCDTest {
// US825779 - Story: [BE] Import VSP - VF informational artifacts - Update
// TC1444208 - Update With Existed Informational Artifact By Deployment Artifact With Different Type
@Test
- public void updateWithExistedInformationalArtifactByDeploymentArtifactWithDifferentType() throws Exception {
-
- if(true){
- throw new SkipException("Open bug 320081");
- }
+ public void updateWithExistedInformationalArtifactByDeploymentArtifactWithDifferentType() throws Exception {
String folder ="US825779";
String fileName = "ImportTC1444208.csar";
@@ -733,10 +718,6 @@ public class VfDeploymentInformationalArtifacts extends SetupCDTest {
@Test
public void importValidInformationalArtifactInInvalidFolerTest_TC1438313() throws Exception{
-
- if(true){
- throw new SkipException("Open bug 320081");
- }
String fileName = "ValidArtifactNameInInvalidFolder.csar";
String folder = "US824719";
@@ -749,10 +730,6 @@ public class VfDeploymentInformationalArtifacts extends SetupCDTest {
@Test
public void updateValidInformationalArtifactInInvalidFolerTest_TC1444533() throws Exception{
- if(true){
- throw new SkipException("Open bug 320081");
- }
-
String fileName = "ImportTC1444533.csar";
String folder = "US824719";
String filePath = FileHandling.getFilePath(folder);
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
index 496c537d49..264971e2d9 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
@@ -146,7 +146,7 @@ public class CompositionPage extends GeneralPageElements {
public static List<WebElement> getOpenTabTitle() throws Exception{
// return GeneralUIUtils.getElementsByCSS("expand-collapse span");
- return GeneralUIUtils.getElementsByCSS("expand-collapse");
+ return GeneralUIUtils.getElementsByCSS("expand-collapse ng-transclude");
}
public static void clickOnTab(DataTestIdEnum.CompositionScreenEnum tabSelector) throws Exception{
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/verificator/ServiceVerificator.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/verificator/ServiceVerificator.java
index 2689849b19..4035ef9243 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/verificator/ServiceVerificator.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/verificator/ServiceVerificator.java
@@ -145,10 +145,10 @@ public class ServiceVerificator {
public static void verifyOpenTabTitle(DataTestIdEnum.CompositionScreenEnum currentTab) throws Exception{
List<String> expectedTitles = new ArrayList<String>();
for(String expectedTitle: currentTab.getTitle()){
- expectedTitles.add(expectedTitle);
+ expectedTitles.add(expectedTitle.toLowerCase());
}
for (WebElement actualTitle: CompositionPage.getOpenTabTitle()){
- int indexOfTitle = expectedTitles.indexOf(actualTitle.getText());
+ int indexOfTitle = expectedTitles.indexOf(actualTitle.getText().trim().toLowerCase());
assertTrue(indexOfTitle >= 0, "Wrong title");
expectedTitles.remove(indexOfTitle);
}