Subito-it / SBTUITestTunnel

Enable network mocks and more in UI Tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sometimes request on http://localhost:53670/commandCruising fails and then test engine crashes

silvansky opened this issue · comments

This happens sometimes on CI Server (Jenkins) and causes tests to fail for no reason.

021-11-17 12:06:08.872543-0500 UI Tests-Runner[67657:15460371] [SBTUITestTunnel] Resolving bonjour service com.subito.test.67657.65886156876772
    t =     0.15s     Open XXX
    t =     0.20s         Launch XXX
    t =     2.63s             Setting up automation session
    t =     4.19s             Wait for XXX to idle
2021-11-17 12:06:13.777650-0500 UI Tests-Runner[67657:15460371] [SBTUITestTunnel] Tunnel established on port 53670
2021-11-17 12:06:15.348601-0500 UI Tests-Runner[67657:15467204] [connection] nw_socket_handle_socket_event [C40.1:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:15.350777-0500 UI Tests-Runner[67657:15467204] [connection] nw_socket_handle_socket_event [C40.2:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:15.351392-0500 UI Tests-Runner[67657:15467204] Connection 40: received failure notification
2021-11-17 12:06:15.351583-0500 UI Tests-Runner[67657:15467204] Connection 40: failed to connect 1:61, reason -1
2021-11-17 12:06:15.351678-0500 UI Tests-Runner[67657:15467204] Connection 40: encountered error(1:61)
2021-11-17 12:06:15.353845-0500 UI Tests-Runner[67657:15467204] Task <21504343-AB20-4D5C-8ABE-639407709D6F>.<36> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2021-11-17 12:06:15.355936-0500 UI Tests-Runner[67657:15466273] Task <21504343-AB20-4D5C-8ABE-639407709D6F>.<36> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x60000265e850 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <21504343-AB20-4D5C-8ABE-639407709D6F>.<36>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <21504343-AB20-4D5C-8ABE-639407709D6F>.<36>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:53670/commandCruising, NSErrorFailingURLKey=http://localhost:53670/commandCruising, _kCFStreamErrorDomainKey=1}
2021-11-17 12:06:15.356184-0500 UI Tests-Runner[67657:15466273] [SBTUITestTunnel] Failed to get http response: <NSMutableURLRequest: 0x600002b60710> { URL: http://localhost:53670/commandCruising }
2021-11-17 12:06:16.362250-0500 UI Tests-Runner[67657:15461249] [connection] nw_socket_handle_socket_event [C41.1:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:16.363700-0500 UI Tests-Runner[67657:15461249] [connection] nw_socket_handle_socket_event [C41.2:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:16.364075-0500 UI Tests-Runner[67657:15461249] Connection 41: received failure notification
2021-11-17 12:06:16.364184-0500 UI Tests-Runner[67657:15461249] Connection 41: failed to connect 1:61, reason -1
2021-11-17 12:06:16.364275-0500 UI Tests-Runner[67657:15461249] Connection 41: encountered error(1:61)
2021-11-17 12:06:16.365482-0500 UI Tests-Runner[67657:15461249] Task <B07BE30F-175E-491D-AF4B-0456649F3C7B>.<37> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2021-11-17 12:06:16.365828-0500 UI Tests-Runner[67657:15466273] Task <B07BE30F-175E-491D-AF4B-0456649F3C7B>.<37> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x6000026314a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B07BE30F-175E-491D-AF4B-0456649F3C7B>.<37>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B07BE30F-175E-491D-AF4B-0456649F3C7B>.<37>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:53670/commandCruising, NSErrorFailingURLKey=http://localhost:53670/commandCruising, _kCFStreamErrorDomainKey=1}
2021-11-17 12:06:16.365951-0500 UI Tests-Runner[67657:15466273] [SBTUITestTunnel] Failed to get http response: <NSMutableURLRequest: 0x600002b7acb0> { URL: http://localhost:53670/commandCruising }
2021-11-17 12:06:17.370687-0500 UI Tests-Runner[67657:15466273] [connection] nw_socket_handle_socket_event [C42.1:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:17.372076-0500 UI Tests-Runner[67657:15466273] [connection] nw_socket_handle_socket_event [C42.2:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:17.372565-0500 UI Tests-Runner[67657:15466273] Connection 42: received failure notification
2021-11-17 12:06:17.372688-0500 UI Tests-Runner[67657:15466273] Connection 42: failed to connect 1:61, reason -1
2021-11-17 12:06:17.372764-0500 UI Tests-Runner[67657:15466273] Connection 42: encountered error(1:61)
2021-11-17 12:06:17.374528-0500 UI Tests-Runner[67657:15466273] Task <009E0481-DE25-418D-9F6E-B1D565AC9095>.<38> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2021-11-17 12:06:17.374848-0500 UI Tests-Runner[67657:15466273] Task <009E0481-DE25-418D-9F6E-B1D565AC9095>.<38> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600002794b40 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <009E0481-DE25-418D-9F6E-B1D565AC9095>.<38>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <009E0481-DE25-418D-9F6E-B1D565AC9095>.<38>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:53670/commandCruising, NSErrorFailingURLKey=http://localhost:53670/commandCruising, _kCFStreamErrorDomainKey=1}
2021-11-17 12:06:17.375082-0500 UI Tests-Runner[67657:15466273] [SBTUITestTunnel] Failed to get http response: <NSMutableURLRequest: 0x600002b6d9c0> { URL: http://localhost:53670/commandCruising }
2021-11-17 12:06:18.381378-0500 UI Tests-Runner[67657:15467204] [connection] nw_socket_handle_socket_event [C43.1:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:18.383336-0500 UI Tests-Runner[67657:15467204] [connection] nw_socket_handle_socket_event [C43.2:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:18.383826-0500 UI Tests-Runner[67657:15467204] Connection 43: received failure notification
2021-11-17 12:06:18.383928-0500 UI Tests-Runner[67657:15467204] Connection 43: failed to connect 1:61, reason -1
2021-11-17 12:06:18.384000-0500 UI Tests-Runner[67657:15467204] Connection 43: encountered error(1:61)
2021-11-17 12:06:18.385432-0500 UI Tests-Runner[67657:15467204] Task <1FDF18CC-A09F-4BBD-A4CA-967FAB0C0EA0>.<39> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2021-11-17 12:06:18.385754-0500 UI Tests-Runner[67657:15467204] Task <1FDF18CC-A09F-4BBD-A4CA-967FAB0C0EA0>.<39> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600002794c00 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1FDF18CC-A09F-4BBD-A4CA-967FAB0C0EA0>.<39>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <1FDF18CC-A09F-4BBD-A4CA-967FAB0C0EA0>.<39>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:53670/commandCruising, NSErrorFailingURLKey=http://localhost:53670/commandCruising, _kCFStreamErrorDomainKey=1}
2021-11-17 12:06:18.385875-0500 UI Tests-Runner[67657:15467204] [SBTUITestTunnel] Failed to get http response: <NSMutableURLRequest: 0x600002b44c30> { URL: http://localhost:53670/commandCruising }
2021-11-17 12:06:19.391062-0500 UI Tests-Runner[67657:15466273] [connection] nw_socket_handle_socket_event [C44.1:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:19.392891-0500 UI Tests-Runner[67657:15466273] [connection] nw_socket_handle_socket_event [C44.2:2] Socket SO_ERROR [61: Connection refused]
2021-11-17 12:06:19.393525-0500 UI Tests-Runner[67657:15466273] Connection 44: received failure notification
2021-11-17 12:06:19.393688-0500 UI Tests-Runner[67657:15466273] Connection 44: failed to connect 1:61, reason -1
2021-11-17 12:06:19.393776-0500 UI Tests-Runner[67657:15466273] Connection 44: encountered error(1:61)
2021-11-17 12:06:19.395949-0500 UI Tests-Runner[67657:15466273] Task <23EF4D89-CA95-4DD4-B1FB-DACF678FF668>.<40> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2021-11-17 12:06:19.396243-0500 UI Tests-Runner[67657:15466273] Task <23EF4D89-CA95-4DD4-B1FB-DACF678FF668>.<40> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x60000278a490 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <23EF4D89-CA95-4DD4-B1FB-DACF678FF668>.<40>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <23EF4D89-CA95-4DD4-B1FB-DACF678FF668>.<40>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:53670/commandCruising, NSErrorFailingURLKey=http://localhost:53670/commandCruising, _kCFStreamErrorDomainKey=1}
2021-11-17 12:06:19.396531-0500 UI Tests-Runner[67657:15466273] [SBTUITestTunnel] Failed to get http response: <NSMutableURLRequest: 0x600002b7c4d0> { URL: http://localhost:53670/commandCruising }
<unknown>:0: error: -[UI_Tests.FeedbackTests testFeedbackShowsFailureForFailedUploadWithReceiptsAndCloses] : MyAppName crashed in <external symbol>
    t =    11.01s Tear Down