Device side issues:
In the command prompt, if you type "adb devices -l" command then some of the devices may be displayed as unauthorized
List of devices attached
213495xxxxxx0092 unauthorized
solution: In mobile go to settings then enable user debugging mode properly then try the command.
adb devices -l
List of devices attached
21349xxxxxxx092 device product: Product_Name model: model name device: device_name
======================================================================
Memory-related issues in machines:
Most of the time when we are running automation scripts we will get error messages like:"no space left on device"
solution: We have to clean up the memory (by deleting dockers, containers, and temporary files) and also used below command
docker system prune -a ==> It will clear space on your device by doing the following tasks
This command will remove:
- all stopped containers
- all networks not used by at least one container
- all images without at least one container associated with them
- all build cache
Note: Every time, before running long-run automation scripts, make sure that machine memory will be sufficient or not?
======================================================================
No comments:
Post a Comment