SIPp web frontend(1)

来源:互联网 发布:金融网络销售违法吗 编辑:程序博客网 时间:2024/06/05 21:16

欢迎大家转载,为保留作者成果,转载请注明出处,http://blog.csdn.net/netluoriver,有些文件在资源中也可以下载!如果你没有积分,可以联系我索要!

1Description(描述

With SIPp web frontend you can(通过SIPp web 前端你能)

·upload XML templates (SIPp scenarios) and CSV injection files(上传XML模板SIPp场景和CSV注入字段)

·create and modify test processes using these files(用字段创建并修改测试流程

·manage test versions(管理测试版本)

·run created test processes运行创建的测试流程

·display realtime feedback during test runs(在测试过程中实时显示反馈)

·store created test information in a database(存储创建测试信息至数据库中)

2Terms and definitions(术语和定义

·Scenario(场景)
A user can upload XML files containing SIP call flows, named scenario files. Optionally, one can upload a CSV field injection file. These files are stored along with a scenario name and a description. There are also some standard scenarios, that cannot be modified (from the command line parameter -sn, e.g., uac, uas, regexp, ...)

一个用户可以上传包含SIP呼叫流XML文件,叫做场景文件。可地,一能上传一个CSV的注入文件。存储的带场景名称和描述文件。也有一些标准场景但是不能修改(命令行参数 –sn生成,例如生成uac/uas/regexp/….默认场景)

·Call(呼叫
A call consists of all information necessary to run one instance of SIPp. Thus a SIPp executable, a scenario, and a collection of parameters (e.g., destination ip-address).

呼叫的所有必要的信息来保证运行一个SIPp实例。这样就可以使SIPp可执行、运行一个场景、测试参数的采集例如:目的IP地址

·Call sequence(呼叫序列)
In some test scenarios it is not enough to run only one call. For example in a first call SIP user agents get registered at a SIP proxy, in a second call those user agents communicate with a server, and in a last call the registrations are removed again. Thus a call sequence is an ordered list of calls, that can be executed automatically one by one.

在一些测试场景中,只有一个呼叫是不够的。例如,在一SIP代理中第一呼叫注册的代理用户,第二次呼叫那用户代理服务器进行通信,在最后一次呼叫时注册再次被移除因此呼叫序列是呼叫的有序列表,这个就可以自动地一个接着一个执行

·Call sequence pair / call parties(呼叫序列对/呼叫对)
SIPp webfrontend has the capability to execute two calls in a test simultaneously. This is useful for example if you want to simulate a server and a client communicating with each other. In this case two call sequences can be defined each in a separate party (
A party and B party).

SIPp webfrontend在一测试中同时执行两个呼叫的能力。如果你想模拟一个服务端和一个客户端相互是非常有用。在种情况下两个呼叫序列可以分别定义A对和B对)

·Test(测试
A test can be a call, a call sequence or a call sequence pair. There also may be several versions of a test that can be executed.

一个测试可以是一个呼叫,一个呼叫序列或一个呼叫序列对。也可能几个能执行的测试脚本。

·Run(运行
After a test has been executed, collected information (e.g., about the progress, test parameters, date and time, log files...) is stored as a run for further processing.

执行一个测试后,存储采集的信息(例如:关于处理、测试参数、日期和时间、日志文件….)作进一步处理。

3Admin guide(管理指南

3.1Installation instructions(安装说明

For detailed installation instructions refer to the file INSTALL.TXT shipped with the SIPp webfrontend package.

webfrontend download page

详细安装说明请参考SIPp webfrontend里面的INSTALL.TXT文件

Webfrontend下载

Login(登录

In order to act as an admin, you first need to login to the admin section by entering the correct password, defined in the config file config.ini.php with the parameteradmin_pwd. If you want everybody to be admin, assign admin_pwd an empty password (admin_pwd="").

以admin身份执行操作,你首先需要输入正确的密码,在配置文件config.ini.php的parameteradmin_pwd进行定义。如果想所有人以admin进行操作,设置admin_pwd为空即可(admin_pwd=””)

3.2Manage scenarios(管理场景)

There is a list of scenarios available for creating tests in the manage scenarios tab. Scenarios tagged with the word default are SIPp default scenarios, and cannot be modified or removed. Change the order of the scenarios by using the arrow up and the arrow down buttons, or remove a scenario by pressing the red X button. To modify a scenario, just click the row of the scenario, and to create a new scenario use the create new scenario link.

在管理场景标签显示了创建测试的有效场景。default标记为SIPp默认场景,这些是不能修改和删除的。向上箭头或向下箭头按钮改变场景的顺序,按红色X按钮来删除一个场景。点击场景的那一地就可以修改场景了。用create new scenario 链接创建一新场景。

3.3Create / modify a scenario(创建/修改一个场景)

To create a scenario, a name has to be specified and a XML scenario file has to be given (upload the file by pressing the corresponding Browse... button). Optionally the user can enter a description, upload a CSV injection file and enter a bind_local ip address to instruct a server to listen only to the given address instead to all available (see sipp -h for more details).

创建一个场景时需要给场景指明一个名称一个XML场景文件(通过点击相应的 Browse... 钮)。在可选Description可以写一对场景文件描述,上传一个CSV注入文件并输入一bind_local(绑定本机)ip地址来通知服务器去侦听,当绑定的IP地址有效时功能才正常可用(查看 sipp –h命令获得详细信息)

After you have created a scenario, you can modify it any time if you want. You can even remove a CSV file or replace the XML file.

创建一个场景后,你能在任何时候都可以修改。你删除CSV文件或替换XML文件

Note(注意

When you modify a scenario, you do not implicitly modify all tests using the scenario. Tests use copies of the scenarios to stay consistent with test runs.

你修改一个场景时,不要在原来的场景中进行修改,用一个复本进行修改以保证原来的场景还可以正常运行

3.4Manage tests(管理测试)

Open the Manage tests tab to get a list of available tests.

打开Manage tests 标签会出现一个测试列表

·to completely delete a test press the red X button

按红色X按钮删除一个测试

·to modify a test, click on the corresponding table row

点击相应的表行修改一个测试

·to create a new test, use the create new test link

点击 create new test链接创建一个新测试

For more information about this window see section Manage tests in the User guide.

关于这个窗口的更多信息请用户指南中查看 Manage tests部分

3.5Create a test(创建一个测试)

To create a test(为了创建个测试)

·enter a test title into the name field

Name输入一个测试标题

·optionally enter a test description into the description field

可以在Description输入测试场景的些描述

·click on the save test link

点击save test链接

After an empty test is created, it is in its version 1. Now calls can be added. A call is an instruction to SIPp, so a test is an instruction set. There are two parties the calls can be added, the A party and the B party. The calls in a party are executed one by one like in a queue, but the two parties are executed simultaneously. With this the parties can communicate with each other.

创建一个空的测试后,显示版本为1.现在添加一个呼叫,对SIPp一个呼叫是一个指令,因此一个测试就是一个指令集。可以添加两部分的呼叫,A端和B端。端会一个接一个的执行呼叫,就像是一个序列,但可以两端同时执行。A与B端可以相互

Sometimes the A party and the B party should not begin the execution at the same time (e.g., the client waits for the server to start). In this case a party can be delayed using the corresponding delay dropdown field.

时A端和B端可能不同时执行(例如客户端需要等待服务器启动种情况下一端一方能用相应的delay dropdown字段延时

The test screen is split in 3 areas. In the first (upper) one, the test name and description can be modified, and the entire test can be duplicated or removed. In the second (middle) area calls can be added, removed or reordered. The third (lower) area shows the test-runs that has been done with the current version.

测试屏幕中分3个区域。在第一个(上位)中,可以修改测试名称和描述整个测试可以被重写或删除。在二个(中间)区域可以添加删除或重新排序。第个(下部区域中显示了运行测试的当前版本。

0 0
原创粉丝点击