android / android/android-test
ActivityScenario.getResult() occasionally delays 45 secs
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 342
- Merge medio
- 11h 29m
- PR unite (30g)
- 2
Descrizione
### Description
Using the new `ActivityScenario` for our tests. Sadly in various occasions the `getResult()` will wait 30 seconds until it returns successfully. This behavior is not deterministic as sometimes it works again.
In both cases the result will be delivered successfully.
In cases the `getResult()` waits for 45 seconds the tested activity is already finished and the empty activity with black background is shown.
### Steps to Reproduce
The steps in our project to reproduce:
`launchActivity`
```
ActivityScenario.use{
// do the testing
// ui code finishing the activity
// retrieve `result`
result.checkResultData()
}
```
### Expected Results
It would not wait for 45 seconds but less time before retrieving the result data
### Actual Results
It freezes randomly for 45 seconds before successful result data is retrieved
### AndroidX Test and Android OS Versions
- 3.3.0-rc01
- Android 11, but also happening on Android 10
### Link to a public git repo demonstrating the problem:
-
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da ActivityScenario.getResult() e dal flusso launchActivity descritto nel report, quindi riproduci il ritardo intermittente su Android 10 o 11. Traccia l’attesa fino alla consegna del risultato dell’activity e verifica che il risultato venga restituito senza la pausa di 45 secondi segnalata; l’issue è obsoleta e non ha alcuna pull request collegata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- mobile-dev, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100