[Home]

Summary:ASTERISK-23198: testsuite: Write a test for marked user/unmarked user interaction
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-01-28 11:28:38.000-0600Date Closed:2014-02-20 21:48:05.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_confbridge Tests/testsuite
Versions:11.7.0 12.0.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:A number of tests still need to be written that exercise the state machine in ConfBridge for marked/unmarked/waitmarked user interaction. This test verifies one set of those user interactions: marked users and unmarked users.

The test should be named {{confbridge_marked_unmarked}}, and should be based on the {{AppTest}} pluggable module approach (in the same manner as {{confbridge_marked}} or {{confbridge_waitmarked_single}}). The test should use the following user profiles:

{noformat}
[marked_profile]
type = user
marked = yes

[normal_profile]
type = user
{noformat}

The test should verify the following scenarios:

h1. Scenario One

# The marked user joins the conference. The conference transitions from EMPTY to SINGLE_MARKED
# The normal user joins the conference. The conference transitions from SINGLE_MARKED to MULTI_MARKED
# The normal user leaves the conference. The conference transitions from MULTI_MARKED to SINGLE_MARKED
# The marked user leaves the conference. The conference transitions from SINGLE_MARKED to EMPTY

The scenario should also verify:
# For the Marked user:
## That no MoH is ever played to the Marked user, even when they are the only participant in the conference
## That the confbridge-join sound is played to the Marked user
## That the conf-placeintoconf sound is played to the Marked user
## That the ConfbridgeJoin event is received for the user
## That the ConfbridgeLeave event is received for the user
# For the Normal user:
## That no MoH is played for the user, as they are never in the conference by themselves
## That the confbridge-join sound is played to the Normal user
## That the conf-placeintoconf sound is played to the Normal user
## That the ConfbridgeJoin event is received for the user
## That the ConfbridgeLeave event is received for the user

h1. Scenario Two

# The marked user joins the conference. The conference transitions from EMPTY to SINGLE_MARKED
# The normal user joins the conference. The conference transitions from SINGLE_MARKED to MULTI_MARKED
# The marked user leaves the conference. The conference transitions from MULTI_MARKED to SINGLE
# The normal user leaves the conference. The conference transitions from SINGLE to EMPTY

The scenario should also verify:
# For the Marked user:
## That no MoH is ever played to the Marked user, even when they are the only participant in the conference
## That the confbridge-join sound is played to the Marked user
## That the conf-placeintoconf sound is played to the Marked user
## That the ConfbridgeJoin event is received for the user
## That the ConfbridgeLeave event is received for the user
# For the Normal user:
## That MoH is played for the user, as they are the only person in the conference when the marked user leaves
## That the confbridge-join sound is played to the Normal user
## That the conf-placeintoconf sound is played to the Normal user
## That the ConfbridgeJoin event is received for the user
## That the ConfbridgeLeave event is received for the user

h1. Scenario Three

# The normal user joins the conference. The conference transitions from EMPTY to SINGLE
# The marked user joins the conference. The conference transitions from SINGLE to MULTI_MARKED
# The marked user leaves the conference. The conference transitions from MULTI_MARKED to SINGLE
# The normal user leaves the conference. The conference transitions from SINGLE to EMPTY

The scenario should also verify:
# For the Marked user:
## That no MoH is ever played to the Marked user, even when they are the only participant in the conference
## That the confbridge-join sound is played to the Marked user
## That the conf-placeintoconf sound is played to the Marked user
## That the ConfbridgeJoin event is received for the user
## That the ConfbridgeLeave event is received for the user
# For the Normal user:
## That two MoH start events are received and that MoH is played for the user, as they are the only person in the conference before the marked user joins and when the marked user leaves
## That the confbridge-join sound is played to the Normal user
## That the conf-placeintoconf sound is played to the Normal user
## That the ConfbridgeJoin event is received for the user
## That the ConfbridgeLeave event is received for the user
Comments: