Skip to content

Commit

Permalink
Merge pull request #7167 from SalesforceFoundation/q3_robot_tags
Browse files Browse the repository at this point in the history
Add Q3 quadrant tags to robot tests
  • Loading branch information
Safiyab committed Mar 8, 2023
2 parents f3e73e8 + 20e939b commit 5ff2436
Show file tree
Hide file tree
Showing 17 changed files with 43 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Suite Setup Run keywords
... Setup Test Data
Suite Teardown Capture Screenshot and Delete Records and Close Browser

***Keywords***
*** Keywords ***
Setup Test Data
&{account} = API Create Organization Account
Set suite variable &{account}
Expand All @@ -23,7 +23,7 @@ Create Primary Affiliation for Contact
[Documentation] Creates a contact and organization account via API and open contact
... Edit Primary Affiliation field and add affiliation to organization account.
... Verifies that affiliation to account shows under organization affiliation related list as current
[tags] feature:Affiliations unstable unit
[tags] feature:Affiliations unstable unit quadrant:q3
Go To Page Details Contact object_id=${contact}[Id]
Current Page Should Be Details Contact
Select Tab Details
Expand All @@ -33,4 +33,4 @@ Create Primary Affiliation for Contact
Verify Allocations Organization Affiliations ${account}[Name]=Current
Click Related Table Item Link Organization Affiliations ${account}[Name]
Current Page Should Be Details npe5__Affiliation__c
Save Current Record ID For Deletion npe5__Affiliation__c
Save Current Record ID For Deletion npe5__Affiliation__c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Suite Setup Run keywords
... Setup Test Data
Suite Teardown Capture Screenshot and Delete Records and Close Browser

***Keywords***
*** Keywords ***
Setup Test Data
Setupdata account None None ${account_fields}
Setupdata contact ${contact_fields}
Expand All @@ -31,7 +31,7 @@ Create ASC for Primary Contact on Organization Gift
[Documentation] Create a contact, Org Account and Opportunity for acct with contact as primary via API.
... Verify contact shows under contact role with Role as soft credit.
... After running donations batch job verify contact gets soft credits
[tags] feature:Automated Soft Credits unstable api
[tags] feature:Automated Soft Credits unstable api quadrant:q3
Go To Page Details Opportunity
... object_id=${opportunity}[Id]
Expand All @@ -48,4 +48,4 @@ Create ASC for Primary Contact on Organization Gift
Go To Page Details Contact
... object_id=${data}[contact][Id]
Navigate To And Validate Field Value Soft Credit This Year contains $50.00 section=Soft Credit Total
Navigate To And Validate Field Value Soft Credit Total contains $50.00 section=Soft Credit Total
Navigate To And Validate Field Value Soft Credit Total contains $50.00 section=Soft Credit Total
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Suite Setup Run keywords
... Setup Test Data
Suite Teardown Capture Screenshot and Delete Records and Close Browser

***Keywords***
*** Keywords ***
# creates test data a contact and an opportunity for the contact
Setup Test Data
Setupdata contact ${contact1_fields} ${opportunity_fields}
Expand All @@ -32,7 +32,7 @@ Create Crlp For Automated Soft Credit
... Enable CRLP from settings, create a setting record. Create an opportunity associated with a contact that is not primary
... Run the relevant rollup batch job and ensure that rollups are happening and displayed on the opportunity page
[tags] feature:CRLP unstable api
[tags] feature:CRLP unstable api quadrant:q3
# Create a custom lookup field requried for this particular testcase
Create Customfield In Object Manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Total Current Year Payments on Prior Year Pledges
... Enables CRLP settings, creates the custom fields on account and payment objects required for rollup
... Creates a filter and crlp setting to rollup the amount of current year payments on a previous year opportunity
[Tags] feature:CRLP unstable api
[Tags] feature:CRLP unstable api quadrant:q3
# Create a Filter group and CRLP setting after checking prior records do not check if element exists
Load Page Object Custom CustomRollupSettings
Expand Down Expand Up @@ -95,5 +95,4 @@ Total Current Year Payments on Prior Year Pledges
Go To Page Details Account object_id=${data}[contact][AccountId]
Wait Until Loading Is Complete
Select Tab Details
Validate Rollup Field Contains This Year Payments on Past Year Pledges @{accepted_values}

