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

Device farm not recording videos #1398

Open
d4v1dk0n7 opened this issue Sep 25, 2024 · 10 comments
Open

Device farm not recording videos #1398

d4v1dk0n7 opened this issue Sep 25, 2024 · 10 comments

Comments

@d4v1dk0n7
Copy link

Hi team,

The latest version of device farm is not storing the videos when the capability is added as true:

df:recordVideo = true

  1. Appium version (or git revision) that exhibits the issue: latest
  2. Last Appium version that did not exhibit the issue (if applicable): latest
  3. Node.js version (unless using Appium.app|exe): latest
  4. Npm or Yarn package manager: latest
  5. Mobile platform/version under test: uiautomator2
  6. Real device or emulator/simulator: emulator
  7. Appium CLI or Appium.app|exe: CLI
@erdncyz
Copy link
Contributor

erdncyz commented Sep 25, 2024

Hi @d4v1dk0n7
Can you give detail. I tried it is working fine. Can you send your capabilities and send full server log please..

@d4v1dk0n7
Copy link
Author

Hi, here you have the capabilities:

        AppiumOptions capabilities = new AppiumOptions();
        Dictionary<string, object> options = new Dictionary<string, object>
        {
            { "automationName", AutomationName.AndroidUIAutomator2 },
            { "app", appPath },
            { "autoGrantPermissions", true },
            { "enforceAppInstall", true },
            { "recreateChromeDriverSessions", true },
            { "newCommandTimeout", Timeouts.NewCommandTimeOut.TotalSeconds },
            { "androidInstallTimeout", Timeouts.AppInstallTimeOut.TotalMilliseconds },
            { "uiautomator2ServerInstallTimeout", Timeouts.AppInstallTimeOut.TotalMilliseconds },

            //Device farm capabilities
            { "df:recordVideo", true }
        };

        capabilities.AddAdditionalAppiumOption("appium:options", options);

And the complete logs:

https://gist.github.com/d4v1dk0n7/8b054f5f846acbd2de4a3121859a3ece

In the logs I can see this, maybe this is the cause of the issue...

2024-09-26 08:34:00:976 - [AndroidUiautomator2Driver@1e7c] The following provided capabilities were not recognized by this driver:
2024-09-26 08:34:00:976 - [AndroidUiautomator2Driver@1e7c] df:recordVideo
2024-09-26 08:34:00:976 - [AndroidUiautomator2Driver@1e7c] chromeDriverPort
2024-09-26 08:34:00:976 - [AndroidUiautomator2Driver@1e7c] adbRemoteHost

Thanks.

@erdncyz
Copy link
Contributor

erdncyz commented Sep 26, 2024

Hi @d4v1dk0n7,

Can you try it below capabilities ?

`AppiumOptions capabilities = new AppiumOptions();

capabilities.PlatformName = "Android";
capabilities.AddAdditionalAppiumOption("automationName", "UIAutomator2");
capabilities.AddAdditionalAppiumOption("app", appPath);
capabilities.AddAdditionalAppiumOption("autoGrantPermissions", true);
capabilities.AddAdditionalAppiumOption("enforceAppInstall", true);
capabilities.AddAdditionalAppiumOption("recreateChromeDriverSessions", true);
capabilities.AddAdditionalAppiumOption("newCommandTimeout", Timeouts.NewCommandTimeOut.TotalSeconds);
capabilities.AddAdditionalAppiumOption("androidInstallTimeout", Timeouts.AppInstallTimeOut.TotalMilliseconds);
capabilities.AddAdditionalAppiumOption("uiautomator2ServerInstallTimeout", Timeouts.AppInstallTimeOut.TotalMilliseconds);
capabilities.AddAdditionalAppiumOption("df:recordVideo", true);
`

@d4v1dk0n7
Copy link
Author

Hi @erdncyz,

Same result...

2024-09-26 12:18:26:201 - [AndroidUiautomator2Driver@55a7] The following provided capabilities were not recognized by this driver:
2024-09-26 12:18:26:203 - [AndroidUiautomator2Driver@55a7] df:recordVideo
2024-09-26 12:18:26:204 - [AndroidUiautomator2Driver@55a7] chromeDriverPort
2024-09-26 12:18:26:204 - [AndroidUiautomator2Driver@55a7] adbRemoteHost

@erdncyz
Copy link
Contributor

erdncyz commented Sep 26, 2024

@d4v1dk0n7 Hi,

My capabilities like :

For ios :

:caps:
appium:udid: "Your device uidid"
platformName: "ios"
bundleId: "you app bundle id"
appium:automationName: "XCUITest"
appium:autoAcceptAlerts: true
:appiumVersion: 2.11.3
appium:noReset: false
appium:fullReset: false
appium:clearSystemFiles: true
appium:newCommandTimeout: 1800
df:liveVideo: true
df:recordVideo: true
df:saveDeviceLogs: false
df:skipReport: false
df:build: ""
:appium_lib:
:server_url: ""

For android :

:caps:
appium:udid: "Your device uidid id"
appium:deviceName: "Automation2"
platformName: "Android"
appium:appPackage: "Your package"
appium:appActivity: "Your package"
appium:noReset: false
appium:fullReset: false
appium:automationName: "UiAutomator2"
appium:newCommandTimeout: 1800
appium:appiumVersion: "2.11.3"
df:liveVideo: true
df:recordVideo: true
df:saveDeviceLogs: false
df:skipReport: false
df:build: ""
:appium_lib:
:server_url: ""

ı don't have any error like your error message

@d4v1dk0n7
Copy link
Author

Hi @erdncyz,

Ok.. But I don't see anything wrong in my capabilities...
So... What I have to do then?

These are the versions of appium components:

appium server: 2.11.4
uiautomator2 driver: 3.8.0
device farm plugin: 9.2.11

Are you also working with latest versions as me?

@erdncyz
Copy link
Contributor

erdncyz commented Sep 26, 2024

Hi @d4v1dk0n7,

Yes, I am using the latest version, you can use the appium inspector df:recordVideo: true
When you do it, can you create a session and try to see if it records while browsing?

Like these:

image

@dudi86
Copy link

dudi86 commented Oct 1, 2024

hi, is there a solution for this problem?
because I'm experiencing it too.

with the latest version:
appium server: 2.11.4
uiautomator2 driver: 3.8.0
xcuitest driver: 7.26.4
device farm plugin: 9.2.11
Node: 22.9.0

@erdncyz
Copy link
Contributor

erdncyz commented Oct 3, 2024

Hi @dudi86

Did you try my last comment ?

@luprochazka-cen63872
Copy link

luprochazka-cen63872 commented Nov 19, 2024

Can you check it? I see the issue too. Live video is OK, but record is missing. I tried RobotFramework and Appium Inspector, same result.

{ "platformName": "Android", "appium:automationName": "UIAutomator2", "appium:udid": "emulator-5554", "df:liveVideo": true, "df:recordVideo": true, "df:saveDeviceLogs": false, "df:skipReport": false }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants