public void DecommissionServiceAccount()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DecommissionServiceAccount");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Environment Details page
            string appServ = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appEnv  = ExcelMethods.GetValueOfHeader(ds, "ApplicationEnvironment");
            //Service Account Details page
            string servAcntName = ExcelMethods.GetValueOfHeader(ds, "ServiceAccount");
            string operation    = ExcelMethods.GetValueOfHeader(ds, "Operation");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Decommission Service Account");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Create Application Service Environment Offering'", "Unable select  'Create Application Service Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Environment Details page", "Unable to navigate to Environment Details page");
            reuse.TryCatchMethod(appServ, appEnv, EnvironmentDetails, "User is able to fill the details in Environment Details page", "User is not able to fill the details in Environment Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Operation page", "Unable to navigate to Operation page");
            reuse.TryCatchMethod(servAcntName, operation, SelectServiceAccountAndOperation, "User is able to select Service Account and Operation", "User is not able to select Service Account and Operation");
            reuse.TryCatchMethod(DecomServAcnt, "User is able to fill decommission service account", "User is not able to decommission service account");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #2
0
        public void CreateApplicationService()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet         = ExcelMethods.getAllSheetName();
            DataSet  ds               = ExcelMethods.getDataSetForSheet("ApplicationService");
            String   offeringName     = ExcelMethods.GetValueOfHeader(ds, "Offering");
            string   applicationOwner = ExcelMethods.GetValueOfHeader(ds, "ApplicationOwner");
            string   technicalContact = ExcelMethods.GetValueOfHeader(ds, "TechnicalContact");
            string   los              = ExcelMethods.GetValueOfHeader(ds, "Los");
            string   timeVariable     = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string   serviceName      = "testService " + timeVariable;
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Create Application Service");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Create Application Service Offering'", "Unable select  'Create Application Service Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(serviceName, applicationOwner, technicalContact, los, fillApplicationServiceDetails, "Selected 'Create Application Service Offering'", "Unable select  'Create Application Service Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
            //reuse.TryCatchMethod(verifyRequestRegisterMessageDisplayed, "Request registered successfully message is displayed", "Request registered successfully message is not displayed");
            // reuse.TryCatchMethod("Requests", "Create a new HyCS Application Service", "New", verifyRequestRegistered, "Request registered successfully", "Request not registered successfully");
        }
        public void ScreenNavigationVerification()
        {
            System.Threading.Thread.Sleep(5000);
            DecomAppEnv_AppEnvDetailsPage EnvDetails = new DecomAppEnv_AppEnvDetailsPage();
            string actualmessage = (Properties.driver.FindElement(By.XPath("//label[text()='Application Environment Validation']/following-sibling::textarea"))).GetAttribute("value");

            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DecomAppEnv_ActiveLoadBalancer");
            string   validmessage = ExcelMethods.GetValueOfHeader(ds, "ValidMessage");

            if (EnvDetails.txtPageHeader.Displayed)
            {
                if (actualmessage.Equals(validmessage))
                {
                    BaseTest.test.Log(LogStatus.Pass, "Proper validation message is displayed");
                }
                else
                {
                    BaseTest.test.Log(LogStatus.Fail, "Improper validation message is displayed");
                    NUnit.Framework.Assert.Fail();
                }
            }
            else
            {
                BaseTest.test.Log(LogStatus.Fail, "Navigated to Confirmation page even after containing active Load Balancers");
                NUnit.Framework.Assert.Fail();
            }
        }
