device-farm | top level client of aws device farm api
kandi X-RAY | device-farm Summary
kandi X-RAY | device-farm Summary
A top level client of aws device farm api to manage your tests :rocket:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of device-farm
device-farm Key Features
device-farm Examples and Code Snippets
Community Discussions
Trending Discussions on device-farm
QUESTION
I am trying to setup e2e for my react apps using AWS Device Farm Browser Testing, I can see it supports selenium-remote-web-driver on documentation but I am interested on knowing if I can use webdriver-io and execute my tests on device farm ?
I can’t find a service runner available for device-farm ? Aren’t there any yet ?
...ANSWER
Answered 2020-Apr-21 at 20:41Assuming it is just as any other cloud web and mobile testing platform like browserstack and saucelab, it is possible to do it.
Reference: https://kapoorlakshya.github.io/executing-webdriverio-browser-tests-aws-device-farm
QUESTION
I followed the steps from https://medium.com/@dabit3/testing-mobile-applications-across-hundreds-of-real-devices-with-appium-node-js-aws-device-farm-b749aefd651a and created a zip file and uploaded the same to aws device farm in device run. However, when i start the run, i get the error,
...ANSWER
Answered 2020-Apr-17 at 20:11I work on the Device Farm team.
From the output you have shared there could be a few possible reasons.
The default test spec file used in Device Farm has a command in the test phase which is:
"- cd $DEVICEFARM_TEST_PACKAGE_PATH/node_modules/*"
Since it is not finding the file autoappium.js you want to check if this line was removed from your test spec file.
Check installation of node modules in the test spec file under the "install" phase. This looks like:
echo "Navigate to test package directory
cd $DEVICEFARM_TEST_PACKAGE_PATH
npm install *.tgz
If the modules are not installed then the files would not be picked up.
Do you run the test using the same command locally? "node autoappium.js"
If not, then you should use the same command in place of "- ./node_modules/mocha/bin/mocha test_native_ios.js" as shown in the test spec file comment.
Hope this helps. If this does not resolve, please share the run URL of from the console and I should be able to help you forward with it.
QUESTION
Test fails on AWS device farm (running for iOS) after running few scripts with
org.openqa.selenium.WebDriverException:java.io.IOException: unexpected end of stream on Connection{127.0.0.1:4723, proxy=DIRECT hostAddress=/127.0.0.1:4723 cipherSuite=none protocol=http/1.1}
Selenium-java version is 3.141.59.
When I run my script on local with platform version 12.1 and device Name is iPhone 6 plus, it runs smoothly. But fails on device farm with any device and version(I have checked on few, iPhone 7, version 11.0 is one of those).
I have tried running on many other compatible different iOS version, still face the same issue. I have tried on both 127.0.0.1:4723 and 0.0.0.0:4723.
...-[TestNG] org.openqa.selenium.WebDriverException: java.io.IOException: unexpected end of stream on Connection{127.0.0.1:4723, proxy=DIRECT hostAddress=/127.0.0.1:4723 cipherSuite=none protocol=http/1.1}
-Caused by: java.io.EOFException: \n not found: limit=0 content=…
ANSWER
Answered 2019-May-27 at 13:34Thanks for posting those logs! It looks like the capabilities are valid(though the bundle id is obviously not valid). The bundleId will automatically be taken from the ipa file so it shouldn't be necessary to provide that if we also have the app
capability.
http://appium.io/docs/en/writing-running-appium/caps/#ios-only
Bundle ID of the app under test. Useful for starting an app on a real device or for using other caps which require the bundle ID during test startup. To run a test on a real device using the bundle ID, you may omit the 'app' capability, but you must provide 'udid'.
The default capabilities required for the app to start should be already provided by the default appium server CLI command in the testspec.yml file.
appium --log-timestamp --device-name $DEVICEFARM_DEVICE_NAME --platform-name $DEVICEFARM_DEVICE_PLATFORM_NAME --app $DEVICEFARM_APP_PATH --udid $DEVICEFARM_DEVICE_UDID --automation-name XCUITest --default-capabilities "{\"usePrebuiltWDA\": true, \"derivedDataPath\":\"$DEVICEFARM_WDA_DERIVED_DATA_PATH_V1\"}" >> $DEVICEFARM_LOG_DIR/appiumlog.txt 2>&1 &
Capabilities
QUESTION
I am trying to run our app tests in device farm but I am getting an error saying it cannot find the features. java.lang.IllegalArgumentException: Not a file or directory: /tmp/scratchktFI9V.scratch/test-packagehFUzci/src/test/resources/features
I have got the example repo and app running and passing as per this guide which is all great but when running our own I get this error.
I noticed the example tests uses classpath
in the features path but when i try this i just get Not a file or directory: /tmp/scratchRlueAN.scratch/test-packageMMRQh4/classpath
These are my cucumber options:
...ANSWER
Answered 2019-Jan-13 at 14:04Try using classpath:
. Note the colon at the end.
QUESTION
I'm trying to set up CI on Microsoft's Visual Studio Team Services (VSTS) that includes AWS CLI task. I have some steps for building an iOS app and those steps are successfully executed. Then, I want to upload generated .ipa
files to AWS Device Farm using AWS CLI commands.
To upload files to AWS, I followed this documentation, where it is stated that I have to run aws devicefarm create-upload ...
command first. This command is executed successfully on VSTS and it outputs JSON formatted response, like this:
ANSWER
Answered 2018-Mar-13 at 03:00There isn’t the output variable in AWS CLI task, you may submit the issue here: https://github.com/aws/aws-vsts-tools/issues
The workaround is that you can get the task logs through Build Log REST API, so you can call REST API to get the task log (e.g. through curl), then extract data from the log.
QUESTION
I'm trying to run some UI automation tests for iOS in the AWS Device Farm. However, I keep on getting the following error:
The company I work for doesn't have the free access to their support, so it makes a little harder to reach out Amazon themselves to seek an answer.
I have basically followed all of the following steps on how to set it all up from this link: https://medium.com/ios-os-x-development/how-to-run-your-iphone-test-on-aws-device-farm-98f18086811e (I'm using XCTest in the device farm). If anyone have managed to overcome the same or similar issue, please let me know. Thanks!
...ANSWER
Answered 2017-Oct-19 at 22:31If you're continuously getting that error I would think something is wrong with the test package. Try running a fuzz test using the same devices and same IPA file. If those execute then it's definitely something wrong with the test package.
Hope that helps.
James.
Also AWS dev support is the greater of $29 or 3% of bill per month. It might just take longer to get a response with that plan than others.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install device-farm
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page