View Maven build artifacts
Hi,
we are using TeamCity with a Maven build, which runs automated Selenium tests on a headless server. If an error occurs, Selenium will create a screenshot and puts it under %workdir%/target/selenium/error-screenshots.
How can I view the generated target directory of a Maven build within TeamCity to view the test results and error screenshots?
Thank you
Timo
Please sign in to leave a comment.
Hello Timo,
You can set artifact paths in the "General Settings" page to something like "target/selenium/**/*.*". Your screenshots will appear in the Artifacts column of the build history.
Dear Sergey,
thank you very much for your fast and correct answer. After setting the artifacts path, I was able to see the screenshots:
%teamcity.build.workingDir%/target/selenium/error-screenshots/