Validate Rollup Field Contains This Year Payments on Past Year Pledges @{accepted_values}
7 changes: 2 additions & 5 deletions robot/Cumulus/tests/browser/crlps/total_gifts_3yrs_ago.robot
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ Setup Test Data
... Field_Name=Total Gifts Three Years Ago

*** Test Cases ***

Calculate CRLPs for Total Gifts 3 Years Ago
[Documentation] Create a New rollup for Total Gifts 3 years ago by cloning an existing rollup called Total Gifts Two Years Ago
... and create an opportunity for 3 ago from current date and verify the rollup value on newly created Total Gifts Three Years Ago field
[tags] feature:CRLP unstable api
[tags] feature:CRLP unstable api quadrant:q3
# clone an existing rollup and create a new one and verify that its created
Load Page Object Custom CustomRollupSettings
Expand All @@ -50,6 +49,4 @@ Calculate CRLPs for Total Gifts 3 Years Ago
Go To Page Details
... Contact
... object_id=${contact}[Id]
Verify Rollup Field Value Total Gifts Three Years Ago $3,000.00 section=Contact Information


Verify Rollup Field Value Total Gifts Three Years Ago $3,000.00 section=Contact Information
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Setup Test Data
Calculate CRLPs for Total Gifts On Multiple Opportunities
[Documentation] This test case is aimed at validating that the customizable rollup "Total Gifts" is active by default when the CRLP setting is turned
... And verifies that the rollup is actually happening
[tags] feature:CRLP unstable api
[tags] feature:CRLP unstable api quadrant:q3

Load Page Object Custom CustomRollupSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Create Engagement Plan Template And verify save
[Documentation] Create an engagement plan from the ui. Navigate to engagementplans listings view
... View the details of the engagement plan created.
[tags] feature:Engagements unstable api
[tags] feature:Engagements unstable api quadrant:q3
Go To Page Listing Engagement_Plan_Template__c
Click Special Object Button New
Expand All @@ -42,4 +42,4 @@ Create Engagement Plan Template And verify save
Click Link link=${name}
Check Field Value Engagement Plan Template Name ${name}
Select Tab Related
Check Related List Values Engagement Plan Tasks ${task1} ${task2}
Check Related List Values Engagement Plan Tasks ${task1} ${task2}
5 changes: 2 additions & 3 deletions robot/Cumulus/tests/browser/gift_entry/1_enable_ge.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ Suite Setup Open Test Browser
Suite Teardown Capture Screenshot and Delete Records and Close Browser

*** Test Cases ***

