Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIMS Automation - Acquisition File refactoring and Adding Checklists, Agreements and Stakeholders #3461

Merged
merged 33 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
395670c
Digital Documents refactoring
stairaku May 10, 2023
b39f974
Merge branch 'automation-branch' of https://github.com/stairaku/PSP i…
stairaku May 10, 2023
95a3f9b
Research File uncomment steps
stairaku May 10, 2023
223329f
Merge branch 'bcgov:dev' into automation-branch
stairaku May 11, 2023
32c6eca
Digital Documents refactoring
stairaku May 10, 2023
77b17a1
Research File uncomment steps
stairaku May 10, 2023
d512693
Merge branch 'bcgov:dev' into automation-branch
stairaku May 17, 2023
e2b08c4
Merge branch 'bcgov:dev' into automation-branch
stairaku May 23, 2023
a2c94fd
Merge branch 'bcgov:dev' into automation-branch
stairaku Jun 1, 2023
1592bbc
Merge branch 'bcgov:dev' into automation-branch
stairaku Jun 22, 2023
62b463a
Merge branch 'bcgov:dev' into automation-branch
stairaku Jul 21, 2023
0e0e817
Merge branch 'bcgov:dev' into automation-branch
stairaku Jul 24, 2023
89ea35d
Merge branch 'automation-branch' of https://github.com/stairaku/PSP i…
stairaku Jul 25, 2023
492f2ed
Merge branch 'bcgov:dev' into automation-branch
stairaku Jul 25, 2023
d90a44d
Merge branch 'bcgov:dev' into automation-branch
stairaku Aug 3, 2023
31268a6
Refactoring on Wait() method
stairaku Aug 3, 2023
18e8b68
Merge branch 'automation-branch' of https://github.com/stairaku/PSP i…
stairaku Aug 3, 2023
4a24390
Refactoring on Wait() method
stairaku Aug 3, 2023
549912e
Merge branch 'bcgov:dev' into automation-branch
stairaku Aug 4, 2023
4acd30b
Merge branch 'dev' into automation-branch
devinleighsmith Aug 10, 2023
ad58aff
Merge branch 'bcgov:dev' into automation-branch
stairaku Aug 17, 2023
771447f
Calibrating previous Waits refactoring for all test cases to run succ…
stairaku Aug 17, 2023
8e4a360
Calibrating previous Waits refactoring for all test cases to run succ…
stairaku Aug 17, 2023
c77fe6d
Fixing conflicts
stairaku Aug 17, 2023
168ba6c
Merge branch 'dev' into automation-branch
devinleighsmith Aug 22, 2023
c8f5dfd
Acquisition File - Checklist
stairaku Aug 28, 2023
e713d37
Merge branch 'automation-branch' of https://github.com/stairaku/PSP i…
stairaku Aug 28, 2023
a27020d
Merge branch 'bcgov:dev' into automation-branch
stairaku Aug 28, 2023
b04b710
Acquisition File refactoring and Stakeholders
stairaku Sep 6, 2023
7ea008a
Merge branch 'bcgov:dev' into automation-branch
stairaku Sep 6, 2023
81bcfd7
Merge branch 'automation-branch' of https://github.com/stairaku/PSP i…
stairaku Sep 6, 2023
d2fce54
Acquisition Files Stakeholders
stairaku Sep 6, 2023
3ccf79c
Merge branch 'dev' into automation-branch
devinleighsmith Sep 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 91 additions & 3 deletions testing/PIMS.Tests.Automation/Classes/AcquisitionFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@ public class AcquisitionFile
public List<AcquisitionTeamMember>? AcquisitionTeam { get; set; } = new List<AcquisitionTeamMember>();
public int OwnerStartRow { get; set; } = 0;
public int OwnerCount { get; set; } = 0;
public List<Owner>? AcquisitionOwners { get; set; } = new List<Owner>();
public string? OwnerSolicitor { get; set; } = String.Empty;
public List<AcquisitionOwner>? AcquisitionOwners { get; set; } = new List<AcquisitionOwner>();
public string? OwnerSolicitor { get; set; } = String.Empty;
public string? OwnerRepresentative { get; set; } = String.Empty;
public string? OwnerComment { get; set; } = String.Empty;
public int SearchPropertiesIndex { get; set; } = 0;
public SearchProperty? SearchProperties { get; set; } = new SearchProperty();
public int AcquisitionFileChecklistIndex { get; set; } = 0;
public AcquisitionFileChecklist? AcquisitionFileChecklist { get; set; } = new AcquisitionFileChecklist();
public int AgreementStartRow { get; set; } = 0;
public int AgreementCount { get; set; } = 0;
public List<AcquisitionAgreement>? AcquisitionAgreements { get; set; } = new List<AcquisitionAgreement>();
public int StakeholderStartRow { get; set; } = 0;
public int StakeholderCount { get; set; } = 0;
public List<AcquisitionStakeholder>? AcquisitionStakeholders { get; set; } = new List<AcquisitionStakeholder>();
}

public class AcquisitionTeamMember
Expand All @@ -33,7 +43,7 @@ public class AcquisitionTeamMember
public string ContactName { get; set; } = null!;
}

public class Owner
public class AcquisitionOwner
{
public string? ContactType { get; set; } = String.Empty;
public bool isPrimary { get; set; } = false;
Expand All @@ -54,4 +64,82 @@ public class Owner
public string? Email { get; set; } = String.Empty;
public string? Phone { get; set; } = String.Empty;
}

