@Test
  public void checkFactoryURLWithWARProjectTypeTest() throws Exception {
    PROJECT = "war";

    IDE.GET_STARTED_WIZARD.waitAndCloseWizard();
    IDE.WELCOME_PAGE.clickCreateNewProjectFromScratch();
    IDE.CREATE_PROJECT_FROM_SCRATHC.waitCreateProjectFromScratch();
    IDE.CREATE_PROJECT_FROM_SCRATHC.typeProjectName(PROJECT);
    IDE.CREATE_PROJECT_FROM_SCRATHC.selectJavaWebApplicationTechnology();
    IDE.CREATE_PROJECT_FROM_SCRATHC.clickNextButton();
    IDE.CREATE_PROJECT_FROM_SCRATHC.waitProjectTemplateForm();
    IDE.CREATE_PROJECT_FROM_SCRATHC.selectProjectTemplate("Java Web project.");
    IDE.CREATE_PROJECT_FROM_SCRATHC.clickFinishButton();
    IDE.LOADER.waitClosed();
    IDE.PACKAGE_EXPLORER.waitItemInPackageExplorer(PROJECT);

    IDE.MENU.runCommand(MenuCommands.Share.SHARE, MenuCommands.Share.FACTORY_URL);
    IDE.LOADER.waitClosed();
    IDE.FACTORY_URL.waitFactoryURLFormOpened();
    IDE.LOADER.waitClosed();
    IDE.FACTORY_URL.clickOnNextFactoryButton();
    IDE.FACTORY_URL.waitForFinishCreationPage();
    String factoryURL = IDE.FACTORY_URL.getDirectSharingURL();
    IDE.FACTORY_URL.clickOnFinishButtonInFactoryURLForm();
    IDE.LOGIN.logout();
    driver.get(factoryURL);
    IDE.PACKAGE_EXPLORER.waitItemInPackageExplorer(PROJECT);

    IDE.MENU.runCommand(MenuCommands.Project.PROJECT, MenuCommands.Project.PROJECT_PROPERTIES);
    IDE.PROPERTIES.waitProjectPropertiesOpened();
    assertTrue(
        IDE.PROPERTIES
            .getAllTextFromProjectProperties()
            .contains("Project Type\n" + "Servlet/JSP"));
  }
  @Test
  public void checkFactoryURLWithPHPProjectTypeTest() throws Exception {
    PROJECT = "php";

    driver.get(LOGIN_URL);
    waitIdeLoginPage();
    IDE.LOGIN.waitTenantAllLoginPage();
    IDE.LOGIN.tenantLogin(USER_NAME, USER_PASSWORD);

    IDE.GET_STARTED_WIZARD.waitAndCloseWizard();
    IDE.WELCOME_PAGE.clickCreateNewProjectFromScratch();
    IDE.CREATE_PROJECT_FROM_SCRATHC.waitCreateProjectFromScratch();
    IDE.CREATE_PROJECT_FROM_SCRATHC.typeProjectName(PROJECT);
    IDE.CREATE_PROJECT_FROM_SCRATHC.selectPHPTechnology();
    IDE.CREATE_PROJECT_FROM_SCRATHC.clickNextButton();
    IDE.CREATE_PROJECT_FROM_SCRATHC.waitProjectTemplateForm();
    IDE.CREATE_PROJECT_FROM_SCRATHC.selectProjectTemplate("Simple PHP project.");
    IDE.CREATE_PROJECT_FROM_SCRATHC.clickFinishButton();
    IDE.LOADER.waitClosed();
    IDE.EXPLORER.waitForItem(PROJECT);

    IDE.MENU.runCommand(MenuCommands.Share.SHARE, MenuCommands.Share.FACTORY_URL);
    IDE.FACTORY_URL.waitFactoryURLFormOpened();
    IDE.FACTORY_URL.clickOnNextFactoryButton();
    IDE.FACTORY_URL.waitForFinishCreationPage();
    String factoryURL = IDE.FACTORY_URL.getDirectSharingURL();
    IDE.FACTORY_URL.clickOnFinishButtonInFactoryURLForm();
    IDE.LOGIN.logout();
    driver.get(factoryURL);
    IDE.FACTORY_URL.waitWelcomeIframe();
    IDE.selectMainFrame();
    IDE.EXPLORER.waitForItem(PROJECT);
    IDE.MENU.runCommand(MenuCommands.Project.PROJECT, MenuCommands.Project.PROJECT_PROPERTIES);
    IDE.PROPERTIES.waitProjectPropertiesOpened();
    assertTrue(IDE.PROPERTIES.getAllTextFromProjectProperties().contains("Project Type\n" + "PHP"));
  }