Beispiel #4
0
        public void ManageStopStartSchedule()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("ManageStopStartSchedule");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Manage Schedule Details page
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string schedule   = ExcelMethods.GetValueOfHeader(ds, "Schedule");
            //Modify Schedule Information page
            string   schstartdate  = DateTime.Now.ToString("MM/dd/yyyy");
            DateTime date          = DateTime.Now.AddDays(6);
            string   schexpirydate = date.ToString("MM/dd/yyyy");

            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Manage Stop/Start Schedule");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Manage Application Service Environment Offering'", "Unable select  'Manage Application Service Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, schedule, ManageScheduleDetails, "User is able to edit the details in Manage Schedule Details page", "User is not able to edit the details in  Manage Schedule Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Modify Schedule Information page", "Unable to navigate to Modify Schedule Information Page");
            reuse.TryCatchMethod(schstartdate, schexpirydate, FillModifyScheduleInformation, "Modify Schedule Information page loaded", "Failed to load Modify Schedule Information page");
            System.Threading.Thread.Sleep(3000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Frequency and Recurrence Details page", "Unable to navigate to Frequency and Recurrence Details page");
            System.Threading.Thread.Sleep(3000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to VMs and Status page", "Unable to navigate to VMs and Status page");
            System.Threading.Thread.Sleep(3000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #5
0
        public void CreateDataDisk()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("CreateDataDisk");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page
            string appServ        = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv     = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string virtualmachine = ExcelMethods.GetValueOfHeader(ds, "VirtualMachine");
            //Data Disk Details page
            string storageaccttype = ExcelMethods.GetValueOfHeader(ds, "StorageAccountType");
            string disksize        = ExcelMethods.GetValueOfHeader(ds, "DiskSize");
            #endregion


            BaseTest.test = BaseTest.extent.StartTest("Create Data Disk");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Create Data Disk Offering", "Unable select Create Data Disk Offering");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, virtualmachine, FillCreateDataDiskRequestDetails, "Request Details page loaded", "Failed to load Request Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(storageaccttype, disksize, FillCreateDataDiskDataDiskDetails, "Data Disk Details page loaded", "Failed to load Data Disk Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #6
0
        public void DecommissionAvailabilitySet()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DecommissionAvailabilitySet");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string availSet   = ExcelMethods.GetValueOfHeader(ds, "AvailabilitySet");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Decommission Availability Set");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            BaseTest.test = BaseTest.extent.StartTest("Decommission Availability Set");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Decommission Availability Set Offering'", "Unable select  'Decommission Availability Set Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, availSet, FillDecAvaSetDetails, "Decommission Availability Set page is loaded", "Failed to load Decommission Availability Set");
            System.Threading.Thread.Sleep(5000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirmation page", "Unable to navigate to Confirmation page");
            reuse.TryCatchMethod(ConfirmDecom, "User is able to select Yes to Decommission the environment", "User is able to select Yes to Decommission the environment");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #7
0
        public void DeleteDataDisk()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DeleteDataDisk");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page
            string appServ        = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv     = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string virtualmachine = ExcelMethods.GetValueOfHeader(ds, "VirtualMachine");
            string datadisk       = ExcelMethods.GetValueOfHeader(ds, "DataDisk");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Delete Data Disk");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Delete Data Disk Offering", "Unable select Delete Data Disk Offering");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, virtualmachine, datadisk, FillDeleteDataDiskRequestDetails, "User is able to edit the details in Request Details Page", "User is not able to edit the details in Request Details Page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(ConfirmDecom, "User is able to select Yes to Delete this data disk", "User is able to select Yes to Delete this data disk");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #8
0
        public void ManageApplicationServiceEnvironment()
        {
            #region data Required
            String[] allSheet       = ExcelMethods.getAllSheetName();
            DataSet  ds             = ExcelMethods.getDataSetForSheet("ManageAppEnv");
            string   offeringName   = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            string   appServiceName = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string   oldEnvName     = ExcelMethods.GetValueOfHeader(ds, "EnvironmentName");
            string   uniqueVariable = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string   newEnvName     = "NewEnvName_" + uniqueVariable;
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Create Application Service");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Manage Application Service Environment Offering'", "Unable select  'Manage Application Service Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServiceName, oldEnvName, newEnvName, ManageEnvironment, "User is able to edit the details in Environment Details page", "User is not able to edit the details in Environment Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Billing Information page", "Unable to navigate to Billing Information Page");
            System.Threading.Thread.Sleep(3000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Technical Information page", "Unable to navigate to Technical Information page");
            System.Threading.Thread.Sleep(3000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Management Roles page", "Unable to navigate to Management Roles page");
            System.Threading.Thread.Sleep(3000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirmation page", "Unable to navigate to Confirmation page");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #9
0
        public void DecomLinuxVMNoActiveDataDisk()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DecomLinuxVMNoActiveDataDisk");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Environment Details page
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            //VM Details page
            string servers = ExcelMethods.GetValueOfHeader(ds, "Servers");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Decommission Azure Public Cloud VM");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Decommission Azure Public Cloud VM'", "Unable select  'Decommission Azure Public Cloud VM'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Environment Details screen", "Unable to navigate to Environment Details screen");
            reuse.TryCatchMethod(appServ, appServEnv, FillDecomLinuxVMNoActiveDataDiskEnvironmentDetails, "User is able to fill details", "User is not able to fill all the details");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to VM Details screen", "Unable to navigate to VM Details screen");
            reuse.TryCatchMethod(servers, FillDecomLinuxVMNoActiveDataDiskEnvironmentDetails, "User is able to fill details", "User is not able to fill all the details");
            reuse.TryCatchMethod(DecomLinuxVMNoActiveDataDiskValidation, "No data disk is displayed", "No data disk is not displayed since the selected VM contains active data disk");
            reuse.TryCatchMethod(ConfirmDecom, "User is able to select Yes", "User is unable to select Yes");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #10
0
        public void ManageAWSEnvironment()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("ManageAWSEnvironment");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page1
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "APPLICATIONSERVICE");
            string awsAccount = ExcelMethods.GetValueOfHeader(ds, "AWSACCOUNT");
            string awsVPC     = ExcelMethods.GetValueOfHeader(ds, "AWSVPC");
            string awsEnv     = ExcelMethods.GetValueOfHeader(ds, "AWSENVIRONMENT");

            //Management Roles page
            string usersToBeAdded = ExcelMethods.GetValueOfHeader(ds, "USERSTOBEADDED");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Create AWS Environment");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Create AWS Envionment Offering", "Unable select Create AWS Environment Offering");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, awsAccount, awsVPC, awsEnv, FillManageAWSEnvRequestDetails, "Request Details page loaded", "Failed to load Request Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(NextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(usersToBeAdded, FillUsersToBeAdded, "User is able to add deployment managers", "User is unable to add deployment managers");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #11
0
        public void RequestAzureSQLPass()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("AzureSQLPaaS");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Environment Details page
            string appService     = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appEnvironment = ExcelMethods.GetValueOfHeader(ds, "ApplicationEnvironment");
            //Technical Details page
            string instancesQty = ExcelMethods.GetValueOfHeader(ds, "DBInstancesQuantity");
            string pricingTier  = ExcelMethods.GetValueOfHeader(ds, "DBPricingTier");
            string serverAdmin  = ExcelMethods.GetValueOfHeader(ds, "SQLServerAdmin");
            string password     = ExcelMethods.GetValueOfHeader(ds, "Password");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Request Azure SQL PaaS Instance");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Create Application Service Environment Offering'", "Unable select  'Create Application Service Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Environment Details page", "Unable to navigate to Environment Details page");
            reuse.TryCatchMethod(appService, appEnvironment, FillEnvDetails, "User is able to fill the details in Environment Details Page", "User is not able to fill the details in Environment Details Page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Technical Details page", "Unable to navigate to Technical Details page");
            reuse.TryCatchMethod(instancesQty, pricingTier, serverAdmin, password, FillTechnicalDetails, "User is able to fill the details in Technical Details page", "User is able to fill the details in Technical Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Validation page", "Unable to navigate to Validation page");
            common.smallwait();
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #12
0
        public void CreateAzureLoadBalancer()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("CreateAzureLoadBalancer");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string tier       = ExcelMethods.GetValueOfHeader(ds, "Tier");
            //Load Balancer Details page
            string availabilitySet    = ExcelMethods.GetValueOfHeader(ds, "AvailabilitySet");
            string port               = ExcelMethods.GetValueOfHeader(ds, "Port");
            string sessionPersistence = ExcelMethods.GetValueOfHeader(ds, "SessionPersistence");
            string vmsToBeAdded       = ExcelMethods.GetValueOfHeader(ds, "VMsToBeAdded");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Create Azure Load Balancer");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Create Azure Load Balancer Offering", "Unable select Create Azure Load Balancer Offering");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, tier, FillCreateAzureLoadBalancerRequestDetails, "Request Details page loaded", "Failed to load Request Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(availabilitySet, port, sessionPersistence, vmsToBeAdded, FillCreateAzureLoadBalancer_LBDetails, "Load Balancer Details page loaded", "Failed to load Load Balancer Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
        public void RequestPwCCloudAccount_GLBLShared()
        {
            #region data Required
            ExcelMethods em           = new ExcelMethods();
            String[]     allSheet     = ExcelMethods.getAllSheetName();
            DataSet      ds           = ExcelMethods.getDataSetForSheet("RequestPwCCloudAccount");
            string       offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Request PwC Cloud Account(GLBLShared)");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Request PwC Cloud Account(GLBLShared) ", "Unable select Request PwC Cloud Account(GLBLShared)");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #14
0
        public void StartVM()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet = ExcelMethods.getAllSheetName();
            DataSet  ds       = ExcelMethods.getDataSetForSheet("StartVM");
            string   VMName   = ExcelMethods.GetValueOfHeader(ds, "VMName");
            #endregion
            BaseTest.test = BaseTest.extent.StartTest("Decommission Service Account");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(VMName, SelectVM, "VM Selected", "Unable to Select VM");
            reuse.TryCatchMethod(ClickStartVM, "Navigated to Start VM Page", "Unable to navigate to Start VM Page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Request Details page", "Unable to navigate to Request Details page");
            reuse.TryCatchMethod(SelectYes, "User is able to select yes to deallocate the VM", "User is able to select yes to deallocate the VM");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #15
0
        public void CreateApplicationEnvironment()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet = ExcelMethods.getAllSheetName();
            DataSet  ds       = ExcelMethods.getDataSetForSheet("CreateAppEnv2");

            string offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Environment Details page
            string appServName        = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string timeVariable       = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string envName            = "testEnv_" + timeVariable;
            string envType            = ExcelMethods.GetValueOfHeader(ds, "EnvironmentType");
            string dataClassification = ExcelMethods.GetValueOfHeader(ds, "DataClassification");
            //Billing Information page fields
            string billingTerritory = ExcelMethods.GetValueOfHeader(ds, "BillingTerritory");
            string chargeCode       = ExcelMethods.GetValueOfHeader(ds, "ChargeCode");
            string partner          = ExcelMethods.GetValueOfHeader(ds, "PartnerOrSponser");
            string depManageType    = ExcelMethods.GetValueOfHeader(ds, "DeploymentManageType");
            //Technical Information page fields
            string depType         = ExcelMethods.GetValueOfHeader(ds, "DeploymentType");
            string hostingLocation = ExcelMethods.GetValueOfHeader(ds, "HostingLocation");
            string webTierSize     = ExcelMethods.GetValueOfHeader(ds, "WebTierSize");
            string appTierSize     = ExcelMethods.GetValueOfHeader(ds, "AppTierSize");
            string DataTierSize    = ExcelMethods.GetValueOfHeader(ds, "DataTierSize");
            #endregion
            BaseTest.test = BaseTest.extent.StartTest("Create Application Service");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Create Application Service Environment Offering'", "Unable select  'Create Application Service Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServName, envName, envType, dataClassification, FillAppEnvDetails, "Environment Details page loaded", "Failed to load Environment Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(billingTerritory, chargeCode, partner, depManageType, FillBillingDetails, "Billing Information page loaded successfully", "Failed to load Billing Information page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(depType, hostingLocation, appTierSize, FillTechnicalDetails, "Technical Information page loaded successfully", "Failed to load Technical Information page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");


            //Approval part
        }
