summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2011-07-19 17:20:55 +0300
committerAlexander Kanavin <alex.kanavin@gmail.com>2011-07-19 17:20:55 +0300
commit21080226ef22f2b7d65b68cef1b6da1650c7f387 (patch)
tree743a939d42a980af5ed53bb17b621acc2ddc0903
parenta64b9ee972e4750474714b41e3f061a657250051 (diff)
downloadofono-qt-21080226ef22f2b7d65b68cef1b6da1650c7f387.tar.gz
ofono-qt-21080226ef22f2b7d65b68cef1b6da1650c7f387.tar.bz2
ofono-qt-21080226ef22f2b7d65b68cef1b6da1650c7f387.zip
Fix voice call tests
Unfortunately they are no longer automated
-rw-r--r--tests/test_ofonomultipartycall.cpp6
-rw-r--r--tests/test_ofonovoicecall.cpp3
-rw-r--r--tests/test_ofonovoicecallmanager.cpp18
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()
{