sudharsan-selvaraj / appium-dashboard-plugin

Appium plugin that provides complete test logs, video recording of test and device logs(logcat and syslogs) for easy debugging.
116 stars 28 forks source link

Configure a Docker volume to preserve the information of the test session #126

Closed win5923 closed 1 year ago

win5923 commented 1 year ago

I am using appium-docker-android and install the Appium Dashboard plugin. I would like to know where the detailed information of each session is stored because every time I restart, the data of the test session disappears. I want to set up a Docker volume to ensure that my test data and video records do not disappear. Can you tell me how to set it up? Thank you.

sudharsan-selvaraj commented 1 year ago

The default location where the data and videos will be stored is under

  1. Mac /Users/<username>/.cache/appium-dashboard-plugin
  2. Linux /home/<username>/.cache/appium-dashboard-plugin

You can mount the above directory as a volume to hostmachine while starting the docker container. Refer stackoverflow thread for more details on docker mounting.

win5923 commented 1 year ago

Prepare adb to have access to device

can't mount the above directory as a volume to hostmachine.

sudharsan-selvaraj commented 1 year ago

On the host machine can you change the permission of the mounted directory sudo chown -R 1001:1001 <dir path> and try again