Beispiel #16
0
        public void CreateStopStartSchedule()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("CreateStopStartSchedule");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Schedule Details page1
            string appServ      = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv   = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string timeVariable = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string schedulename = "Schedule_" + timeVariable;
            //Schedule Details page2
            string   timezone      = ExcelMethods.GetValueOfHeader(ds, "TimeZone");
            string   schstartdate  = DateTime.Now.ToString("MM/dd/yyyy");
            DateTime date          = DateTime.Now.AddDays(6);
            string   schexpirydate = date.ToString("MM/dd/yyyy");
            //Frequency and Recurrence Details page
            string   frequency   = ExcelMethods.GetValueOfHeader(ds, "Frequency");
            string   vmstarttime = DateTime.Now.TimeOfDay.ToString("hh\\:mm");
            TimeSpan span        = TimeSpan.FromHours(16);
            DateTime time        = DateTime.Today + span;
            string   vmstoptime  = time.ToString("hh:mm");
            //Status and Validation page
            string schedulestatus = ExcelMethods.GetValueOfHeader(ds, "ScheduleStatus");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Create Stop/Start Schedule");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Create Application Service Environment Offering'", "Unable select  'Create Application Service Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, schedulename, FillSchedule1Details, "Schedule Details page1 loaded", "Failed to load Schedule Details page1");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(timezone, schstartdate, schexpirydate, FillSchedule2Details, "Schedule Details page2 loaded", "Failed to load Schedule Details page2");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(frequency, vmstarttime, vmstoptime, FillFreqandRecDetails, "Frequency and Recurrence Details page loaded", "Failed to load Frequency and Recurrence Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(schedulestatus, FillStatusandValidationDetails, "Status and Validation page loaded", "Failed to load Status and Validation page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #17
0
        public void RequestdotNetIaasPlatform()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("RequestdotNetIaasPlatform");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Choose Offerings page
            //string subscription = ExcelMethods.GetValueOfHeader(ds, "Subscription");
            //VSTS Details page
            string vstsact         = ExcelMethods.GetValueOfHeader(ds, "VSTSAccount");
            string vstsprotemplate = ExcelMethods.GetValueOfHeader(ds, "VSTSProTemplate");
            //Application Service Details page
            string timeVariable = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string appServName  = "ApplicationService_" + timeVariable;
            string appOwner     = ExcelMethods.GetValueOfHeader(ds, "ApplicationOwner");
            string techContact  = ExcelMethods.GetValueOfHeader(ds, "TechnicalContact");
            string los          = ExcelMethods.GetValueOfHeader(ds, "LineOfService");
            //Application Environment Details page
            string dataclassification = ExcelMethods.GetValueOfHeader(ds, "Dataclassification");
            string hostingloc         = ExcelMethods.GetValueOfHeader(ds, "HostingLocation");
            string billterritory      = ExcelMethods.GetValueOfHeader(ds, "BillingTerritory");
            string chargeCode         = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string partner            = ExcelMethods.GetValueOfHeader(ds, "Partner/Sponsor");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Request .NET IaaS Platform");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Request .NET IaaS Platform Offering'", "Unable select Request .NET IaaS Platform Offering'");
            //reuse.TryCatchMethod(subscription, SelectSubscription, "User is able to select Subscription", "User is unable to select Subscription");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(vstsact, vstsprotemplate, FillVSTSDetails, "VSTS Details page loaded", "Failed to load VSTS Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServName, appOwner, techContact, los, FillAppServDetails, "Application Service Details page loaded", "Failed to loadApplication Service Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(dataclassification, hostingloc, billterritory, chargeCode, partner, FillAppEnvDetails, "Application Environment Details page loaded", "Application Environment Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #18
