From 21080226ef22f2b7d65b68cef1b6da1650c7f387 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 19 Jul 2011 17:20:55 +0300 Subject: [PATCH] Fix voice call tests Unfortunately they are no longer automated --- tests/test_ofonomultipartycall.cpp | 6 ++++-- tests/test_ofonovoicecall.cpp | 3 ++- tests/test_ofonovoicecallmanager.cpp | 18 +++--------------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/tests/test_ofonomultipartycall.cpp b/tests/test_ofonomultipartycall.cpp index 0b1858a..a466b07 100644 --- a/tests/test_ofonomultipartycall.cpp +++ b/tests/test_ofonomultipartycall.cpp @@ -99,7 +99,8 @@ private slots: QSignalSpy c1st (c1, SIGNAL(startTimeChanged(QString))); QSignalSpy c1ic (c1, SIGNAL(iconChanged(quint8))); - QTest::qWait(3000); + qDebug() << "Please find a call in 'Dialing' state in phonesim window and press 'Active' button"; + QTest::qWait(15000); // - new call should have a state change, and be in "active" state QVERIFY(c1state.count()>0); QVERIFY(c1st.count()>0); @@ -222,7 +223,8 @@ private slots: QSignalSpy c3st (c3, SIGNAL(startTimeChanged(QString))); QSignalSpy c3ic (c3, SIGNAL(iconChanged(quint8))); - QTest::qWait(3000); + qDebug() << "Please find a call in 'Dialing' state in phonesim window and press 'Active' button"; + QTest::qWait(15000); // - 3rd call should have a state change, and be in "active" state QVERIFY(c3state.count()>0); QVERIFY(c3st.count()>0); diff --git a/tests/test_ofonovoicecall.cpp b/tests/test_ofonovoicecall.cpp index 5a07bb8..8683434 100644 --- a/tests/test_ofonovoicecall.cpp +++ b/tests/test_ofonovoicecall.cpp @@ -76,7 +76,8 @@ private slots: QSignalSpy st (call, SIGNAL(startTimeChanged(QString))); QSignalSpy ic (call, SIGNAL(iconChanged(quint8))); - QTest::qWait(10000); + qDebug() << "Please find a call in 'Dialing' state in phonesim window and press 'Active' button"; + QTest::qWait(15000); QVERIFY(state.count()>0); QVERIFY(st.count()>0); diff --git a/tests/test_ofonovoicecallmanager.cpp b/tests/test_ofonovoicecallmanager.cpp index 5c84577..975cecf 100644 --- a/tests/test_ofonovoicecallmanager.cpp +++ b/tests/test_ofonovoicecallmanager.cpp @@ -72,14 +72,15 @@ private slots: QVERIFY(emergencyNumbers.takeFirst().at(0).toStringList().count() > 0); //Dial testing m->dial("123",""); - QTest::qWait(5000); + qDebug() << "Please find a call in 'Dialing' state in phonesim window and press 'Active' button"; + QTest::qWait(15000); QCOMPARE(dialreg.count(), 1); QCOMPARE(dialreg.takeFirst().at(0).toBool(),true); QCOMPARE(dspy.count(), 1); //Tones testing QTest::qWait(5000); m->sendTones("1234"); - QTest::qWait(45000); + QTest::qWait(5000); QCOMPARE(tonereg.count(), 1); QCOMPARE(tonereg.takeFirst().at(0).toBool(),true); QTest::qWait(5000); @@ -120,19 +121,6 @@ private slots: QCOMPARE(hspy.count(), 1); } - void testOfonoVoiceCallmanagerStep3() - { - // MO call and MT hangup - QSignalSpy dspy(m, SIGNAL(callAdded(QString))); - QSignalSpy hspy(m, SIGNAL(callRemoved(QString))); - - QTest::qWait(5000); - m->dial("0512305",""); - QTest::qWait(10000); - QCOMPARE(dspy.count(), 1); - QTest::qWait(10000); - QCOMPARE(hspy.count(), 1); - } void cleanupTestCase() { -- 2.7.4