public void setUp() throws Exception { Utility_Functions utilityFunction = new Utility_Functions(); String str_path = "Global_variables.xml"; String VAR_ProxURL = utilityFunction.GetValue(str_path, "VAR_ProxURL"); String VAR_BROWSER_PATH = utilityFunction.GetValue(str_path, "VAR_BROWSER_PATH"); String VAR_Columbia_APPURL = utilityFunction.GetValue(str_path, "VAR_Columbia_APPURL"); if (!flag) { selenium = new DefaultSelenium(VAR_ProxURL, 4444, VAR_BROWSER_PATH, VAR_Columbia_APPURL); selenium.start(); flag = true; selenium.setTimeout("0"); utilityFunction = null; } }
public void test_Sm_vpc_015_complexPresentationUpload() throws Exception { { try { // Global variables file name String globalVariableFile = "Global_variables.xml"; // Local variable file name String localVariableFile = "CVP_Sm_vpc_015_complexPresentationUpload.xml"; setUp(); Utility_Functions utilityFunction = new Utility_Functions(); // Variable for the user name String VAR_USR = utilityFunction.GetValue(globalVariableFile, "VAR_USR"); // Variable for the Password String VAR_PWD = utilityFunction.GetValue(globalVariableFile, "VAR_PWD"); // Variable for domain name String Var_DomainName = utilityFunction.GetValue(globalVariableFile, "Var_DomainClassic"); // Variable for complex presentation display name String Var_complexPresentationDisplayName = utilityFunction.GetValue(localVariableFile, "Var_complexPresentationDisplayName"); // Variable for complex presentation file name String Var_complexPresentationFileName = utilityFunction.GetValue(localVariableFile, "Var_complexPresentationFileName"); // Variable for complex presentation duration // String Var_complexPresentationDuration=utilityFunction.GetValue(localVariableFile // ,"Var_complexPresentationDuration"); Login.adminPortalLogin(selenium, VAR_USR, VAR_PWD, Var_DomainName); Upload_Media.Upload_complexPresentation( selenium, Var_complexPresentationDisplayName, Var_complexPresentationFileName); utilityFunction.waitForChangesToReflect(); Advance_Search.AdvanceSearch(selenium, Var_complexPresentationDisplayName); utilityFunction.waitForElementToPresent(selenium, EnvObjectMap_Rep.Lbl_nameHeader, 300); assertTrue( "Sm_vpc_015", "Classic VP: Ensure that Complex presentation file is uploaded in Content page.", date, selenium.isTextPresent(Var_complexPresentationDisplayName)); } catch (Exception e) { e.printStackTrace(); } finally { selenium.close(); selenium.stop(); } } }