0
 public void DecommissionApplicationEnvironment()
 {
     #region data Required
     String[] allSheet     = ExcelMethods.getAllSheetName();
     DataSet  ds           = ExcelMethods.getDataSetForSheet("DecomAppEnv");
     string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
     string   appService   = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
     string   envName      = ExcelMethods.GetValueOfHeader(ds, "EnvironmentName");
     #endregion
     BaseTest.test = BaseTest.extent.StartTest("Create Application Service");
     reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
     reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
     reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Manage Application Service Environment Offering'", "Unable select  'Manage Application Service Environment Offering'");
     reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
     reuse.TryCatchMethod(appService, envName, SelectEnvironment, "User is able to select Environment which is to be Decommissioned", "User is not able to select Environment which is to be Decommissioned");
     reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirmation page", "Unable to navigate to Confirmation page");
     reuse.TryCatchMethod(ConfirmDecom, "User is able to select Yes to Decommission the environment", "User is able to select Yes to Decommission the environment");
     reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
     reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
 }
        public void DecomAppEnv_ActiveLoadBalancer()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DecomAppEnv_ActiveLoadBalancer");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            string   appService   = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string   envName      = ExcelMethods.GetValueOfHeader(ds, "EnvironmentName");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Decommission Application Environment");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Decommission Application Environment Offering'", "Unable select 'Decommission Application Environment Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appService, envName, SelectEnvironment, "User is able to select Environment which is to be Decommissioned", "User is not able to select Environment which is to be Decommissioned");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Next button is clicked", "Unable to click on next button");
            reuse.TryCatchMethod(ScreenNavigationVerification, "Environment with active Load Balancer is restriced from decommissioning", "User is able to decommission an environment containing active load balancer");
        }
        public void RequestAzurePublicCloudVM_External()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("RequestAzurePublicCloudVM_External");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Environment Details Page
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string osFamily   = ExcelMethods.GetValueOfHeader(ds, "OSFamily");
            //Web Tier Details Page
            string webTierQuantity    = ExcelMethods.GetValueOfHeader(ds, "WebTierQuantity");
            string webTierDiskSize    = ExcelMethods.GetValueOfHeader(ds, "WebTierDiskSize");
            string webTierAvaSet      = ExcelMethods.GetValueOfHeader(ds, "WebTierAvailabilitySet");
            string webTierServerClass = ExcelMethods.GetValueOfHeader(ds, "WebTierServerClass");
            string webTierServerType  = ExcelMethods.GetValueOfHeader(ds, "WebTierServerTypes");
            //App Tier Details Page
            string appTierQuantity    = ExcelMethods.GetValueOfHeader(ds, "AppTierQuantity");
            string appTierDiskSize    = ExcelMethods.GetValueOfHeader(ds, "AppTierDiskSize");
            string appTierAvaSet      = ExcelMethods.GetValueOfHeader(ds, "AppTierAvailabilitySet");
            string appTierServerClass = ExcelMethods.GetValueOfHeader(ds, "AppTierServerClass");
            string appTierServerType  = ExcelMethods.GetValueOfHeader(ds, "AppTierServerType");
            //Data Tier Details Page
            string dBTierQuantity    = ExcelMethods.GetValueOfHeader(ds, "DataBaseTierQuantity");
            string dBTierDiskSize    = ExcelMethods.GetValueOfHeader(ds, "DataBaseTierDiskSize");
            string dBTierAvaSet      = ExcelMethods.GetValueOfHeader(ds, "DataBaseTierAvailabitySet");
            string dBTierServerClass = ExcelMethods.GetValueOfHeader(ds, "DataBaseTierServerClass");
            string dBTierServerType  = ExcelMethods.GetValueOfHeader(ds, "DataBaseTierServerType");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Request Azure Public Cloud VM(s) for External-facing Apps");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Request Azure Public Cloud VM(s) for External-facing Apps Offering", "Unable select Request Azure Public Cloud VM(s) for External-facing Apps Offering");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, osFamily, FillVMExternalEnvDetailsPage, "Environment Details Page loaded", "Failed to load Environment Details Page");
            reuse.TryCatchMethod(webTierQuantity, webTierDiskSize, webTierAvaSet, webTierServerClass, webTierServerType, FillVMExtWebTierDetailsPage, "Web Tier Details Page loaded", "Failed to load Web Tier Details Page");
        }
        public void RemovePermissionAppEnvValidation()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet = ExcelMethods.getAllSheetName();
            DataSet  ds       = ExcelMethods.getDataSetForSheet("RemovePermissionEnvValidation");

            string offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            string appServName  = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string envName      = ExcelMethods.GetValueOfHeader(ds, "ApplicationEnvironment");
            string reason       = ExcelMethods.GetValueOfHeader(ds, "Reason");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Remove permission to deploy Resource(s) to an environment");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Remove Permission to deploy resource on application environment'", "Unable select  'Remove Permission to deploy resource on application environment'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Request Details screen", "Unable to navigate to Request Details screen");
            reuse.TryCatchMethod(appServName, envName, reason, FillRemovePermissionAppEnvValidation, "User is able to fill details", "User is not able to fill all the details");
            reuse.TryCatchMethod(RemovePermissionValidation, "User is able to Validate", "User is unable to Validate");
        }
