Fix voice call tests
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 19 Jul 2011 14:20:55 +0000 (17:20 +0300)
committerAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 19 Jul 2011 14:20:55 +0000 (17:20 +0300)
Unfortunately they are no longer automated

tests/test_ofonomultipartycall.cpp
tests/test_ofonovoicecall.cpp
tests/test_ofonovoicecallmanager.cpp

index 0b1858a..a466b07 100644 (file)
@@ -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);
index 5a07bb8..8683434 100644 (file)
@@ -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);
index 5c84577..975cecf 100644 (file)
@@ -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()
     {