alttester / AltTester-Unity-SDK

AltTester Unity SDK is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them using tests written in C#, Python, Robot or Java.
https://alttester.com/docs/sdk/latest/home.html
GNU General Public License v3.0
60 stars 7 forks source link

[WebGL] Error in game using NIS when using the input actions in Desktop with `Click objects` in Recorder #1476

Open iulianatodoran opened 7 months ago

iulianatodoran commented 7 months ago

Steps to reproduce

1. Connect the launched `roll-a-ball` instrumented WebGL build with AltTester Desktop 2. Start a recording with `Click objects` selected 3. Using `Click/Press` or `Tap/Swipe` click on some objects in the Screenshot Area 4. Check the game console for errors ## Actual result ### AR After step 3 in the game console there is an error: ``` InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings. at UnityEngine.Input.get_mousePosition_Injected (UnityEngine.Vector3& ret) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Input.get_mousePosition () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.BaseInput.get_mousePosition () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.UpdateModule () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.EventSystem.TickModules () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <00000000000000000000000000000000>:0 ``` ### Additional info Environment - `roll-a-ball` WebGL game build instrumented with AltTester Unity SDK from `development` branch (15.01.24) - Unity version for instrumenting builds: `2022.3.17f1` - browser for launching the game: Chrome - AltTester Desktop from `development` branch (12.01.24 - commit `ff1bc0e`) Screenshots ![image](https://github.com/alttester/AltTester-Unity-SDK/assets/62327834/1bab61f7-f07c-419d-9722-1f140860ea51) Notes - issue found while testing https://github.com/alttester/AltTester-Unity-SDK/issues/1429 ## Expected result ### ER After step 3 there should be no error in the game console ### Additional info ## Testability
iulianatodoran commented 7 months ago

The functionality of the game is not affected by this error. Triaged Week no.3. Not prioritized for next releases.