Skip to content
/ .. / .. /
Voice Call Steps - Examples





Voice Call Test Case Examples

Using a DTMF Menu with an Audio Recording

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Feature: DTMF
  Scenario: DTMFVoucherRecharging
    Given an Android phone as A
      And A disables data connections
      And A sends the following ussd "*100#"
      And within 20 seconds, A receives an ussd response as RESP1
      And extract data1 with ussdFirstAccEnq from RESP1.text
    Given a Voucher consumable as voucher where value == "2"
    When A dials the number "123456"
      Then an audio recording is started
      And within 10 seconds, A connects
      And A switches loudspeaker on
      And after 35 seconds, A sends "1" as dtmf
      And after 15 seconds, A sends "3" as dtmf
      And after 7 seconds, A sends voucher.number + hash as dtmf
      And after 10 seconds, A ends the call
      Then an audio recording is stopped
      And within 15 seconds, A disconnects
      And within 30 seconds, A receives an ussd response as successfulRecharge
    Then verify successfulRecharge.text == "Betrag erfolgreich aufgebucht."
      And A sends the following ussd "*100#"
      And within 20 seconds, A receives an ussd response as RESP2
      And extract data2 with ussdFirstAccEnq from RESP2.text
    Then verify data1.bal + 2 == data2.bal

Call Forwarding Unconditional

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Feature: Voice call CFU

  Scenario: CallForwardingUnconditional

    Given an Android phone as B
      And an Android phone as A
      And an Android phone as C

    When after 5 seconds, B sends the following ussd "**21*" + C.number + "#"
      And within 10 seconds, B receives an ussd response as setCFresp
      And deferred, A sends the following ussd "##21#"
      And deferred, within 10 seconds, A receives an ussd response as removeResp1
      And after 8 seconds, A dials the number B.number
      And within 30 seconds, C detects an incoming call from A.number
      And after 4 seconds, C answers the incoming call
      And within 8 seconds, A connects
      And after 16 seconds, A ends the call and, within 10 seconds, he
      and C disconnect

Call Forwarding Busy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Feature: Voice call CFb

  Scenario: CallForwardingBusy

    Given an Android phone as B
      And an Android phone as A
      And an Android phone as C
      And an Android phone as D

    When after 5 seconds, B sends the following ussd "**67*" + C.number + "#"
      And within 10 seconds, B receives an ussd response as setCFresp
      And verify
      setCFresp.text == "Rufweiterleitung\nRegistrierung war erfolgreich."
      And deferred, B sends the following ussd "##67#"
      And deferred, within 10 seconds, B receives an ussd response as removeResp1
      And deferred, verify removeResp.text.startsWith("Rufweiterleitung")

    When after 3 seconds, A dials the number B.number
      And within 30 seconds, B detects an incoming call from A.number
      And after 4 seconds, B answers the incoming call
      And within 10 seconds, A connects
      And D dials the number B.number
      And within 30 seconds, C detects an incoming call from D.number
      And after 5 seconds, C answers the incoming call
      And within 15 seconds, D connects
      And after 16 seconds, A ends the call and, within 15 seconds, he
      and B disconnect
      And after 5 seconds, D ends the call and, within 15 seconds, he
      and C disconnect

     Then verify !A.isConnected()
     Then verify !B.isConnected()

Call Forwarding No Answer

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
Feature: Voice call CFnA

  Scenario: CallForwardingNoAnswer

    Given an Android phone as B
      And an Android phone as A
      And an Android phone as C

    When B sends the following ussd "**61*" + C.number + "#"
      And within 10 seconds, B receives an ussd response as CFnAresp
      And deferred, B sends the following ussd "##61#"
      And deferred, within 10 seconds, B receives an ussd response as removeResp1
      And after 8 seconds, A dials the number B.number
      And within 25 seconds, B detects an incoming call from A.number
      And within 90 seconds, C detects an incoming call from A.number
      And after 4 seconds, C answers the incoming call
      And within 8 seconds, A connects
      And after 16 seconds, A ends the call and, within 15 seconds, he
      and C disconnect

Call Forwarding No Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Feature: Voice call CFnR

  Scenario: CallForwardingNoResponse

    Given an Android phone as B
      And an Android phone as A
      And an Android phone as C

    When B sends the following ussd "**62*" + C.number + "#"
      And within 10 seconds, B receives an ussd response as CFnRresp
      And deferred, B sends the following ussd "##62#"

    When after 3 seconds, A dials the number B.number
      And within 90 seconds, C detects an incoming call from A.number
      And after 3 seconds, C answers the incoming call
      And after 16 seconds, A ends the call and, within 10 seconds, he
      and C disconnect

Call with Overdialing

1
2
3
4
5
6
7
8
9
Feature: Voice call overdial

  Scenario: Overdial

    Given an Android phone as A
      And an Android phone as B

     When A dials the number B.number + "000000000"
       And within 30 seconds, B detects no incoming calls