Jacobvu84 / serenity-pageobject-junit-webdriver

4 stars 1 forks source link

Lỗi không hiển thị serenity report trên Jenkins #58

Open Jacobvu84 opened 4 years ago

Jacobvu84 commented 4 years ago

Khắc phục: Chạy đoạn mã

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-same-origin allow-scripts; default-src 'self'; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline';");
Jacobvu84 commented 4 years ago

Một số trường hợp khi kịch bản có một scenario bị failure. Report cũng không xuất hiện.

Khắc phục thêm cấu hình này vào maven-surefire-plugin

<configuration>
     <testFailureIgnore>true</testFailureIgnore>
</configuration>
Jacobvu84 commented 4 years ago

https://github.com/serenity-bdd/serenity-cucumber/issues/66

Jacobvu84 commented 4 years ago
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-same-origin allow-scripts; default-src 'self'; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline'; font-src 'self' 'unsafe-inline' 'unsafe-eval' data:; img-src 'self' 'unsafe-inline' data:");