-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #394 from CBIIT/Nesarh2
OASYS - Void and Restore an invoice
- Loading branch information
Showing
11 changed files
with
228 additions
and
7 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
.github/workflows/CUSTOM BUSINESS (.NET) - OASYS Regression.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CUSTOM BUSINESS (.NET) - OASYS Regression | ||
|
||
on: | ||
schedule: | ||
# This corresponds to 4:30 PM EST (9:30 PM UTC) from Monday to Friday | ||
- cron: '30 21 * * MON-FRI' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: NCI-WINDOWS | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Run OASYS Regression Tests | ||
shell: cmd | ||
run: mvn -B -q -Dtest=CUSTOM_BUSINESS.OASYS.runners.RunOASYSRegressionTest test | ||
continue-on-error: true | ||
|
||
- name: Generate timestamp | ||
id: timestamp | ||
shell: powershell | ||
run: | | ||
$timeZone = [System.TimeZoneInfo]::FindSystemTimeZoneById("Eastern Standard Time") | ||
$dateTime = [System.TimeZoneInfo]::ConvertTime([System.DateTime]::UtcNow, $timeZone) | ||
$timestamp = $dateTime.ToString("yyyy-MM-dd_hh-mm-ss_tt") | ||
Add-Content -Path $env:GITHUB_ENV -Value "timestamp=$timestamp" | ||
- name: Determine report path | ||
id: reportpath | ||
shell: cmd | ||
run: echo "::set-output name=path::Oasys-regression-reports" >> $GITHUB_ENV | ||
|
||
- name: Upload Cucumber Report | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: OASYS-regression-report-${{ env.timestamp }} | ||
path: target/Oasys-regression-reports/* | ||
|
||
- name: Upload to SharePoint | ||
shell: powershell | ||
run: | | ||
$Env:PATH = "C:\Users\juarezds\AppData\Local\Programs\Python\Python312;$Env:PATH" | ||
python $Env:GITHUB_WORKSPACE\.github\scripts\upload_to_sharepoint.py | ||
env: | ||
FILES_PATH: target/Egrants-regression-reports/* | ||
SHAREPOINT_SITE_ID: ${{ secrets.SHAREPOINT_SITE_ID }} | ||
SHAREPOINT_DRIVE_ID: ${{ secrets.SHAREPOINT_DRIVE_ID }} | ||
tenant_id: ${{ secrets.SHAREPOINT_TENANT_ID }} | ||
client_id: ${{ secrets.SHAREPOINT_CLIENT_ID }} | ||
client_secret: ${{ secrets.SHAREPOINT_CLIENT_SECRET }} | ||
timestamp: ${{ env.timestamp }} | ||
UPLOAD_FOLDER: "Custom Business Applications - .NET/TEST AUTOMATION REPORTS/OASYS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/test/java/CUSTOM_BUSINESS/OASYS/runners/RunOASYSProgressionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package CUSTOM_BUSINESS.OASYS.runners; | ||
|
||
import io.cucumber.testng.AbstractTestNGCucumberTests; | ||
import io.cucumber.testng.CucumberOptions; | ||
|
||
@CucumberOptions(plugin = {"html:target/OASYS-progression-reports/OASYS-progression-report.html", "json:target/cucumber.json", | ||
"rerun:target/failed.txt", | ||
"pretty", "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"} | ||
, features = "src/test/java/CUSTOM_BUSINESS/OASYS/features" | ||
, glue = {"CUSTOM_BUSINESS.OASYS.Steps", "Hooks"} | ||
, tags = "@Progression" | ||
, dryRun = false | ||
) | ||
public class RunOASYSProgressionTest extends AbstractTestNGCucumberTests{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
, dryRun = false | ||
) | ||
public class RunOASYSRegressionTest extends AbstractTestNGCucumberTests{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/java/CUSTOM_BUSINESS/OASYS/runners/RunOASYSSmokeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package CUSTOM_BUSINESS.OASYS.runners; | ||
|
||
import io.cucumber.testng.AbstractTestNGCucumberTests; | ||
import io.cucumber.testng.CucumberOptions; | ||
|
||
@CucumberOptions(plugin = {"html:target/OASYS-smoke-reports/OASYS-smoke-report.html", "json:target/cucumber.json", | ||
"rerun:target/failed.txt", | ||
"pretty", "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"} | ||
, features = "src/test/java/CUSTOM_BUSINESS/OASYS/features" | ||
, glue = {"CUSTOM_BUSINESS.OASYS.Steps", "Hooks"} | ||
, tags = "@Smoke" | ||
, dryRun = false | ||
) | ||
public class RunOASYSSmokeTest extends AbstractTestNGCucumberTests{ | ||
} |