Fix 'unable to run TCs separately' 03/125503/3
authorvasraz <vasyl.razinkov@est.tech>
Mon, 1 Nov 2021 12:24:40 +0000 (12:24 +0000)
committerAndr� Schmid <andre.schmid@est.tech>
Tue, 2 Nov 2021 16:39:16 +0000 (16:39 +0000)
running TC 'ImportVfcUiTest.importVfcWithModel()' separately produces initialization error

Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I5ce70532bb66e31565b74d96accd89da7e9fafed
Issue-ID: SDC-3770

integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/execute/sanity/ImportVfcUiTest.java

index fa02b44..834732b 100644 (file)
@@ -80,13 +80,13 @@ public class ImportVfcUiTest extends SetupCDTest {
     @BeforeClass
     public void beforeClass() {
         filePath = FileHandling.getFilePath("VFCs/");
+        webDriver = DriverFactory.getDriver();
+        homePage = new HomePage(webDriver);
     }
 
     @Test
     public void importVFC_createVF_addVFC2VF_test() throws UnzipException {
         ComponentPage componentPage;
-        webDriver = DriverFactory.getDriver();
-        homePage = new HomePage(webDriver);
         // TC - Import VFC with root namespace
         String fileName = "org.openecomp.resource.VFC-root.yml";
         CreateVfcFlow createVfcFlow = createVFC(fileName, ModelName.DEFAULT_MODEL_NAME.getName(), vfcCategory);