Tests are failing randomly
Hi Feodor,
Some of our test in the projects are failing randomly and we cannot determine why. They pass %100 times on local, but fails %80 at appveyor. Failings tests are the ones which make rest api calls. How should I debug this?
Project: nopcustom
Best,
Kerem
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 09 Mar, 2015 03:33 PM
Hi Kerem,
I can't see private projects unless you add me ([email blocked]) to collaborators.
What API do those tests call? Is it the same tests failing every time? Are there any errors?
-Feodor
2 Posted by kerem on 09 Mar, 2015 04:18 PM
Hi Feodor. I added your email.
The test makes simple webclient get operations and not always fails. I
tried to build more than ten times and it passed one time. I think there is
a http error but I could not debug it since the test code uses mock logger
instance.
By this time I disabled these test, so if you are going to check the
project please use the history builds 8d50754f or earlier ones.
Thanks,
Kerem
Support Staff 3 Posted by Feodor Fitsner on 09 Mar, 2015 04:24 PM
Where is that API hosted?
-Feodor
4 Posted by kerem on 09 Mar, 2015 04:48 PM
GetEndpoint = "http://api.fotolia.com/Rest/1/media/getMediaData",
SearchEndpoint = "http://api.fotolia.com/Rest/1/search/getSearchResults",
BulkGetEndpoint = "http://api.fotolia.com/Rest/1/media/getBulkMediaData",
Support Staff 5 Posted by Feodor Fitsner on 09 Mar, 2015 05:48 PM
Hm, like you I can see nothing from test results.
You should enable logging or throw exception when a call to that API fails.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.