chore: categories and environment section added to allure report

This commit is contained in:
Valentina Novgorodtceva 2024-02-09 13:29:26 +07:00 committed by Valentina1133
parent 5d4a6d631d
commit 6a9f43c74e
3 changed files with 30 additions and 0 deletions

View File

@ -164,9 +164,15 @@ pipeline {
} } } } } }
} }
} }
post { post {
always { script { always { script {
archiveArtifacts('aut/*.log') archiveArtifacts('aut/*.log')
/* Needed to categorize types of errors and add environment section in allure report. */
sh 'cp ext/allure_files/categories.json allure-results'
sh 'cp ext/allure_files/environment.properties allure-results'
allure([ allure([
results: [[path: 'allure-results']], results: [[path: 'allure-results']],
reportBuildPolicy: 'ALWAYS', reportBuildPolicy: 'ALWAYS',

View File

@ -0,0 +1,22 @@
[
{
"name": "Skipped tests",
"matchedStatuses": ["skipped"]
},
{
"name": "Lookup errors",
"messageRegex": ".*LookupError.*"
},
{
"name": "Lost connection",
"messageRegex": ".*Lost connection to AUT.*"
},
{
"name": "Connection refused",
"messageRegex": ".*connection to AUT refused.*"
},
{
"name": "Assertion errors",
"messageRegex": ".*AssertionError.*"
}
]

View File

@ -0,0 +1,2 @@
os_platform = linux
python_version = Python 3.10