Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app closed the connection or unexpectedly disconnected. #1418

Open
ritjha opened this issue Oct 31, 2023 · 2 comments
Open

The app closed the connection or unexpectedly disconnected. #1418

ritjha opened this issue Oct 31, 2023 · 2 comments
Labels
bug Something isn't working triaged
Milestone

Comments

@ritjha
Copy link

ritjha commented Oct 31, 2023

In what language is the test written?
(C#, Java, Python 2.7, Python 3)

What version of Unity are you using?
(2019.4.40f1, 2020.3.31f1, 2020.3.40f1, 2021.3.2f1, 2021.3.11f1, etc)

What version of AltTester® Unity SDK are you using?
(1.6.6, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 2.0.0, 2.0.1, 2.0.2)

On what device are you trying to run the test?
(Android, iOS)

The OS from where you are running the test?
(Windows, macOS)

Summary

(Summarize the bug encountered concisely)

Steps to reproduce

(How one can reproduce the issue)

Relevant logs and/or screenshots

(Please offer logs and screenshots of the problem. Cover everything that is confidential)

@ritjha ritjha added the bug Something isn't working label Oct 31, 2023
@ritjha
Copy link
Author

ritjha commented Oct 31, 2023

language : Python 3
Unity version : 2021.3.23f1
AltTester® Unity SDK : AltTester_2_0_2
Device :Android
OS from where you are running the test : macOS
Summary :
Launch integrated SDK app -->click on "Term and Services(Unity object) -->after click on TOS lands to login ---> click on login with fb --> once clicked on login with fb ,fb native pop come in webview .The app is getting closed once the webview pop comes with error message "alttester.exceptions.CommandResponseTimeoutException"
Please find below the debugged log

2023-10-31 15:08:30.186 | DEBUG | alttester.altdriver:init:59 - Connecting to AltTester on host: '127.0.0.1', port: '13000' and app name: 'BingoAltTesterSDK'.
2023-10-31 15:08:30.187 | INFO | alttester._websocket:connect:273 - Connecting to URL: 'ws://127.0.0.1:13000/altws?appName=BingoAltTesterSDK'.
2023-10-31 15:08:30.218 | DEBUG | alttester._websocket:_on_open:263 - Connection opened successfully.
2023-10-31 15:08:30.293 | DEBUG | alttester._websocket:send:303 - Sent: {"commandName": "getServerVersion", "messageId": "1698745110.293244"}
2023-10-31 15:08:30.443 | DEBUG | alttester._websocket:_on_message:232 - Received: {"messageId":"1698745110.293244","driverId":"-1578915856","commandName":"getServerVersion","error":null,"data":""2.0.2"","isNotification":false}
2023-10-31 15:08:30.502 | DEBUG | alttester.commands.base_command:handle_response:172 - Response data: "2.0.2"
2023-10-31 15:08:30.605 | INFO | alttester.altdriver:_check_server_version:111 - Connection established with instrumented Unity app. AltTester Version: 2.0.2
2023-10-31 15:08:30.606 | DEBUG | alttester._websocket:send:303 - Sent: {"commandName": "findObject", "messageId": "1698745110.606391", "by": "PATH", "path": "/CanvasOverlay/LayerDialogs/PreloaderView/TOS Screen/BTN_Agree/LabelText", "cameraBy": "NAME", "cameraPath": "//", "enabled": true}
2023-10-31 15:08:30.742 | DEBUG | alttester._websocket:_on_message:232 - Received: {"messageId":"1698745110.606391","driverId":"-1578915856","commandName":"findObject","error":null,"data":"{"name":"LabelText","id":-632,"x":768,"y":166,"z":5,"mobileY":986,"type":"","enabled":true,"worldX":-0.00161054148,"worldY":-3.56227469,"worldZ":-5.0,"idCamera":32752,"transformParentId":-622,"transformId":-634}","isNotification":false}
2023-10-31 15:08:30.814 | DEBUG | alttester.commands.base_command:handle_response:172 - Response data: {"name":"LabelText","id":-632,"x":768,"y":166,"z":5,"mobileY":986,"type":"","enabled":true,"worldX":-0.00161054148,"worldY":-3.56227469,"worldZ":-5.0,"idCamera":32752,"transformParentId":-622,"transformId":-634}
2023-10-31 15:08:30.916 | DEBUG | alttester.altdriver:_get_alt_object:130 - Element LabelText found at x: 768 y: 166 mobileY: 986
2023-10-31 15:08:30.917 | DEBUG | alttester._websocket:send:303 - Sent: {"commandName": "clickElement", "messageId": "1698745110.917593", "altObject": {"name": "LabelText", "id": -632, "x": 768, "y": 166, "z": 5, "mobileY": 986, "type": "", "enabled": true, "worldX": -0.00161054148, "worldY": -3.56227469, "worldZ": -5.0, "transformParentId": -622, "transformId": -634, "idCamera": 32752}, "count": 1, "interval": 0.1, "wait": true}
2023-10-31 15:08:31.016 | DEBUG | alttester._websocket:_on_message:232 - Received: {"messageId":"1698745110.917593","driverId":"-1578915856","commandName":"clickElement","error":null,"data":"{"name":"LabelText","id":-632,"x":768,"y":166,"z":5,"mobileY":986,"type":"","enabled":true,"worldX":-0.00161054148,"worldY":-3.56227469,"worldZ":-5.0,"idCamera":32752,"transformParentId":-622,"transformId":-634}","isNotification":false}
2023-10-31 15:08:31.019 | DEBUG | alttester.commands.base_command:handle_response:172 - Response data: {"name":"LabelText","id":-632,"x":768,"y":166,"z":5,"mobileY":986,"type":"","enabled":true,"worldX":-0.00161054148,"worldY":-3.56227469,"worldZ":-5.0,"idCamera":32752,"transformParentId":-622,"transformId":-634}
2023-10-31 15:08:31.253 | DEBUG | alttester._websocket:_on_message:232 - Received: {"messageId":"1698745110.917593","driverId":"-1578915856","commandName":"clickElement","error":null,"data":""Finished"","isNotification":false}
2023-10-31 15:08:31.331 | DEBUG | alttester.commands.base_command:handle_response:172 - Response data: "Finished"
Clicked on Terms and Agreement
2023-10-31 15:08:36.338 | DEBUG | alttester._websocket:send:303 - Sent: {"commandName": "findObject", "messageId": "1698745116.337716", "by": "PATH", "path": "/CanvasOverlay/LayerDialogs/PreloaderView/LoginView/Login/BTN_Login/LabelText", "cameraBy": "NAME", "cameraPath": "//", "enabled": true}
2023-10-31 15:08:36.452 | DEBUG | alttester._websocket:_on_message:232 - Received: {"messageId":"1698745116.337716","driverId":"-1578915856","commandName":"findObject","error":null,"data":"{"name":"LabelText","id":-664,"x":1103,"y":355,"z":5,"mobileY":797,"type":"","enabled":true,"worldX":2.90434361,"worldY":-1.91698408,"worldZ":-5.0,"idCamera":32752,"transformParentId":-656,"transformId":-666}","isNotification":false}
2023-10-31 15:08:36.549 | DEBUG | alttester.commands.base_command:handle_response:172 - Response data: {"name":"LabelText","id":-664,"x":1103,"y":355,"z":5,"mobileY":797,"type":"","enabled":true,"worldX":2.90434361,"worldY":-1.91698408,"worldZ":-5.0,"idCamera":32752,"transformParentId":-656,"transformId":-666}
2023-10-31 15:08:36.653 | DEBUG | alttester.altdriver:_get_alt_object:130 - Element LabelText found at x: 1103 y: 355 mobileY: 797
2023-10-31 15:08:36.654 | DEBUG | alttester._websocket:send:303 - Sent: {"commandName": "clickElement", "messageId": "1698745116.653941", "altObject": {"name": "LabelText", "id": -664, "x": 1103, "y": 355, "z": 5, "mobileY": 797, "type": "", "enabled": true, "worldX": 2.90434361, "worldY": -1.91698408, "worldZ": -5.0, "transformParentId": -656, "transformId": -666, "idCamera": 32752}, "count": 1, "interval": 0.1, "wait": true}
2023-10-31 15:08:36.741 | DEBUG | alttester._websocket:_on_message:232 - Received: {"messageId":"1698745116.653941","driverId":"-1578915856","commandName":"clickElement","error":null,"data":"{"name":"LabelText","id":-664,"x":1103,"y":355,"z":5,"mobileY":797,"type":"","enabled":true,"worldX":2.90434361,"worldY":-1.91698408,"worldZ":-5.0,"idCamera":32752,"transformParentId":-656,"transformId":-666}","isNotification":false}
2023-10-31 15:08:36.756 | DEBUG | alttester.commands.base_command:handle_response:172 - Response data: {"name":"LabelText","id":-664,"x":1103,"y":355,"z":5,"mobileY":797,"type":"","enabled":true,"worldX":2.90434361,"worldY":-1.91698408,"worldZ":-5.0,"idCamera":32752,"transformParentId":-656,"transformId":-666}
2023-10-31 15:09:10.728 | DEBUG | alttester._websocket:_on_close:249 - Connection to AltServer closed with status code: 4002 and message: 'The app closed the connection or unexpectedly disconnected.'.
Traceback (most recent call last):

@sandraaltom
Copy link

Triaged Week no. 45.

@gomboskriszta15 gomboskriszta15 added this to the Concurrency milestone Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

3 participants