Verify Error Message with GE Disabled and enable GE
[Documentation] This test case checks if advanced mapping is enabled and if disabled, enables it.
... Checks if gift entry is disabled and if enabled, disables it and verifies that GE page has error.
... Then enables gift entry and verifies that gift entry page lands on templates page and has default template
[tags] feature:GE
[tags] feature:GE quadrant:q3
Go To Page Custom NPSP_Settings
Open Main Menu System Tools
Click Link With Text Advanced Mapping for Data Import & Gift Entry
Expand All @@ -28,4 +27,4 @@ Verify Error Message with GE Disabled and enable GE
Wait For Message Gift Entry Enabled
Go To Page Landing GE_Gift_Entry
Click Link Templates
Wait Until Page Contains Default Gift Entry Template
Wait Until Page Contains Default Gift Entry Template
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Test GAU Allocations with Default Allocations Disabled
... create a gift with contact info and add allocations more than donation amount and verify error message
... correct allocations to be less than donation amount(verifying remaining balance) and on saving opportunity
... and contact are created, GAU allocations are created for correct amounts specified on gift entry form
[tags] feature:GE unstable api
[tags] feature:GE unstable api quadrant:q3
API Modify Allocations Setting
... ${NS}Default_Allocations_Enabled__c=false
... ${NS}Default__c=None
Expand Down Expand Up @@ -98,7 +98,7 @@ Test GAU Allocations with Default Allocations Enabled
... create a gift with account info and verify default gau allocation equals donation amount, add new allocations
... with percent and amount. Verify default allocation changes to remaining amount after the two allocations
... and on saving opportunity and account are created, GAU allocations are created for all allocations correctly
[tags] feature:GE unstable api
[tags] feature:GE unstable api quadrant:q3
API Modify Allocations Setting
... ${NS}Default_Allocations_Enabled__c=true
... ${NS}Default__c=${DEFAULT_GAU}[Id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Create and edit level to verify fields
[Documentation] Create a level and verify the fields on the created level details page
... Edit the level details and update the fields. Verify the updated fields
... are persisted on the details page.
[tags] feature:Levels api
[tags] feature:Levels api quadrant:q3
Go To Page Listing Level__c
Navigate To Level Page create
Expand Down Expand Up @@ -130,7 +130,7 @@ Create and edit level to verify fields
Navigate To And Validate Field Value Previous Level contains ${level_name} section=Donation Information

3. Delete a Level
[Documentation] Delete the Level from the levels listing page
[Documentation] Delete the Level from the levels listing page
[tags] feature:Levels api
Go To Page Details
Expand All @@ -145,4 +145,4 @@ Create and edit level to verify fields
Go To Page Details
... Contact
... object_id=${data}[contact][Id]
Navigate To And Validate Field Value Level does not contain ${level_name} section=Donation Totals
Navigate To And Validate Field Value Level does not contain ${level_name} section=Donation Totals
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Suite Setup Open Test Browser
Suite Teardown Delete Records and Close Browser

*** Keywords ***

API Modify Trigger Handler
[Arguments] ${triggerhandler_id} &{fields}
${ns} = Get NPSP Namespace Prefix
Expand All @@ -22,10 +21,10 @@ API Modify Trigger Handler
[return] &{triggerhandler}

*** Test Cases ***

Update a Trigger Handler to Exclude a Username
[Documentation] This test case verifies that when a username is added to a Trigger Handler
... record for exclusion that triggers indeed do not run for that User.
[Tags] quadrant:q3
# Create an Account so Trigger Handler records are created
&{account} = API Create Organization Account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Suite Setup Run keywords
... Setup Test Data
Suite Teardown Delete Records and Close Browser

***Keywords***
*** Keywords ***
# Setup a contact with parameters specified
Setup Test Data
Setupdata contact ${contact1_fields}
Expand All @@ -19,10 +19,9 @@ Setup Test Data
&{contact1_fields} Email=test@example.com

*** Test Cases ***

Create Open Recurring Donation With Monthly Installment
[Documentation] This test verifies that a Recurring Donation can be created through the UI.
[tags] feature:Recurring Donations unstable api
[tags] feature:Recurring Donations unstable api quadrant:q3
Go To Page Details
... Contact
Expand All @@ -45,4 +44,4 @@ Create Open Recurring Donation With Monthly Installment
Check Related List Values Recurring Donations Robot Recurring Donation
Load Related List Opportunities
Click ViewAll Related List Opportunities
Verify Payment Details 12
Verify Payment Details 12
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Setup Variables
*** Test Cases ***

Create Data Import Via API
[tags] quadrant:q3
&{data_import} = API Create DataImport
... ${ns}Account1_Name__c=${acc1}
... ${ns}Account2_Name__c=${acc2}
Expand Down Expand Up @@ -62,6 +63,7 @@ Create Data Import Via API
Click Button With Value Close

Verify Custom Fields on Account Contact and Address Objects
[tags] quadrant:q3
&{data_import_new} = Salesforce Get ${ns}DataImport__c ${data_import}[Id]
Verify Expected Values nonns Account ${data_import_new}[${ns}Account1Imported__c]
... Name=${acc1}
Expand All @@ -82,4 +84,4 @@ Verify Custom Fields on Account Contact and Address Objects
... ${ns}MailingStreet__c=123 automation street
... ${ns}MailingCity__c=Toledo
... ${ns}MailingState__c=Ohio
... ${ns}MailingPostalCode__c=94326
... ${ns}MailingPostalCode__c=94326
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ Suite Teardown Run Keywords
*** Test Cases ***

Best Match Donation Matching Behaviour

[tags] stable
Go To Page Details DataImportBatch__c object_id=${batch}[Id]
Current Page Should Be Details DataImportBatch__c
[tags] stable quadrant:q3
Go To Page Details DataImportBatch__c object_id=${batch}[Id]
Current Page Should Be Details DataImportBatch__c
Select Value From BGE DD Donor Type Account
Wait Until Keyword Succeeds 1 minute
... 5 seconds
Expand Down Expand Up @@ -84,7 +83,7 @@ Best Match Donation Matching Behaviour
... CloseDate=${date}
... StageName=Prospecting

***Keywords***
*** Keywords ***
Setup Test Data
${ns} = Get NPSP Namespace Prefix
Set Suite Variable ${ns}
Expand Down Expand Up @@ -122,4 +121,4 @@ Setup Test Data
... Name=${account}[Name] Test 50 Donation
Set Suite Variable &{opp_dont_match}
&{pay_dontmatch} = API Query Record npe01__OppPayment__c npe01__Opportunity__c=${opp_dont_match}[Id]
Set Suite Variable &{pay_dontmatch}
Set Suite Variable &{pay_dontmatch}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ${camp_id}

Create BGE Batch With Custom Fields
#Create a BGE batch with default values and selecting different types of custom fields for Donation and Payment
[tags] stable
[tags] stable quadrant:q3
# --------------------------------
# Create Batch With Custom Fields
# --------------------------------
Expand Down Expand Up @@ -58,7 +58,7 @@ Create BGE Batch With Custom Fields
... Run_Opportunity_Rollups_while_Processing__c=True

Create New gift and process batch and validate
[tags] stable
[tags] stable quadrant:q3
&{contact} = API Create Contact
Set Suite Variable &{contact}
Store Session Record Account ${contact}[AccountId]
Expand Down Expand Up @@ -95,7 +95,7 @@ Create New gift and process batch and validate


Verify Custom Fields on Payment and Donation
[tags] stable
[tags] stable quadrant:q3
${date} = Get Current Date result_format=%Y-%m-%d
${value} Return Locator Value bge.value Donation
Click Link With Text ${value}
Expand All @@ -122,5 +122,4 @@ Verify Custom Fields on Payment and Donation
... ${org_ns}custom_number__c=123.0
... ${org_ns}custom_picklist__c=2
... ${org_ns}custom_textarea__c=this is custom batch
... ${org_ns}custom_text__c=Robot

... ${org_ns}custom_text__c=Robot
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Match Based on Number of Days from Donation Date Functionality
[Documentation] The number of days from donation date field on the BGE wizard allows matching to be made by providing
... a margin of error on the Donation Date field for a record. If the gift created is within range of that date,
... gift is matched to the existing donation
[tags] stable
[tags] stable quadrant:q3
Go To Page Details DataImportBatch__c object_id=${batch}[Id]
Current Page Should Be Details DataImportBatch__c
Select Value From BGE DD Donor Type Account
Expand Down Expand Up @@ -60,7 +60,7 @@ Match Based on Number of Days from Donation Date Functionality
... npe01__Payment_Date__c=${api_date}
... npe01__Paid__c=True

***Keywords***
*** Keywords ***
Setup Test Data
${ns} = Get NPSP Namespace Prefix
Set Suite Variable ${ns}
Expand Down Expand Up @@ -89,4 +89,4 @@ Setup Test Data
... CloseDate=${opp_date}
... npe01__Do_Not_Automatically_Create_Payment__c=false
... Name=${account}[Name] Test 100 Donation
Set Suite Variable &{opp}
Set Suite Variable &{opp}

0 comments on commit 5ff2436

Please sign in to comment.