public class AcquisitionFileChecklist
{
public string? FileInitiationSelect1 { get; set; } = String.Empty;
public string? FileInitiationSelect2 { get; set; } = String.Empty;
public string? FileInitiationSelect3 { get; set; } = String.Empty;
public string? FileInitiationSelect4 { get; set; } = String.Empty;
public string? FileInitiationSelect5 { get; set; } = String.Empty;

public string? ActiveFileManagementSelect1 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect2 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect3 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect4 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect5 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect6 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect7 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect8 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect9 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect10 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect11 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect12 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect13 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect14 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect15 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect16 { get; set; } = String.Empty;
public string? ActiveFileManagementSelect17 { get; set; } = String.Empty;

public string? CrownLandSelect1 { get; set; } = String.Empty;
public string? CrownLandSelect2 { get; set; } = String.Empty;
public string? CrownLandSelect3 { get; set; } = String.Empty;

public string? Section3AgreementSelect1 { get; set; } = String.Empty;
public string? Section3AgreementSelect2 { get; set; } = String.Empty;
public string? Section3AgreementSelect3 { get; set; } = String.Empty;
public string? Section3AgreementSelect4 { get; set; } = String.Empty;
public string? Section3AgreementSelect5 { get; set; } = String.Empty;
public string? Section3AgreementSelect6 { get; set; } = String.Empty;
public string? Section3AgreementSelect7 { get; set; } = String.Empty;
public string? Section3AgreementSelect8 { get; set; } = String.Empty;
public string? Section3AgreementSelect9 { get; set; } = String.Empty;

public string? Section6ExpropriationSelect1 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect2 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect3 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect4 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect5 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect6 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect7 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect8 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect9 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect10 { get; set; } = String.Empty;
public string? Section6ExpropriationSelect11 { get; set; } = String.Empty;

public string? AcquisitionCompletionSelect1 { get; set; } = String.Empty;
}

public class AcquisitionAgreement
{
public string AgreementStatus { get; set; } = null!;
public string? AgreementLegalSurveyPlan { get; set; } = String.Empty;
public string AgreementType { get; set; } = null!;
public string? AgreementDate { get; set; } = String.Empty;
public string? AgreementCompletionDate { get; set; } = String.Empty;
public string? AgreementCommencementDate { get; set; } = String.Empty;
public string? AgreementTerminationDate { get; set; } = String.Empty;
public string? AgreementPurchasePrice { get; set; } = String.Empty;
public string? AgreementDepositDue { get; set; } = String.Empty;
public string? AgreementDepositAmount { get; set; } = String.Empty;
}

public class AcquisitionStakeholder
{
public string StakeholderType { get; set; } = null!;
public string? InterestHolder { get; set; } = String.Empty;
public string? InterestType { get; set; } = String.Empty;
public string? PrimaryContact { get; set; } = String.Empty;
public string? PayeeName { get; set; } = String.Empty;
}
}
Binary file modified testing/PIMS.Tests.Automation/Data/PIMS_Testing_Data.xlsx
Binary file not shown.
59 changes: 46 additions & 13 deletions testing/PIMS.Tests.Automation/Features/AcquisitionFiles.feature
Original file line number Diff line number Diff line change
@@ -1,26 +1,59 @@
@Acquisition-Files
Feature: AcquisitionFiles

A short summary of the feature
Test Acquisition file features.

Scenario: Create a new complete Acquisition File with pins
Scenario: 01. Acquisition File Details
Given I create a new Acquisition File from row number 1
When I add additional information to the Acquisition File
And I create Digital Documents for a "Acquisition File" row number 4
And I create a new Note on the Notes Tab from row number 3
When I add additional information to the Acquisition File Details
And I update the File details from an existing Acquisition File from row number 2
Then A new Acquisition file is created successfully

Scenario: Update Acquisition File and Properties
Given I edit an existing Acquisition File from row number 2
When I update a Property details from row number 4
And I navigate back to the Acquisition File Summary
And I edit a Digital Document for a "Acquisition File" from row number 7
Scenario: 02. Acquisition File Properties
Given I create a new Acquisition File from row number 3
When I add additional information to the Acquisition File Details
And I update an Acquisition File's Properties from row number 4
And I update a Property details from row number 4
Then A new Acquisition file is created successfully

#Scenario: 03. Acquisition File Property Takes

Scenario: 04. Acquisition Checklist Tab
Given I create a new Acquisition File from row number 4
When I insert Checklist information to an Acquisition File
Then Acquisition File's Checklist has been saved successfully

Scenario: 05. Acquisition Files Digital Documents
Given I create a new Acquisition File from row number 5
When I create Digital Documents for a "Acquisition File" row number 4
And I edit a Digital Document for a "Acquisition File" from row number 7
Then A new Acquisition file is created successfully

Scenario: 06. Acquisition File Notes
Given I create a new Acquisition File from row number 6
When I create a new Note on the Notes Tab from row number 3
And I edit a Note on the Notes Tab from row number 7
Then An existing Acquisition file has been edited successfully

Scenario: Create an Acquisition File from Pin
Given I create an Acquisition File from a pin on map from row number 3
Scenario: 07. Acquisition Agreements Tab
Given I create a new Acquisition File from row number 8
When I create Agreements within an Acquisition File
And I update an Agreement within an Acquisition File from row number 9
Then A new Acquisition file is created successfully

Scenario: Verify Acquisition Files List View, Content and Results Content
Scenario: 08. Acquisition Stakeholders Tab
Given I create a new Acquisition File from row number 10
When I create Stakeholders within an Acquisition File
And I update Stakeholders within an Acquisition File
Then A new Acquisition file is created successfully


Scenario: 11. Create an Acquisition File from Pin
Given I create an Acquisition File from a pin on map from row number 16
Then A new Acquisition file is created successfully

Scenario: 12. Verify Acquisition Files List View, Content and Results Content
Given I search for an existing Acquisition File from row number 1
Then Expected Acquisition File Content is displayed on Acquisition File Table


Loading
Loading