aws-devicefarm icon indicating copy to clipboard operation
aws-devicefarm copied to clipboard

On schedule run - allow for extra configuration to be passed in

Open jamie-wearsafe opened this issue 2 years ago • 0 comments

In my case I need to be able to specify device configuration: deviceSelectionConfiguration

          DEVICE_CONFIG="billingMethod=UNMETERED,radios={wifi=true,bluetooth=true,nfc=true,gps=true}"
          # Device configuration
          if [[ -f "data_arn.txt" ]]; then
            DEVICE_CONFIG="${DEVICE_CONFIG},extraDataPackageArn=$(cat data_arn.txt)"
          fi
          # Execution configuration
          EXEC_CONFIG="jobTimeoutMinutes=${TIMEOUT},videoCapture=true"

and using it like:

# aws devicefarm schedule-run \
          #  --project-arn "${PROJECT}" \
          #  --device-pool-arn "${DEVICE_POOL}" \
          #  --name "${NAME}" \
          #  --test "${TEST}" \
          #  --configuration "${DEVICE_CONFIG}" \
          #  --execution-configuration "${EXEC_CONFIG}" \
          #  --app-arn "$(cat app_arn.txt)")

I can see these parts were left off the action inputs.

If I can i'll make a PR.

jamie-wearsafe avatar Feb 06 '23 20:02 jamie-wearsafe