|Summary:||ASTERISK-20502: Definition of new test-condition called sip-channels, which checks for the output of "sip show channels"|
|Reporter:||NITESH BANSAL (nbansal)||Labels:|
|Date Opened:||2012-10-02 08:14:07||Date Closed:||2013-07-13 15:45:36|
|Environment:||Debian Squeeze x86_64||Attachments:||( 0) SipChannelTestCondition.py|
( 1) test-config.yaml
I have got the "sip show channels" working for me in the testsuite. I have defined a new testcondition sip-channels which checks for the output of "sip show channels" at the end of a test case and validates the output against the allowedchannels parameter defined in the test-config.yaml file.
Please find the global test-config.yaml defining this condition and python class
implementing the behaviour for this condition. I would request you to have a look at the code and if it seems fine then i assume there is no harm in merging this code in testsuite trunk.
|Comments:||By: NITESH BANSAL (nbansal) 2012-10-02 08:15:38.681-0500|
Attached is the definition of sip-channels in the global test-config.yaml
And python code implementing it.
By: NITESH BANSAL (nbansal) 2012-10-02 08:17:25.551-0500
I have created this JIRA issue in continuation to the discussion on testconditions on asterisk-dev mailing list with the subject header "Question on the testconditions in the asterisk testsuite".
By: Matt Jordan (mjordan) 2013-07-13 15:46:45.090-0500
Commit hooks must have been on vacation.
r3736 | mjordan | 2013-05-01 11:13:04 -0500 (Wed, 01 May 2013) | 13 lines
Add sip-channels test condition
This patch adds the ability to check for the presence of SIP channels prior to
and after test execution using the pre-/post-condition checking API. If a
SIP channel is detected, the test is failed.
(closes issue ASTERISK-20502)
Reported by: Nitesh Bansal
SipChannelTestCondition.py uploaded by Nitesh Bansal (License 6418)
test-config.yaml uploaded by Nitesh Bansal (License 6418)