This is an integration of the D4L SDK for testing purposes.
A suite of UI tests to identify breaking changes and regressions by SDK version changes.
Before you start you need to add d4l-client-config-android.json
and d4l-test-config-android.json
files in the project root folder and add following content.
d4l-client-config-android.json
needs to contain a config for every environment LOCAL, DEVELOPMENT, STAGING, SANDBOX, PRODUCTION.
Note
|
The CI expects this configuration from environment variables stored in GitHub secrets: D4L_CLIENT_CONFIG_ANDROID and D4L_CLIENT_CONFIG_IOS
|
// d4l-client-config-android.json
{
"configs": {
"LOCAL": {
"id": "{CLIENT_ID}",
"secret": "{CLIENT_SECRET}",
"redirectScheme": "{CLIENT_REDIRECT_SCHEME}"
},
"DEVELOPMENT": {
"id": "{CLIENT_ID}",
"secret": "{CLIENT_SECRET}",
"redirectScheme": "{CLIENT_REDIRECT_SCHEME}"
}
}
}
// d4l-test-config-android.json
{
"user": {
"email": "{USER_EMAIL}",
"password": "{USER_PASSWORD}",
"phoneCountryCode": "{USER_PHONE_COUNTRY_CODE}",
"phoneLocalNumber": "{USER_PHONE_LOCAL_NUMBER}"
},
"sinch": {
"servicePlanId": "{SERVICE_PLAN_ID}",
"authToken": "{AUTH_TOKEN}"
}
}
Run gradle wrapper task for connected tests:
./gradlew provideTestConfig
./gradlew connectedAndroidTest