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

No RemoteDescriptor registered for ViewAssertion #680

Open
andrefrsousa opened this issue Oct 18, 2024 · 0 comments
Open

No RemoteDescriptor registered for ViewAssertion #680

andrefrsousa opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andrefrsousa
Copy link

Describe the bug
When using KScreen and UiScreen in the same test, switching back to KScreen after interacting with a UiScreen triggers an exception:

java.lang.IllegalArgumentException: No RemoteDescriptor registered for ViewAssertion: com.kaspersky.kaspresso.proxy.ViewAssertionProxy@XXXXXXX

This issue arises in multi-process testing environments where UiAutomator or EspressoRemote is involved. The ViewAssertionProxy registration seems to be lost after switching between processes.

To Reproduce
Steps to reproduce the behavior:

  1. Use KScreen to interact with a screen in the main app process.
  2. Switch to a UiScreen (using UiAutomator) in a separate process (e.g., an SDK or service).
  3. Switch back to KScreen to interact with a view in the original app process.
  4. Attempt to interact with views in the original process and observe the No RemoteDescriptor registered exception.

Expected behavior
The test should switch seamlessly between processes, and KScreen should be able to interact with views in the main app process after switching back from UiScreen.

Smartphone (please complete the following information):

  • Device: Android Emulator. Pixel 6 PRO
  • Version: API 35
  • Kaspresso version: 1.5.4
  • Espresso version: 3.6.1
  • UIAutomator version: 2.2.0

Additional context

  • Neither waitForIdleSync() nor IdlingRegistry resolves the issue.
@andrefrsousa andrefrsousa added the bug Something isn't working label Oct 18, 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
Projects
None yet
Development

No branches or pull requests

1 participant