Skip to content

Commit

Permalink
Automation Refactoring (#3598)
Browse files Browse the repository at this point in the history
* Digital Documents refactoring

* Research File uncomment steps

* Digital Documents refactoring

* Research File uncomment steps

* Refactoring on Wait() method

* Refactoring on Wait() method

* Calibrating previous Waits refactoring for all test cases to run successfully

* Calibrating previous Waits refactoring for all test cases to run successfully

* Acquisition File - Checklist

* Acquisition File refactoring and Stakeholders

* Acquisition Files Stakeholders

* Acquisition Files - Compensation Requisition, Changing Digital Documents - Upload test documents

* Testing queries update

* Leases Refactoring

* Refactoring on Automation - Verify Views, Reserach Files

* Acquisition Expropriation and Takes

* Nuget package updates, refactoring Contacts, Help desk and AF Checklist

* Changes on leases

* Update nuget packages

* Automation refactoring in Digital Documents, Projects, Notes, Financial Codes, Leases and Contacts

---------

Co-authored-by: devinleighsmith <[email protected]>
Co-authored-by: Alejandro Sanchez <[email protected]>
  • Loading branch information
3 people authored Nov 17, 2023
1 parent f2f1d8c commit 0af669b
Show file tree
Hide file tree
Showing 33 changed files with 1,249 additions and 1,158 deletions.
17 changes: 9 additions & 8 deletions testing/PIMS.Tests.Automation/Classes/AcquisitionFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,15 @@ public class Take
public string TakeStatus { get; set; } = null!;
public string? SiteContamination { get; set; } = String.Empty;
public string? TakeDescription { get; set; } = String.Empty;
public string? IsNewRightWay { get; set; } = String.Empty;
public string? IsNewRightWayArea { get; set; } = String.Empty;
public string? IsStatutoryRightWay { get; set; } = String.Empty;
public string? IsStatutoryRightWayArea { get; set; } = String.Empty;
public string? IsLandNotation { get; set; } = String.Empty;
public string? IsLandNotationDetail { get; set; } = String.Empty;
public string? IsLandNotationArea { get; set; } = String.Empty;
public string? IsLandNotationDate { get; set; } = String.Empty;
public string? IsNewHighwayDedication { get; set; } = String.Empty;
public string? IsNewHighwayDedicationArea { get; set; } = String.Empty;
public string? IsMotiInventory { get; set; } = String.Empty;
public string? IsNewInterestLand { get; set; } = String.Empty;
public string? IsNewInterestLandArea { get; set; } = String.Empty;
public string? IsLandActTenure { get; set; } = String.Empty;
public string? IsLandActTenureDetail { get; set; } = String.Empty;
public string? IsLandActTenureArea { get; set; } = String.Empty;
public string? IsLandActTenureDate { get; set; } = String.Empty;
public string? IsLicenseConstruct { get; set; } = String.Empty;
public string? IsLicenseConstructArea { get; set; } = String.Empty;
public string IsLicenseConstructDate { get; set; } = String.Empty;
Expand Down
Binary file modified testing/PIMS.Tests.Automation/Data/PIMS_Testing_Data.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ Scenario: 11. Acquisition File from Pin
Then A new Acquisition file is created successfully

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions testing/PIMS.Tests.Automation/Features/AdminTools.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ Scenario: 04. Financial Codes
Scenario: 05. Duplicate existing Financial Code
Given I attempt to duplicate a Financial Code from row number 1
Then Financial Code cannot be duplicated successfully

Scenario: 06. Financial Codes List View
Given I search for an existing Financial Code from row number 1
Then Financial Codes rendered successfully
28 changes: 28 additions & 0 deletions testing/PIMS.Tests.Automation/Features/AdminTools.feature.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 29 additions & 18 deletions testing/PIMS.Tests.Automation/Features/Projects.feature
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
@Regression-Projects
Feature: Projects

Scenario Outline: Create new Projects
Scenario Outline: Type of Projects
Given I create a new Project from row number <RowNumber>
When I verify The Project View Form
And I create Digital Documents for a "Project" row number <DocRowNumber>
And I search for an existing project
Then Expected Content is displayed on Projects Table
Then A new Project is created successfully
Examples:
| RowNumber | DocRowNumber |
| 1 | 8 |
| 2 | 9 |
| 3 | 10 |
| 4 | 11 |
| RowNumber |
| 1 |
| 2 |
| 3 |

Scenario: Update Project
Given I update an existing project from row number 5
When I edit a Digital Document for a "Project" from row number 12
And I navigate back to Project Details
Then The Project is updated successfully
Scenario: 01. Project Details
Given I create a new Project from row number 4
When I update an existing project from row number 5
Then A new Project is created successfully

Scenario: Duplicate Project
Given I create a new Project from row number 1
Then Duplicate Project Alert is displayed
Scenario: 02. Project Documents
Given I create a new Project from row number 6
When I create Digital Documents for a "Project" row number 8
And I edit a Digital Document for a "Project" from row number 9
Then A new Project is created successfully

Scenario: 03. Project Notes
Given I create a new Project from row number 7
When I create a new Note on the Notes Tab from row number 6
And I edit a Note on the Notes Tab from row number 7
Then A new Project is created successfully

Scenario: 04. Project List View
Given I search for existing Projects from row number 2
Then Expected Project Content is displayed on Projects Table

#Scenario: Duplicate Project
# Given I create a new Project from row number 2
# Then Duplicate Project Alert is displayed
126 changes: 90 additions & 36 deletions testing/PIMS.Tests.Automation/Features/Projects.feature.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion testing/PIMS.Tests.Automation/Features/ResearchFiles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Scenario: 02. Research File Properties

Scenario: 03. Research File Documents
Given I create a basic Research File from row number 3
When I create Digital Documents for a "Research File" row number 3
When I create Digital Documents for a "Research File" row number 3
And I edit a Digital Document for a "Research File" from row number 6
Then A new Research File is created successfully

Scenario: 04. Research File Notes
Expand Down
Loading

0 comments on commit 0af669b

Please sign in to comment.