Beispiel #22
0
 public void DeleteStopStartSchedule()
 {
     #region data Required
     String[] allSheet     = ExcelMethods.getAllSheetName();
     DataSet  ds           = ExcelMethods.getDataSetForSheet("DeleteStopStartSchedule");
     string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
     //Schedule Details page
     string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
     string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
     string schedule   = ExcelMethods.GetValueOfHeader(ds, "Schedule");
     #endregion
     BaseTest.test = BaseTest.extent.StartTest("Delete Stop/Start Schedule");
     reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
     reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
     reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Manage Application Service Environment Offering'", "Unable select  'Manage Application Service Environment Offering'");
     reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
     reuse.TryCatchMethod(appServ, appServEnv, schedule, FillDelScheduleDetails, "User is able to edit the details in Schedule Details page", "User is not able to edit the details in Manage Schedule Details page");
     reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirmation page", "Unable to navigate to Confirmation page");
     reuse.TryCatchMethod(ConfirmDecom, "User is able to select Yes to Decommission the environment", "User is able to select Yes to Decommission the environment");
     reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Confirm page", "Unable to navigate to Confirm page");
     //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
 }
Beispiel #23
0
        public void CreateAWSEnvironment()

        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("CreateAWSEnvironment");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page1
            string appServ            = ExcelMethods.GetValueOfHeader(ds, "APPLICATIONSERVICE");
            string awsAccount         = ExcelMethods.GetValueOfHeader(ds, "AWSACCOUNT");
            string awsVPC             = ExcelMethods.GetValueOfHeader(ds, "AWSVPC");
            string awsEnvType         = ExcelMethods.GetValueOfHeader(ds, "AWSENVIRONMENTTYPE");
            string timeVariable       = DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
            string awsEnvName         = "Test" + timeVariable;
            string dataClassification = ExcelMethods.GetValueOfHeader(ds, "DATACLASSIFICATION");
            //Management Roles
            string depManager = ExcelMethods.GetValueOfHeader(ds, "DEPLOYMENTMANAGER");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Create AWS Environment");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected Create AWS Envionment Offering", "Unable select Create AWS Environment Offering");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, awsAccount, awsVPC, awsEnvType, awsEnvName, dataClassification, FillCreateAWSEnvRequestDetails, "Request Details page loaded", "Failed to load Request Details page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(ConfirmDeployAppTier, "User is able to select Yes to 'DO YOU WANT TO DEPLOY APP TIER?'", "User is not able to select Yes to 'DO YOU WANT TO DEPLOY APP TIER?");
            reuse.TryCatchMethod(ConfirmDeployLoadBal, "User is able to select Yes to 'DO YOU WANT TO DEPLOY INTERNAL LOAD BALANCER?'", "User is not able to select Yes to 'DO YOU WANT TO DEPLOY INTERNAL LOAD BALANCER?");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(depManager, FillDeploymentManagerDetails, "User is able to add deployment managers", "User is unable to add deployment managers");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #24
