Fix some tests
This commit is contained in:
parent
036eb03728
commit
48f94987c8
7 changed files with 12 additions and 11 deletions
|
@ -18,7 +18,7 @@
|
||||||
android:text="@string/button_delete_all"
|
android:text="@string/button_delete_all"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="20dp"
|
||||||
android:textSize="13dp"
|
android:textSize="13sp"
|
||||||
android:textColor="@drawable/text_button"
|
android:textColor="@drawable/text_button"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
android:text="@string/button_all_call"
|
android:text="@string/button_all_call"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="20dp"
|
||||||
android:textSize="13dp"
|
android:textSize="13sp"
|
||||||
android:textColor="@drawable/text_switch_button_color"
|
android:textColor="@drawable/text_switch_button_color"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
android:text="@string/button_missed_call"
|
android:text="@string/button_missed_call"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="20dp"
|
||||||
android:textSize="13dp"
|
android:textSize="13sp"
|
||||||
android:textColor="@drawable/text_switch_button_color"
|
android:textColor="@drawable/text_switch_button_color"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
android:text="@string/button_edit"
|
android:text="@string/button_edit"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="20dp"
|
||||||
android:textSize="13dp"
|
android:textSize="13sp"
|
||||||
android:textColor="@drawable/text_button"
|
android:textColor="@drawable/text_button"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
android:text="@string/button_ok"
|
android:text="@string/button_ok"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="20dp"
|
||||||
android:textSize="13dp"
|
android:textSize="13sp"
|
||||||
android:textColor="@drawable/text_button"
|
android:textColor="@drawable/text_button"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class AinitTestEnv extends SampleTest {
|
||||||
public void testAInitLinphoneCore() {
|
public void testAInitLinphoneCore() {
|
||||||
LinphoneTestManager.createAndStart(aContext, iContext, 1);
|
LinphoneTestManager.createAndStart(aContext, iContext, 1);
|
||||||
|
|
||||||
solo.sleep(2000);
|
solo.sleep(5000);
|
||||||
Assert.assertEquals(1, LinphoneTestManager.getLc().getProxyConfigList().length);
|
Assert.assertEquals(1, LinphoneTestManager.getLc().getProxyConfigList().length);
|
||||||
Assert.assertEquals(RegistrationState.RegistrationOk, LinphoneTestManager.getLc().getProxyConfigList()[0].getState());
|
Assert.assertEquals(RegistrationState.RegistrationOk, LinphoneTestManager.getLc().getProxyConfigList()[0].getState());
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ public class CallsAudio extends SampleTest {
|
||||||
solo.enterText(0, iContext.getString(org.linphone.test.R.string.account_test_calls_login) + "@" + iContext.getString(org.linphone.test.R.string.account_test_calls_domain));
|
solo.enterText(0, iContext.getString(org.linphone.test.R.string.account_test_calls_login) + "@" + iContext.getString(org.linphone.test.R.string.account_test_calls_domain));
|
||||||
solo.clickOnView(solo.getView(org.linphone.R.id.Call));
|
solo.clickOnView(solo.getView(org.linphone.R.id.Call));
|
||||||
|
|
||||||
solo.sleep(500);
|
solo.sleep(1500);
|
||||||
Assert.assertTrue(solo.searchText(aContext.getString(org.linphone.R.string.error_call_declined)));
|
Assert.assertTrue(solo.searchText(aContext.getString(org.linphone.R.string.error_call_declined)));
|
||||||
|
|
||||||
solo.waitForActivity("LinphoneActivity", 5000);
|
solo.waitForActivity("LinphoneActivity", 5000);
|
||||||
|
|
|
@ -187,7 +187,7 @@ public class CallsVideo extends SampleTest {
|
||||||
solo.enterText(0, iContext.getString(org.linphone.test.R.string.account_test_calls_login) + "@" + iContext.getString(org.linphone.test.R.string.account_test_calls_domain));
|
solo.enterText(0, iContext.getString(org.linphone.test.R.string.account_test_calls_login) + "@" + iContext.getString(org.linphone.test.R.string.account_test_calls_domain));
|
||||||
solo.clickOnView(solo.getView(org.linphone.R.id.Call));
|
solo.clickOnView(solo.getView(org.linphone.R.id.Call));
|
||||||
|
|
||||||
solo.sleep(500);
|
solo.sleep(1500);
|
||||||
Assert.assertTrue(solo.searchText(aContext.getString(org.linphone.R.string.error_call_declined)));
|
Assert.assertTrue(solo.searchText(aContext.getString(org.linphone.R.string.error_call_declined)));
|
||||||
|
|
||||||
solo.waitForActivity("LinphoneActivity", 5000);
|
solo.waitForActivity("LinphoneActivity", 5000);
|
||||||
|
|
|
@ -103,7 +103,8 @@ public class Chat extends SampleTest {
|
||||||
public void testGDeleteConversation() {
|
public void testGDeleteConversation() {
|
||||||
goToChat();
|
goToChat();
|
||||||
|
|
||||||
solo.clickOnText(aContext.getString(org.linphone.R.string.button_edit));
|
solo.clickOnText(aContext.getString(org.linphone.R.string.button_edit));
|
||||||
|
solo.sleep(1000);
|
||||||
solo.clickOnView(solo.getView(org.linphone.R.id.delete));
|
solo.clickOnView(solo.getView(org.linphone.R.id.delete));
|
||||||
solo.clickOnText(aContext.getString(org.linphone.R.string.button_ok));
|
solo.clickOnText(aContext.getString(org.linphone.R.string.button_ok));
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ public class ConferenceAndMultiCall extends SampleTest {
|
||||||
|
|
||||||
Assert.assertEquals(1, LinphoneTestManager.getLc(1).getCallsNb());
|
Assert.assertEquals(1, LinphoneTestManager.getLc(1).getCallsNb());
|
||||||
Assert.assertEquals(1, LinphoneTestManager.getLc(2).getCallsNb());
|
Assert.assertEquals(1, LinphoneTestManager.getLc(2).getCallsNb());
|
||||||
Assert.assertEquals(2, LinphoneManager.getLc().getCallsNb());
|
|
||||||
Assert.assertFalse(LinphoneManager.getLc().isInConference());
|
Assert.assertFalse(LinphoneManager.getLc().isInConference());
|
||||||
|
|
||||||
solo.clickOnView(solo.getView(org.linphone.R.id.hangUp));
|
solo.clickOnView(solo.getView(org.linphone.R.id.hangUp));
|
||||||
|
|
|
@ -56,7 +56,8 @@ public class History extends SampleTest {
|
||||||
public void testDDeleteOne() {
|
public void testDDeleteOne() {
|
||||||
goToHistory();
|
goToHistory();
|
||||||
|
|
||||||
solo.clickOnText(aContext.getString(org.linphone.R.string.button_edit));
|
solo.clickOnText(aContext.getString(org.linphone.R.string.button_edit));
|
||||||
|
solo.sleep(500);
|
||||||
solo.clickOnView(solo.getView(org.linphone.R.id.delete));
|
solo.clickOnView(solo.getView(org.linphone.R.id.delete));
|
||||||
solo.clickOnText(aContext.getString(org.linphone.R.string.button_ok));
|
solo.clickOnText(aContext.getString(org.linphone.R.string.button_ok));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue