Melihat Report Hasil Test Playwright di Jenkins
๐ Mantap! Log ini:
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/jenkins_home/workspace/playwright-from-gitlab/playwright-report to /var/jenkins_home/jobs/playwright-from-gitlab/builds/5/htmlreports/Playwright_20Report
โ Berarti Playwright report berhasil diarsipkan oleh Jenkins, dan siap dilihat melalui UI web Jenkins.
๐ Cara Melihat Reportnya di Jenkins Web UI
-
Masuk ke Jenkins
http://<ip-jenkins>:8080 -
Klik nama job kamu โ misalnya:
playwright-from-gitlab -
Klik build terakhir yang sukses โ misalnya
#5 -
Di sidebar kiri akan muncul link:
Playwright Reportatau
Playwright Test Report๐น Nama link ini sesuai dengan
reportName:yang kamu atur diJenkinsfile. -
Klik link tersebut โ Jenkins akan membuka file:
playwright-report/index.htmllangsung di browser!
๐งผ Jika Tidak Muncul Link Report:
Kalau link seperti "Playwright Report" belum muncul di sidebar, periksa:
โ
1. Di Jenkinsfile kamu, pastikan block ini ada:
stage('Publish Report') {
steps {
publishHTML target: [
reportDir: 'playwright-report',
reportFiles: 'index.html',
reportName: 'Playwright Report'
]
}
}
โ Jangan salah tulis
reportFilesataureportDir.
โ
2. Pastikan file playwright-report/index.html benar-benar ada sebelum stage publish.
Kamu bisa tambahkan log debug di Jenkinsfile:
sh 'ls -lah playwright-report'
No Comments