some fixes

This commit is contained in:
Quentin Monnier 2023-02-01 11:10:45 +00:00 committed by Sylvain Berfini
parent e6a220c5af
commit 75982cedf0
6 changed files with 2 additions and 11 deletions

View file

@ -185,7 +185,7 @@ If you don't have Android Studio, you can run :
./gradlew connectedAndroidTest
Android Instrumented UI tests wiki : https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/
Android Instrumented UI tests wiki : https://wiki.linphone.org/xwiki/bin/view/Engineering/Android%20UI%20Tests%20with%20Android%20Studio/
# CONTRIBUTIONS

View file

@ -263,7 +263,6 @@ dependencies {
debugImplementation 'androidx.test.ext:junit-ktx:1.1.4'
debugImplementation 'androidx.test.espresso:espresso-core:3.4.0'
debugImplementation 'androidx.test.espresso:espresso-idling-resource:3.4.0'
debugImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
}

View file

@ -1,7 +1,6 @@
package org.linphone.call
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.LargeTest
import org.junit.After
import org.junit.Before
import org.junit.Rule
@ -13,7 +12,6 @@ import org.linphone.methods.UITestsScreenshots.takeScreenshot
import org.linphone.utils.AppUtils.Companion.getString
@RunWith(AndroidJUnit4::class)
@LargeTest
class IncomingCallPushUITests {
val methods = CallViewUITestsMethods

View file

@ -6,7 +6,6 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.LargeTest
import java.util.*
import org.junit.After
import org.junit.Before
@ -17,10 +16,8 @@ import org.linphone.R
import org.linphone.methods.*
import org.linphone.methods.UITestsScreenshots.takeScreenshot
import org.linphone.methods.UITestsUtils.checkWithTimeout
import org.linphone.utils.AppUtils.Companion.getString
@RunWith(AndroidJUnit4::class)
@LargeTest
class IncomingCallUITests {
val methods = CallViewUITestsMethods

View file

@ -5,7 +5,6 @@ import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.doesNotExist
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.LargeTest
import org.junit.After
import org.junit.Before
import org.junit.Rule
@ -17,7 +16,6 @@ import org.linphone.methods.UITestsScreenshots.takeScreenshot
import org.linphone.methods.UITestsUtils.checkWithTimeout
@RunWith(AndroidJUnit4::class)
@LargeTest
class OutgoingCallUITests {
val methods = CallViewUITestsMethods

View file

@ -61,7 +61,7 @@ class UITestsCoreManager {
accountCreator.domain = "sip.example.org"
accountCreator.email = accountCreator.username + "@" + accountCreator.domain
accountCreator.transport = TransportType.Tcp
accountCreator.createAccount()
assert(accountCreator.createAccount() == AccountCreator.Status.RequestOk) { "[UITests] Unable to send a request to create an account on server" }
waitForAccountCreationStatus(AccountCreator.Status.AccountCreated, 5.0)
val authInfo = factory.createAuthInfo(accountCreator.username!!, "", accountCreator.password, "", "", accountCreator.domain)
@ -92,7 +92,6 @@ class UITestsCoreManager {
) {
super.onCreateAccount(creator, status, response)
if (wStatus == status) {
Log.d("dsqdfs", status.ordinal)
result = true
wait.cancel()
}