-
Notifications
You must be signed in to change notification settings - Fork 40
SIP User Documentation Chapter 2
PREVIOUS CHAPTER | TOC | NEXT CHAPTER
The following SIP specific elements are available in the GUI when the SIP plug-in is installed:
- SIP node: A Config Element that creates and configures the connection to the SIP network.
- SIPCommandSampler: A Sampler that sends SIP messages through a SIP node and checks whether a specific SIP message was received by a SIP node. The following SIP message-related actions are possible
- Send a request
- Check that a response was received
- Check that a request was received
- Send a response
SIP node is a Config Element that can be added to a Test Plan.
Config Element is a Apache JMeter configuration element that is started at the beginning of test execution. Configuration elements store the context that is valid throughout the test execution and this context is shared by all the other Apache JMeter elements.
See Adding and configuring SIP nodes page.
Add the SIP node element to your Test Plan as you add other Config Elements in Apache JMeter. Define the SIP Node name, SIP Node context parameters, and SIP Stack endpoint parameters.
Thread Group is a Apache JMeter element that can be used to start several test threads with a loop count of one or more for each thread.
Threads perform actions in parallel, completely independently from each other. The only relationship between the threads within a Thread Group is that a common program is defined for them, but potentially with different parameters.
SIPCommandSampler is a sampler that can be added to Thread Groups. Sampler results can be displayed through Apache JMeter native elements, for example, through Listener elements.
A thread contains samplers that are executed in sequence. Samplers must be added to the Thread Groups of a Test Plan to have actions that have a result. The scenario continues to run until there is an action to do. This is determined by Thread Group settings and by sampler settings.
Each sampler returns a result structure that can be used in two ways:
- It can be analyzed and displayed through a Apache JMeter native Listener element, for example, the View Results Tree element.
- It can be used to extract information after the sampler is executed if a Apache JMeter native Post Processor element or a Apache JMeter native Assertion element is added to the sampler. For example, if a Response Assertion element is added by right-clicking the sampler and selecting Add → Assertions → Response Assertion.
If the result structure returned by a sampler is related to the sending or reception of a SIP request or response, the SIP message content is included as a string in the response message.
See Adding and configuring SIP samplers page.
Add SIPCommandSampler elements to your Test Plan as you add other sampler elements in Apache JMeter. After defining the sampler name, SIP node name, and command direction, specify a request method or response code and the SIP message parameters that you want to send or check (depending on command direction).
See Result structure produced by SIP specific samplers page.
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.
- http://jmeter.apache.org/usermanual/component_reference.html#samplers
- http://jmeter.apache.org/usermanual/component_reference.html#View_Results_Tree
- http://jmeter.apache.org/usermanual/component_reference.html#Response_Assertion
Logic controller, for example, Transaction Controller, [Simple Controller]j[SC], and Once Only Controller are native Apache JMeter elements to group samplers within a Thread Group.
It is recommended to use Logic controller with Apache JMeter for two reasons:
- The Test Plan tree structure can provide a clear overview of the test cases and other test elements that are included in the Test Plan. Use the
Name
andComments
fields of the Logic controller to define the purpose of each sampler group. - It is easy to save and reuse a group of samplers.
- To reuse a group of samplers in another Test Plan, right-click a Logic controller in the Test Plan tree structure, and select
Save Selection As...
. - To reuse a group of samplers within the same Test Plan, select a Logic controller in the Test Plan tree structure, press
CTRL-C
to copy, then pressCTRL-V
to paste it somewhere else in the tree structure.
- To reuse a group of samplers in another Test Plan, right-click a Logic controller in the Test Plan tree structure, and select
If you define a Loop Count of 2
or more in a Thread Group, but you want to execute some samplers only once per thread, use a Once Only Controller instead of a Simple Controller.
- http://jmeter.apache.org/usermanual/component_reference.html#Transaction_Controller
- http://jmeter.apache.org/usermanual/component_reference.html#Simple_Controller
- http://jmeter.apache.org/usermanual/component_reference.html#Once_Only_Controller
Timers, like Constant Timer, are native Apache JMeter elements that are used to delay the time when a specific sampler is processed. Timers are processed before the sampler they are added to.
To simulate both the caller and the callee to test a third system, you can use Constant Timer elements to synchronize the two scenarios. However, it is important to consider the retransmission mechanism defined in the SIP protocol when configuring the timers. If you add timers to samplers that send 100
or 180
SIP response messages at the callee side, it is recommended to specify a small value for the timeout, for example, a thread delay of 100
milliseconds, so that the test scenario is completed fast enough (without generating retransmission of the INVITE
message on the other side).
The following specific parameters are also related to the timing of scenarios:
- SIP message reception timeout configured at SIP node level
- reception timeout configured at SIPCommandSampler level
See Adding and configuring SIP nodes page.
Add the SIP node element to your Test Plan as you add other Config Elements in Apache JMeter. Define the SIP Node name, SIP Node context parameters, and SIP Stack endpoint parameters.
See Adding and configuring SIP samplers page.
Add SIPCommandSampler elements to your Test Plan as you add other sampler elements in Apache JMeter. After defining the sampler name, SIP node name, and command direction, specify a request method or response code and the SIP message parameters that you want to send or check (depending on command direction).
© 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