-
Notifications
You must be signed in to change notification settings - Fork 40
SIP User Documentation Chapter 7
PREVIOUS CHAPTER | TOC | NEXT CHAPTER
You can check the XML result structure of SIP specific samplers both in GUI and command line mode. You can change the format to CSV but note that the CSV output cannot be opened in GUI mode.
See Samplers, Listeners and Assertions page.
SIPCommandSampler is a sampler that can be added to Thread Groups. Sampler results can be displayed through JMeter native elements, for example, through Listener elements.
The results structure of a sampler depends on sampler configuration.
- Start Apache JMeter in GUI mode.
- Add and configure a SIP node element and a corresponding Thread Group with a SIPCommandSampler in your Test Plan.
- Add a Listener element to your Test Plan.
- Start the scenario.
- Click on the Listener element and check the result.
If you added the View Results Tree listener element to your Test Plan, you can display the following details for SIPCommandSampler elements: – Result tree structure: If the sampler is executed without an error, a green icon is shown in the result tree structure. The icon turns red if any of the following conditions apply: – The sampler itself fails. – A Response assertion that is added to the sampler returns an error. – In the Sampler result tab of the View Results Tree element, the Response message is listed with the result of the sampler. – If it is executed without an error, the complete text of the sent or received SIP message is included in the Response message field, as shown in the following example:
It is the response message of a sampler that is configured to send a200 OK
message. For samplers that are configured to check the reception of a message, the Success string is added to indicate that the messages was received.
Response message: SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.228.130:6688;branch=z9hG4bK-393831-ef69cd6bd13ea89cc0c334f919f529aa
CSeq: 1 INVITE
Call-ID: mylovelycallidvalue5
From: "TheBguy" <sip:[email protected]>;tag=9876
To: "TheAguy" <sip:[email protected]>;tag=1234
Content-Type: application/sdp
Contact: "The A guy" <sip:[email protected]:6677>
– If the sampler fails, the Failure string appears in the Response message field followed by the reason for the error, as shown in the following example:
Response message: Failure. differences :
CSeq check failed: CSeq:3 BYE:CSeq: 2UPDATE.
It is the response message of a sampler that is configured to check the reception of a SIP message. The first value (3 BYE
) is the expected value, the second value (2 UPDATE
) is the received value.
NOTE: If the issue is caused by multiple headers, all the differences are listed.
- Start JMeter in command line mode with the following command
-l
option:
$ jmeter -l {jtl_file}
As <{jtl_file}>
, for example, result.jtl
.
The result of the scenario execution will be included in this file.
- Add and configure a SIP node element and a corresponding Thread Group with a SIPCommandSampler in your Test Plan and start the scenario.
- Open the output file GUI in mode.
- Start Apache JMeter in GUI mode and open the Test Plan that the result XML file is associated to.
NOTE: Any Test Plan can be used for this purpose but it is recommended to open the associated Test Plan because it helps to interpret the results.
- Add the View Results Tree Listener to the Test Plan and click it.
- Click Browse and browse for the result file that was saved in XML output format.
- Select the result file.
The result tree structure is displayed in the GUI.
© Copyright 2019-2020 Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
- Chapter 1: Introduction
- Chapter 2: SIP JMeter elements
- Chapter 3: Interaction between SIP nodes, samplers and peer nodes
- Chapter 4: Dialog management and transaction identification
- Chapter 5: Adding and configuring SIP nodes
- Chapter 6: Adding and configuring SIP samplers
- Chapter 7: Result structure produced by SIP specific samplers
- Appendix A: Logs and Traces
- Appendix B: Statistics