Exemplo n.º 1
0
 public void WhenSaveTheBatchAndCommitIt(Table batch)
 {
     EnhancedRevenueBatchDialog.UpdateProjectedTotals();
     BatchDialog.Validate();
     BatchDialog.SaveAndClose();
     WhenICommitTheBatch(batch);
 }
Exemplo n.º 2
0
 public void WhenIAddABatchWithTemplateAndDescription(string template, string description, Table batchRows)
 {
     try
     {
         description += uniqueStamp;                      //The unique stamp is a series of numbers to keep constituents different from each other
         BBCRMHomePage.OpenRevenueFA();                   //Open revenue functional area
         RevenueFunctionalArea.BatchEntry();              //Open the batch entry page
         BatchEntryPanel.AddBatch(template, description); //add a new batch according to the template name and description
         foreach (var batchRow in batchRows.Rows)
         {
             if (batchRow.Keys.Contains("Constituent") && batchRow["Constituent"] != null &&
                 batchRow["Constituent"] != string.Empty)
             {
                 batchRow["Constituent"] += uniqueStamp;  //The unique stamp is a series of numbers to keep constituents different from each other
             }
         }
         EnhancedRevenueBatchDialog.SetGridRows(batchRows);
         EnhancedRevenueBatchDialog.UpdateProjectedTotals(); //click on the update projected totals button and  receive updated totals
         BatchDialog.Validate();                             //click the validate button
         BatchDialog.SaveAndClose();
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not add a batch with template and description. " + ex.Message);
     }
 }
Exemplo n.º 3
0
        public void WhenIAddABatchWithCheckTemplateAndDescriptionAndProjectedNumberAndProjectedAmount(string template, string description, string ProjectedNumber, string ProjectedAmount, Table batchRows)
        {
            try
            {
                description += uniqueStamp;                                                                        //The unique stamp is a series of numbers to keep constituents different from each other
                BBCRMHomePage.OpenRevenueFA();                                                                     //Open revenue functional area
                RevenueFunctionalArea.BatchEntry();                                                                //Open the batch entry page
                BatchEntryPanel.OpenTab("Uncommitted Batches");                                                    // Open the Uncommitted Batches tab
                BatchEntryPanel.ClickSectionAddButton("Uncommitted batches", "Add");                               // add an uncommitted batch
                Dialog.SetDropDown(Dialog.getXInput("Batch2AddForm", "BATCHTEMPLATEID"), template);                // enter the template name
                Dialog.SetTextField(Dialog.getXTextArea("Batch2AddForm", "DESCRIPTION"), description);             // enter the batch desx.
                Dialog.SetTextField("//input[contains(@id, '_PROJECTEDNUMBEROFRECORDS_value')]", ProjectedNumber); // add projected number of records
                Dialog.SetTextField("//input[contains(@id, '_PROJECTEDTOTALAMOUNT_value')]", ProjectedAmount);     // add propected dollar amount
                Dialog.Save();

                foreach (var batchRow in batchRows.Rows)
                {
                    if (batchRow.Keys.Contains("Constituent") && batchRow["Constituent"] != null &&
                        batchRow["Constituent"] != string.Empty)
                    {
                        batchRow["Constituent"] += uniqueStamp;  //The unique stamp is a series of numbers to keep constituents different from each other
                    }
                }
                EnhancedRevenueBatchDialog.SetGridRows(batchRows);
                EnhancedRevenueBatchDialog.UpdateProjectedTotals(); //click on the update projected totals button and  receive updated totals
                BatchDialog.Validate();                             //click the validate button
                BatchDialog.SaveAndClose();
            }
            catch (Exception ex)
            {
                throw new Exception("Error: could not add a batch with template and description. " + ex.Message);
            }
        }
Exemplo n.º 4
0
 public void WhenIPrepareTheBatchForCommit()
 {
     BatchDialog.OpenTab("Main");
     //Check is visible
     BaseComponent.GetEnabledElement("//button[contains(@class,' x-btn-text') and ./text()='Update projected totals']");
     //Update projected totals
     Dialog.ClickButton("Update projected totals", null);
     BaseComponent.GetEnabledElement("//button[./text()='OK']");
     Dialog.OK();
     //Validate
     BatchDialog.Validate();
     //Save and close
     BatchDialog.SaveAndClose();
 }
Exemplo n.º 5
0
 public void WhenSaveTheBatchAndCommitIt(Table batch)
 {
     try
     {
         Dialog.OpenTab("Main");
         EnhancedRevenueBatchDialog.UpdateProjectedTotals(); //click on the update projected totals button and  receive updated totals
         BatchDialog.Validate();                             //click the validate button
         BatchDialog.SaveAndClose();
         WhenICommitTheBatch(batch);                         //commit the batch
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not save the batch and commit it. " + ex.Message);
     }
 }
Exemplo n.º 6
0
 public void WhenIAddABatchWithTemplateAndDescription(string template, string description, Table batchRows)
 {
     description += uniqueStamp;
     BBCRMHomePage.OpenRevenueFA();
     RevenueFunctionalArea.BatchEntry();
     BatchEntryPanel.AddBatch(template, description);
     foreach (var batchRow in batchRows.Rows)
     {
         if (batchRow.Keys.Contains("Constituent") && batchRow["Constituent"] != null &&
             batchRow["Constituent"] != string.Empty)
         {
             batchRow["Constituent"] += uniqueStamp;
         }
     }
     BatchDialog.SetGridRows(batchRows);
     EnhancedRevenueBatchDialog.UpdateProjectedTotals();
     BatchDialog.Validate();
     BatchDialog.SaveAndClose();
 }