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

Test befta retry #695

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a3e0c11
fix Fortify gradle task
aktaskaan Jun 25, 2024
8ab6f19
Merge remote-tracking branch 'origin/master'
aktaskaan Jul 11, 2024
51605fa
Merge remote-tracking branch 'origin/master'
aktaskaan Jul 18, 2024
b5611fd
befta test
aktaskaan Jul 18, 2024
a514a6b
befta test
aktaskaan Jul 18, 2024
9076ca5
befta test
aktaskaan Jul 18, 2024
a197645
befta test
aktaskaan Jul 18, 2024
421e3a1
befta test
aktaskaan Jul 18, 2024
0262591
befta test
aktaskaan Jul 18, 2024
c90bf9b
befta test
aktaskaan Jul 18, 2024
7aefd86
befta test
aktaskaan Jul 18, 2024
257e706
befta test
aktaskaan Jul 18, 2024
6cc3887
befta test
aktaskaan Jul 18, 2024
45dc2e8
befta test
aktaskaan Jul 19, 2024
87a7ee0
befta test
aktaskaan Jul 19, 2024
a5f6aa2
befta test
aktaskaan Jul 19, 2024
d9f928a
befta test
aktaskaan Jul 19, 2024
ecf84f5
befta test
aktaskaan Jul 19, 2024
83f8c88
befta test
aktaskaan Jul 19, 2024
286fa03
befta test
aktaskaan Jul 22, 2024
9afaf50
befta test
aktaskaan Jul 23, 2024
bfb6025
befta test
aktaskaan Jul 23, 2024
66c0af6
befta test
aktaskaan Jul 23, 2024
d3c338c
befta test
aktaskaan Jul 23, 2024
e6d6c2e
befta test
aktaskaan Jul 26, 2024
8b95fc8
befta test
aktaskaan Jul 26, 2024
e597b05
befta test
aktaskaan Jul 26, 2024
7236073
befta test
aktaskaan Jul 26, 2024
1c50aa8
befta test
aktaskaan Jul 26, 2024
d0c9494
befta test
aktaskaan Jul 26, 2024
eff44b3
befta test
aktaskaan Jul 26, 2024
dd5c2dd
befta test
aktaskaan Jul 26, 2024
2176f24
befta test
aktaskaan Jul 26, 2024
18a14d0
befta test
aktaskaan Jul 26, 2024
b7e5685
befta test
aktaskaan Jul 26, 2024
dcedc15
befta test
aktaskaan Jul 29, 2024
f22af89
befta test
aktaskaan Jul 29, 2024
e686069
befta test
aktaskaan Jul 29, 2024
6867450
befta test
aktaskaan Jul 29, 2024
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
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ task functional(type: Test, description: 'Runs the functional tests.', group: 'V
}

finalizedBy {
generateCucumberReports.enabled = true
generateCucumberReports {
doLast{
delete "${rootDir}/BEFTA Report for Functional Tests/"
Expand Down Expand Up @@ -325,7 +326,7 @@ dependencies {
exclude group: 'junit', module: 'junit'
}
testImplementation group: 'com.github.hmcts', name: 'ccd-test-definitions', version: '7.22.2'
testImplementation group: 'com.github.hmcts', name: 'befta-fw', version: '9.0.2'
testImplementation group: 'com.github.hmcts', name: 'befta-fw', version: 'v9.0.3-HMAN-385.57'
testImplementation group: 'commons-lang', name: 'commons-lang', version: '2.6'
testImplementation group: 'org.assertj', name: 'assertj-vavr', version: '0.4.2'

Expand Down
8 changes: 4 additions & 4 deletions src/functionalTest/resources/features/F-001/F-001.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Feature: F-001: Get Document Metadata by Document ID
Background: Load test data for the scenario
Given an appropriate test context as detailed in the test data source

@S-001
@Smoke @S-001 @Retryable(statusCodes={400,409,502},match={"\"BEFTA_CA1SETYPE_246465_1\"","\"case_type_id\"\s*:\s*\"BEFTA_CASETYPE_2_1\""})
Scenario: must successfully get document metadata by document ID
Given a user with [an active caseworker profile in CCD with full permissions on a document field],
And a successful call [by another privileged user to upload a document with mandatory metadata] as in [Default_Document_Upload_Data],
And another successful call [to create a token for case creation] as in [Befta_Jurisdiction2_Default_Token_Creation_Data_For_Case_Creation]
And another successful call [to create a case of this case type] as in [S-001_Case_Create]
When a request is prepared with appropriate values,
And it is submitted to call the [Get Document Metadata by Document ID] operation of [CCD Case Document AM API],
And it is submitted to call the [Get Document Metadata by Document ID] operation of [CCD Case Document AM API] with a delay of [30] seconds [before] the call,
Then a positive response is received,
And the response [contains the metadata for the document uploaded above],
And the response has all other details as expected.
Expand All @@ -25,12 +25,12 @@ Feature: F-001: Get Document Metadata by Document ID
Then a negative response is received,
And the response has all the details as expected.

@S-003
@S-003 @Smoke
Scenario: must get an error response for a malformed document ID
Given a user with [an active caseworker profile in CCD with full permissions on a document field],
When a request is prepared with appropriate values,
And the request [for a malformed document ID],
And it is submitted to call the [Get Document Metadata by Document ID] operation of [CCD Case Document AM API],
And it is submitted to call the [Get Document Metadata by Document ID] operation of [CCD Case Document AM API] with a delay of [25] seconds [after] the call,
Then a negative response is received,
And the response has all the details as expected.

Expand Down