Questions tagged with AWS Device Farm
Content language: English
Sort by most recent
Can the Amazon Monitron App be integrated onto Grafana? If so, what would the steps be? I understand the Monitron can, but can the app be integrated as well? I appreciate any theories/answers. Thanks in advance
Appium python iOS Automation machine shows ProductName:Mac OS X and ProductVersion:10.15.6 hence unable to execute iOS 15 Automation
Any process to use latest Mac OS machine to execute on iOS 15 devices on AWS Device Farm?Kindly let me know

I'm working to validate my device with Greengrass v2 on a Windows 2019 OS.
When executing the devicetester_win_x86-64.exe it launches a pretest validation check to make sure the correct components are installed on Windows. Below is the messages I'm seeing when this happens.
info msg="GGV2 Suite Info" hostArch=amd64 hostName=WIN-JTAA71LE6U1 hostOs=windows testCaseId=pretestvalidation deviceId=ztC-200i groupId=pretestvalidation
info msg="Running test case"
info msg="Setting up device for testing"
info msg="Running preTest validation test"
error msg="Encountered failure running pretest validation - \n your device doesn't have Visual C++ 2017 or later versions installed"
The last message tells me that it can not validate that Visual C++ 2017 Redistributable has been installed.
I have installed this on my machine and validated that it exists in add remove programs. Microsoft Visual C++ 2015-2022 Redistributable.
How is the pretestvalidation tool verifying that it's installed on the machine?
I checked the Registry and it looks correct.
Is it possible that the latest version of the Redistributable does not work with this pretestvalidation tool?
Anyone have any suggestions?
Thanks
-Peter
Hello everyone.
I have an issue with device farm, that from all devices on device pool only 5 Samsung devices are available and that all, this is IAM user of company account.
However on my personal root account I have all the devices available for the same app and test environment.
as the title says URL generated by scripts are failing at the moment of uploading via curl with the following error message:
```
The request signature we calculated does not match the signature you provided. Check your key and signing method.
```
however if I run the same steps manually in the shell it works with no issues.
also, if I take a URL generated by the script and try to do curl manually it fails.
here's the script:
```
#!/bin/bash
# Set the variables
AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID>
AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
AWS_DEFAULT_REGION=<YOUR_AWS_REGION>
PROJECT_ARN=<YOUR_DEVICE_FARM_PROJECT_ARN>
DEVICE_POOL_ARN=<YOUR_DEVICE_FARM_DEVICE_POOL_ARN>
APK_FILE_PATH=<PATH_TO_YOUR_APK_FILE>
TEST_FILE_PATH=<PATH_TO_YOUR_TEST_BUNDLE_FILE>
# Upload the APK to Device Farm
APK_UPLOAD_RESPONSE=$(aws devicefarm create-upload \
--project-arn $PROJECT_ARN \
--name $(basename $APK_FILE_PATH) \
--type ANDROID_APP \
--content-type application/octet-stream \
--query "upload.[arn, url]" \
--output text \
--region $AWS_DEFAULT_REGION \
--profile default \
)
# Upload the test bundle to Device Farm
TEST_UPLOAD_RESPONSE=$(aws devicefarm create-upload \
--project-arn $PROJECT_ARN \
--name $(basename $TEST_FILE_PATH) \
--type APPIUM_JAVA_JUNIT_TEST_PACKAGE \
--content-type application/octet-stream \
--query "upload.[arn, url]" \
--output text \
--region $AWS_DEFAULT_REGION \
--profile default \
)
# Get the upload ARNs from the responses
APK_UPLOAD_ARN=$(echo $APK_UPLOAD_RESPONSE | awk '{print $1}')
TEST_UPLOAD_ARN=$(echo $TEST_UPLOAD_RESPONSE | awk '{print $1}')
# Get the upload URLs from the responses
APK_UPLOAD_URL=$(echo $APK_UPLOAD_RESPONSE | awk '{print $2}')
TEST_UPLOAD_URL=$(echo $TEST_UPLOAD_RESPONSE | awk '{print $2}')
# Upload the APK and test bundle to S3 using curl
curl -T $APK_FILE_PATH "$APK_UPLOAD_URL"
curl -T $TEST_FILE_PATH "$TEST_UPLOAD_URL"
# Schedule a test run with Device Farm
aws devicefarm schedule-run \
--project-arn $PROJECT_ARN \
--app-arn $APK_UPLOAD_ARN \
--device-pool-arn $DEVICE_POOL_ARN \
--name "My Test Run" \
--test '{"type": "APPIUM_JAVA_JUNIT_TEST_PACKAGE", "testPackageArn": "'$TEST_UPLOAD_ARN'"}' \
--query "run.[arn]" \
--output text \
--region $AWS_DEFAULT_REGION \
--profile default \
```
I am not sure why I am getting this error as I have specified platformName in Yaml configuration. I have run a similar test in android and it works.
Please check below:
appium --log-timestamp --session-override --base-path /wd/hub
--default-capabilities "{\"usePrebuiltWDA\": true, \"derivedDataPath\":\"$DEVICEFARM_WDA_DERIVED_DATA_PATH\",
\"deviceName\": \"$DEVICEFARM_DEVICE_NAME\", \"platformName\":\"$DEVICEFARM_DEVICE_PLATFORM_NAME\", \"app\":\"$DEVICEFARM_APP_PATH\",
\"automationName\":\"XCUITest\", \"udid\":\"$DEVICEFARM_DEVICE_UDID_FOR_APPIUM\", \"platformVersion\":\"$DEVICEFARM_DEVICE_OS_VERSION\",
\"autoAcceptAlerts\": true}"
>> $DEVICEFARM_LOG_DIR/appiumlog.txt 2>&1 &
I'm able to use device farm for running automated selenium test. However I'm not getting any option of remote connection for a machine.
i.e. I'm looking for an option where I can remotely connect to an OS/Browser combination and do testing manually.
Such remote option is available for mobile device testing, however I can't see similar option for Desktop Browser Testing.
Can somebody please suggest If I'm missing anything?
I'm looking for solution to uplodate the test package (Automation script and related file) to AWS Device Farm. I'm using Robot Framework with Appium). What's the best solution to do?
There is an error message like picture below
We submit test suites to be run on iOS devices on DeviceFarm. Out of ~60 runs daily, 1-2 fail with no details or logs. The run's status is "Errored", and all suites in the run have status "Pending".


What do you recommend we do for debugging this further? There are no files generated for these runs, and Logs never load.


Hi,
I run tests on Web app mobile but I have this error : Activity class {com.android.chrome/com.google.android.apps.chrome.Main} does not exist.
And 0 tests to run.
I'm using multiple combinaisons of params of Capabilities but no success.
I'm using custom environment offers by default (the standard environment not working also)
I'm using a simple test :
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(AUTOMATION_NAME, "UIAutomator2");
driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(60, SECONDS);
driver.get("https://mywebsite.com");
Have you a simple example for testing Appium Web Java JUnit with DesiredCapabilities to include and the custom file yaml that work fine ?
Thank you
We are testing OTT based App, so most of the video content are DRM protected. So to test these content we need to disable the video recording for testing. Please let us know the procedure to disable to recording while interacting with the device.
how to connect aws device farm devices through local Appium Inspector to inspect the element(to get the locator).