blob: 99957cf1fe3dc3c3461dae5968099746b476eb1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.att.ecomp.dcae.ci.ui.tests.verificator;
import org.openecomp.d2.ci.report.ExtentTestActions;
import org.openecomp.d2.ci.utilities.GeneralUIUtils;
import com.aventstack.extentreports.Status;
import static org.testng.Assert.assertTrue;
public class ServiceVerificator
{
public static void verifyBluePrintArtifactExist(String name)
{
ExtentTestActions.log(Status.INFO,"Verifying Blue Print artifact exist");
String artifactName = "Foi" + "." + name.replaceAll("\\s+","").replaceAll("-", "") + ".event_proc_bp.yaml";
GeneralUIUtils.waitForElementInVisibilityByTestId("artifactName-blueprint-foi");
String actualBluePrintFileName = GeneralUIUtils.getWebElementByTestID("artifactName-blueprint-foi").getText();
assertTrue(artifactName.equalsIgnoreCase(actualBluePrintFileName));
ExtentTestActions.log(Status.INFO, String.format("Actual Blue print file name is: %s.", actualBluePrintFileName));
GeneralUIUtils.ultimateWait();
}
}
|