TestCenter自动化体系架构
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
192.168.61.2 192.168.61.3 192.168.61.4 192.168.61.5 192.168.61.6
19
PROPRIETARY AND CONFIDENTIAL
Results
Three type of results available to API via scripting: • Run-time results are automatically updated periodically during the test
can be stored in a Database format. The resulting Database also includes configuration information.
20
PROPRIETARY AND CONFIDENTIAL
API Run-time Results Retrieval
13
PROPRIETARY AND CONFIDENTIAL
Creating/Configuring Media Object (PHY)
The Port Object also has a Media Type (PHY) that describes the physical properties of the Port. These PHYs include EthernetFiber or EthernetCopper. The script can create a Media Object using the stc::create API Function or it can change default Media Attributes using the stc:config API Function.
9
PROPRIETARY AND CONFIDENTIAL
Project Object
User Allocated
Project
System Allocated
TrafficOptions ArpNDConfig L2LearningConfig PimGlobalConfig Port StreamBlock
Shared Frame Configuration definition. A set of streams that share (or “inherit”) the StreamBlock description. A StreamBlock can be Bound to a Host or it can exist by itself as a Raw StreamBlock.
-InsertSig "TRUE“ -InsertSig “FALSE”
18
PROPRIETARY AND CONFIDENTIAL
Range Value Attributes
Range value depends on the combination of Mask, Step and RecycleCount Attributes.
15
PROPRIETARY AND CONFIDENTIAL
StreamBlock Representation
Hosts
Variations
Streams
Port X
Stream Block
Hosts Variations Streams
Port Y
16
PROPRIETARY AND CONFIDENTIAL
Base Packages
GUI
Spirent TestCenter OS and Administration
4
PROPRIETARY AND CONFIDENTIAL
TestCenter API基本架构
Spirent TestCenter自动化采用面向对象的思想,命令简单,结 构清晰 数据模型采用树状的继成关系 只使用四类对象:配置,报文PDU,控制命令和结果 相同的命令控制不同的板卡,应用于不同的测试场景,脚本的可 重用性高 提供在线帮助,随时可查需要的帮助信息
7
PROPRIETARY AND CONFIDENTIAL
Configuring System Object
While the script cannot create a System Object, the script can modify System Object Attributes using the stc::config API Function.
Raw StreamBlock Script
17
PROPRIETARY AND CONFIDENTIAL
InsertSig Attribute
Spirent Signature can be added or ignored on the traffic using the following option
using a subscription method.
• End-of-Test (EOT) results are updated after a result retrieval update
command is executed.
• DataBase results are the most recent results contained in memory, which
11
PROPRIETARY AND CONFIDENTIAL
Port object
Port User Allocated StpPortConfig Host MldPortConfig Capture Analyzer Generator ArpCache EthernetCopper IgmpPortConfig PppoePortConfig Dhcpv6PortConfig Dhcpv4PortConfig PppProtocolConfig System Allocated
21
PROPRIETARY AND CONFIDENTIAL
PortResults Object
You must subscribe to any Result Object that does not contain Writable Attributes, before you can retrieve the results.
Capture
6
PROPRIETARY AND CONFIDENTIAL
System Object
The System Object is the Root Object of the Spirent TestCenter Object Hierarchy and it is created automatically.
14
PROPRIETARY AND CONFIDENTIAL
StreamBlock object Description
General Parameters shared by multiple streams across multiple ports:
• Frame Length (fixed, random, increment, decrement, auto) • Load/Rate (% of line rate, bits/kbits/Mbits/sec, IFG, frames/sec) • Duration (continuous, bursts, seconds) • Priority (for new scheduling mode)
10
PROPRIETARY AND CONFIDENTIAL
Port Objects
A Port Object is a logical entity under which the script can emulate large networks by creating devices like Hosts, and Routers. The script will use the stc::create API Function and the Port Object to create the (logical) Ports. The Port Object is created under the Project Object. The (logical) Ports are mapped to the (physical) Ports that were reserved on the Spirent TestCenter Chassis.
TestCenter API基本架构介绍
3
PROPRIETARY AND CONFIDENTIAL
TestCenter API基本架构
思博伦TestCenter自动化架构
所有GUI提供的功能都有自动化接口 面向对象的组织架构 提供多种语言的支持
Script
RFC 2889 RFC 2544 Test Methodology Packages L2/L3 PGA PPPoX MPLS VPN STP/RSTP Unicast Routing Multicast Routing DHCP Multicast
Identify the Result Type you wish to view in the Spirent TestCenter Programmers Guide. Subscribe to the Result Type using the stc::subscribe API Function. During or after the test run, retrieve the results using stc::get API Function and store them in an array. View the retrieved Attributes as required (Attributes contained within the Spirent TestCenter Object Reference)
8
PROPRIETARY AND CONFIDENTIAL
Project Object
The test must contain a Project Object and only one Project Object. The script will use the stc::create API Function to create the Project Object. When created, the Project Object is automatically placed under the System Object. Port Objects as well as other Objects are created under the Project Object.
5
PROPRIETARY AND CONFIDENTIAL
TestCenter API基本架构
Spirent TestCenter基本对象结构 System
Command Sequencer
Project
Port
Results
Host
Router
Stream BlockGeΒιβλιοθήκη eratorAnalyzer
MII
12 PROPRIETARY AND CONFIDENTIAL
MIIRegister
Creating/Configuring Port Object
Create Port Object for each Port in the test Configuration. When the script creates the Port Object it can also configure its Attributes.
TestCenter自动化体系架构介绍
施军华 Automation & L2-L7 Specialist
PROPRIETARY AND CONFIDENTIAL
Agenda
TestCenter API基本架构介绍 TestCenter API实例分析 HLAPI基本架构介绍 HLAPI实例分析
2
PROPRIETARY AND CONFIDENTIAL