appium-device-farm
appium-device-farm copied to clipboard
Device Farm last version issues with videos and screenshots
Describe the bug
Hi,
The last version of Device Farm it is not storing the videos or showing the screenshots in the integrated Dashboard, with the "old" dashboard the videos were correctly stored and the screenshots correctly showed. Apart of this, with the old dashboard you don't needed to refresh the screen to see the new actions over the app, they were appearing automatically in the screen, with this integrated version is needed to refresh manually the screen to see new updates of the actions being taken in the app... Is this the expected behaviour?
Link to Appium logs
https://gist.github.com/d4v1dk0n7/24380ce04f2cf290480281d17295b608
Environment
- Appium version (or git revision) that exhibits the issue: last
- Last Appium version that did not exhibit the issue (if applicable):
- Node.js version (unless using Appium.app|exe): last
- Npm or Yarn package manager: last
- Mobile platform/version under test: android/ios
- Real device or emulator/simulator: simulator
- Appium CLI or Appium.app|exe: cli
@d4v1dk0n7 You need to add df:recordVideo in your caps. Also screenshots will only appear on any errors.
@d4v1dk0n7 You need to add
df:recordVideoin your caps. Also screenshots will only appear on any errors.
Hmm, but with the "old" dashboard this was not necessary because df:recordvideo was enabled by default... In the documentation I also can see that the default value is "enabled"...
https://devicefarm.org/capabilities/
Maybe this has to be corrected or the documentation is wrong?
@d4v1dk0n7 Does it work now ?
@saikrishna321 Adding this capability makes it work fine, now is storing the video (but with the "old" dashboard this was not needed). Anyway, I tried to make a test fail, and it's not showing the screenshots yet...
@saikrishna321 I'm taking a look at the old dashboard, and it wasn't taking screenshots just with the faling tests, it was taking screenshots while the test was running (several screenshots per test)...
I'm asking just to confirm, with this new integrated version, we have lost this feature of taking random screenshots while the test runs?
it was taking screenshots while the test was running
@sudharsan-selvaraj Can you confirm if this was right ?
it was taking screenshots while the test was running
@sudharsan-selvaraj Can you confirm if this was right ?
Yes, "old" takes screenshot every action as click, add text etc.
@d4v1dk0n7 @Stefankoff will check on this!
@d4v1dk0n7 @Stefankoff I confirm that the behaviour has been slightly modified with the new integrated dashboard. Screenshots are now captured exclusively for failed actions to avoid the storage of multiple images. Should you deem it necessary to capture screenshots for all critical actions ("click," "setUrl," "setValue," "performActions") irrespective of their outcome, we can accommodate that request.
@saikrishna321 any capabilities for see the network logs?
@mazis0 you mean device logs and app profiling ?
@saikrishna321 i mean network logs can see the api logs
@d4v1dk0n7 @Stefankoff I confirm that the behaviour has been slightly modified with the new integrated dashboard. Screenshots are now captured exclusively for failed actions to avoid the storage of multiple images.
In my opinion that good optimization, cause we have video record and see every step.
Hope soon can use updated device-farm + new dashboard, cause have problem with database when update from 8.4.6 8.4.7
@d4v1dk0n7 @Stefankoff I confirm that the behaviour has been slightly modified with the new integrated dashboard. Screenshots are now captured exclusively for failed actions to avoid the storage of multiple images. Should you deem it necessary to capture screenshots for all critical actions ("click," "setUrl," "setValue," "performActions") irrespective of their outcome, we can accommodate that request.
Thanks @sudharsan-selvaraj, I was asking just to confirm.