0
        public void ManageUpdateWaves()
        {
            #region data Required
            ExcelMethods em       = new ExcelMethods();
            String[]     allSheet = ExcelMethods.getAllSheetName();
            DataSet      ds       = ExcelMethods.getDataSetForSheet("ManageUpdateWaves");
            //Resources Tab
            string vmName = ExcelMethods.GetValueOfHeader(ds, "VMName");
            //Update Wave Page
            string updateWave = ExcelMethods.GetValueOfHeader(ds, "UpdateWave");
            #endregion

            BaseTest.test = BaseTest.extent.StartTest("Manage Update Waves");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToResources, "Navigated to Resources screen", "Unable to naviagte to Resources screen");
            reuse.TryCatchMethod(vmName, selectVM, "Selected VM", "Unable select VM");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            System.Threading.Thread.Sleep(5000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(updateWave, FillUpdateWaveDetails, "User is able to edit the details in Update Wave Page", "User is not able to edit the details in Update Wave Page");
            reuse.TryCatchMethod(ConfirmUpdate, "User is able to select Yes", "User is unable to select Yes");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            //reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #25
0
        public void OnboardAzureVMs()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("OnboardAzureVMs");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");

            //Request Details page
            string appService        = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string azureSubscription = ExcelMethods.GetValueOfHeader(ds, "AzureSubscription");
            string vnet          = ExcelMethods.GetValueOfHeader(ds, "Vnet");
            string resourceGroup = ExcelMethods.GetValueOfHeader(ds, "ResourceGroup");
            //Application Environment Details page
            string environmentType = ExcelMethods.GetValueOfHeader(ds, "EnvironmentType");


            #endregion


            BaseTest.test = BaseTest.extent.StartTest("Onboard Azure VMs");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Onboard Azure VMs'", "Unable select 'Onboard Azure VMs'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Request Details screen", "Unable to navigate to Request Details screen");
            reuse.TryCatchMethod(appService, azureSubscription, vnet, resourceGroup, OnboardAzureVMsRequestDetails, "User is able to fill details", "User is not able to fill all the details");
            System.Threading.Thread.Sleep(20000);
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Application Environment Details page screen", "Unable to navigate to Application Environment Details page screen");
            reuse.TryCatchMethod(environmentType, OnboardAzureVMsAppEnvDetails, "User is able to fill details", "User is not able to fill all the details");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Billing Information screen", "Unable to navigate to Billing Information screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Technical Information screen", "Unable to navigate to Technical Information screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to Management Roles screen", "Unable to navigate to Management Roles screen");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #26
0
        public void CreateAvailabilitySet()
        {
            ExcelMethods em = new ExcelMethods();

            #region data Required
            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("CreateAvailabilitySet");
            string   offeringName = ExcelMethods.GetValueOfHeader(ds, "OfferingName");
            //Request Details page
            string appServ    = ExcelMethods.GetValueOfHeader(ds, "ApplicationService");
            string appServEnv = ExcelMethods.GetValueOfHeader(ds, "ApplicationServiceEnvironment");
            string tier       = ExcelMethods.GetValueOfHeader(ds, "Tier");
            #endregion


            BaseTest.test = BaseTest.extent.StartTest("Create Availability Set");
            reuse.TryCatchMethod(reuse.LoginToWAP, "Logged in successfully", "Unable to login");
            reuse.TryCatchMethod(navigateToChooseOffering, "Navigated to Choose offering screen", "Unable to naviagte to Choose Offerings screen");
            reuse.TryCatchMethod(offeringName, SelectOfferings, "Selected 'Create Availability Set Offering'", "Unable select  'Create Availability Set Offering'");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(appServ, appServEnv, tier, FillRequestDetails, "Describe your request page is loaded", "Failed to load Describe your request page");
            reuse.TryCatchMethod(reuse.moveToNextPage, "Navigated to next screen", "Unable to navigate to next screen");
            reuse.TryCatchMethod(clickOnCompleteIcon, "Clicked on complete icon", "Unable to click on complete icon");
        }
Beispiel #27
0
 public void testSetup()
 {
     Console.WriteLine("setup");
     ExcelMethods.OpenDBConnection();
     StartReport();
 }