Reputation: 11
To run appium-project on AWS Device Farm, the pre-requisite is to not to set desired capabilities in the appium project. As suggested in the training video
If I don't set the capabilities, test fail on my local with error "A new session could not be created. Details: The desiredCapabilities
object was not valid for the following reason(s): deviceName
can't be blank."
If tests fail zip-with-dependencies.zip
wont be created.
Note: if I set desired capabilities in appium-project, tests are failing on AWS device farm.
Upvotes: 1
Views: 1150
Reputation: 11
In order to create zip-with-dependencies.zip
you can skip tests:
Go to command line and run this command
mvn clean package -DskipTests=true
After you get a BUILD SUCCESS message, check your target directories for zip-with-dependencies.zip
file.
Upvotes: 1
Reputation: 3595
Apologies that you are running into issues. We've published a sequence of blogs posts that show you how to construct Appium tests to run in AWS Device Farm. In particular, Device Farm does not want you to set DesiredCapabilities
except for the URL.
@BeforeMethod
public void setUp() throws Exception {
DesiredCapabilities capabilities = new DesiredCapabilities();
URL url = new URL("http://localhost:4723/wd/hub");
driver = new RemoteWebDriver(url, capabilities);
}
Upvotes: 1