How can we attach the screenshots to the selenium unittests ?
We need to be able to see the screenshots of our failing acceptance tests. How can we achieve that ? Should we use Appveyor Artifacts?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 25 Nov, 2014 06:56 PM
Sure, this is how you can generate screenshot: https://github.com/FeodorFitsner/selenium-tests/blob/master/Seleniu...
and YML settings to collect produced images: https://github.com/FeodorFitsner/selenium-tests/blob/master/appveyo...
2 Posted by Rifat Erdem Sah... on 26 Nov, 2014 09:22 AM
I tried it without the Yml but from the Appveyor UI without success.
3 Posted by Rifat Erdem Sah... on 26 Nov, 2014 12:38 PM
Ok I got it work but the thing is, it only works is the tests pass. *
* there could be a logic behind this.
But I would like to get my artifacts even though the tests are failing.
4 Posted by Rifat Erdem Sah... on 26 Nov, 2014 02:51 PM
I am getting "The build job does not contain any artifacts." when the tests fail.
The thing is I need the screenshots when the tests fail.
Support Staff 5 Posted by Feodor Fitsner on 26 Nov, 2014 03:45 PM
You can collect artifacts using script on "On build finish script" (General tab of project settings) on in YAML:
Take a look at some examples how to push a list of files: http://www.appveyor.com/docs/packaging-artifacts
6 Posted by Rifat Erdem Sah... on 27 Nov, 2014 11:15 AM
You can collect artifacts using script on "On build finish script"
> The thing is I would like to collect the artifacts after the failure. I added after the failure but I can not see the artifacts.*
*I need to artifacts to debug the system.
Support Staff 7 Posted by Feodor Fitsner on 27 Nov, 2014 07:09 PM
You don't get artifacts because they are probably not in build root folder. Add
-Recurse
:Results with artifacts uploaded: https://ci.appveyor.com/project/FeodorFitsner/selenium-tests/build/...
8 Posted by Rifat Erdem Sah... on 03 Dec, 2014 03:39 PM
Ok I got this one. Thank you.
Rifat Erdem Sahin closed this discussion on 26 Dec, 2014 01:35 PM.