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);
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);
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);
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);
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()
{