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

Ivyportal -17687-showing-flaky-test-on-result-LE #1095

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
75ff7fe
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 24, 2024
5cfa74a
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 24, 2024
11b72c0
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 25, 2024
eff5c03
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 25, 2024
24a98ff
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 25, 2024
991442e
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 25, 2024
d212a64
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 25, 2024
bbe95b6
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 25, 2024
867053a
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 26, 2024
58d5ec0
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 26, 2024
f48d77a
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 26, 2024
5809ba6
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 26, 2024
8a4ab2a
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 26, 2024
97660b3
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
64e8d70
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
620de91
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
1650208
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
2e69ed7
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
fb9eb0b
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
13d7681
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
c6de22b
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
d130d5b
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
2a2fb55
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
cc5bfac
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
74f3ce0
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
6c2c0db
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
8c50ae8
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 27, 2024
e460382
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 28, 2024
90216ed
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 30, 2024
5a3dfa4
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 30, 2024
7b67a43
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Sep 30, 2024
01ab434
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Oct 1, 2024
4d0d710
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Oct 1, 2024
e66674c
Merge branch 'master' into feature/IVYPORTAL-17687-Improve-GUI-test-r…
tphvu-axonivy Oct 1, 2024
a798856
IVYPORTAL-17687-Improve-GUI-test-report-showing-flaky-test-on-result_LE
tphvu-axonivy Oct 2, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if grep -q "\[WARNING\] Flakes:" logText.txt; then

awk '/^\[WARNING\] Flakes:.*$/{flag=1}/^\[ERROR\] Tests run:.*Flakes: [0-9]*$/{print;flag=0}flag' logText.txt > flaky-tests-log.txt

grep "\[WARNING\]" flaky-tests-log.txt | awk '{print}' > testReport.txt

exit 0
fi
12 changes: 11 additions & 1 deletion build/gui-test-new-dashboard/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,24 @@ pipeline {
echo '====================Execute maven for testing===================='
bat "mvn clean test -f AxonIvyPortal/portal-selenium-test/customized_pom.xml %engineDownloadURL% -Dtest=${params.testPatternToRun} -DbrowserType=FIREFOX -DtrimStackTrace=false -Divy.engine.directory=%engineDir% -Divy.deploy.timeout.seconds=60 -Divy.engine.start.timeout.seconds=500 -Dsurefire.rerunFailingTestsCount=2"
utils.cleanDisk()

echo '====================Archive consoleText file===================='
withCredentials([usernameColonPassword(credentialsId: 'wawa-jenkins', variable: 'credentials')]) {
def branchName = env.BRANCH_NAME.replaceAll("/", "%%2F")
bat """
curl --user ${credentials} ${env.JENKINS_URL}job/portal-selenium-test/job/${branchName}/${env.BUILD_NUMBER}/consoleText --output logText.txt
mv AxonIvyPortal/portal-selenium-test/resources/extractFlakyTests.sh .
sh extractFlakyTests.sh
"""
}
}
}
}
}

post {
always {
archiveArtifacts artifacts: 'AxonIvyPortal/portal-selenium-test/target/selenide/reports/**/*.*, AxonIvyPortal/portal-selenium-test/target/testEngineOut.log', allowEmptyArchive: true
archiveArtifacts artifacts: 'AxonIvyPortal/portal-selenium-test/target/selenide/reports/**/*.*, AxonIvyPortal/portal-selenium-test/target/testEngineOut.log, testReport.txt, logText.txt', allowEmptyArchive: true
junit allowEmptyResults: true, testResults: '**/surefire-reports/TEST-*.xml'
}
}
Expand Down
Loading