layout | page_title | sidebar_current | description |
---|---|---|---|
genymotion |
Provider: genymotion |
docs-genymotion-index |
Genymotion Cloud Provider is used to interact with many resources supported by Genymotion Cloud SaaS. The provider needs to be configured with the proper credentials before it can be used. |
Genymotion Cloud Provider
Genymotion Cloud provider is used to interact with the resource supported by Genymotion Cloud SaaS. It will start Genymotion Cloud Android virtual devices that can directly be connected to adb to seamlessly run and scale your automated tests on them. The provider needs to be configured with the proper credentials before it can be used.
Genymotion Cloud provider needs gmsaas binary to be installed. You can easily install it with Python3
# Install gmsaas binary
pip3 install gmsaas
You also must configure Android SDK path :
# Configure Android SDK path
gmsaas config set android-sdk-path <PATH_TO_ANDROID_SDK>
Use the navigation to the left to read about the available resource.
Example Usage
# Configure the Genymotion Provider
provider "genymotion" {
email = "${var.email}"
password = "${var.password}"
}
# Create an Genymotion Cloud SaaS Android instance
resource "genymotion_cloud" "Android90" {
recipe_uuid = "143eb44a-1d3a-4f27-bcac-3c40124e2836"
name = "Android90"
}
Authentication
Genymotion Cloud provider accepts several ways to enter credentials for authentication. The following methods are supported, in this order, and explained below:
- Static credentials
- Environment variables
Static credentials
Static credentials can be provided by adding an email
and password
in-line in the
genymotion provider block:
Usage:
provider "genymotion" {
email = "${var.email}"
password = "${var.password}"
}
Environment variables
You can provide your credentials via GENYMOTION_EMAIL
and GENYMOTION_PASSWORD
,
environment variables, representing your Genymotion Cloud SaaS credentials.
provider "genymotion" {}
Usage:
$ export GENYMOTION_EMAIL="your_genymotion_saas_email"
$ export GENYMOTION_PASSWORD="your_genymotion_saas_password"
$ terraform plan
Argument Reference
The following arguments are supported:
-
email
- This is the Genymotion Cloud SaaS email account. It must be provided, but it can also be sourced from theGENYMOTION_EMAIL
environment variable. -
password
- This is the Genymotion Cloud SaaS password account. It must be provided, but it can also be sourced from theGENYMOTION_PASSWORD
environment variable.
Testing
Credentials must be provided via the GENYMOTION_EMAIL
, and GENYMOTION_PASSWORD
environment variables in order to run acceptance tests.