Sie sind auf Seite 1von 61

Spirent TestCenter

Command Sequencer

www.spirentcampus.com
NoCodeTM Automation
„ To quickly and easily automate tests, Spirent TestCenter
provides NoCodeTM Automation.
‹ Regression testing (different product releases)

‹ Multiple hardware platform testing

‹ Multiple parameter testing such as varying the number of active


sessions, frame size, QoS settings, etc.

‹ Multiple protocol testing

„ NoCodeTM Automation includes:


‹ Command Sequencer

‹ GUI to Script

2
Spirent TestCenter Command Sequencer
Accelerate Test Case Development
Design Test
‹ Designing and creating New
Code Test
Test Cases typically requires a
Configure DUT
substantial commitment from
an organization.
Download Test
‹ Spirent TestCenter’s NoCodeTM
Collect Results Automation accelerates the
Test Case Development Cycle.
Present Results

Interpret Results

No
Correct?

Yes
3
Spirent TestCenter Command Sequencer
Command Sequencer Overview
„ The Command Sequencer is a Complete Visual
Programming Environment that:
‹ Allows customized testing.

‹ Allows automatic “Batch-mode” testing.

‹ Allows the introduction of “real world” events into a test.

‹ Emulate link failures, route flapping, router failures, etc.

‹ Allows you to build a complex series of events in order to truly stress


a router or switch
• Run continuously over a weekend.

• Ideal way to locate subtle problems such as small memory leaks.

‹ Allows you to insert External Events – “White Box Testing”.


4
Spirent TestCenter Command Sequencer
Command Sequencer Control
„ User can build and execute a sequence of interactive steps
(commands).
„ Flexible - Insert, change, delete, move command steps.
„ Control structure commands:
‹ Loop commands for iteration control
‹ Pass/Fail result status implemented for specific Verify commands
‹ Conditional Processing commands (Branching), includes Pass/Fail
on Test Results.
‹ Group commands together.
‹ Integrate with Test Management frameworks (Stop Sequencer)

„ Provides access to unlimited customization (Custom Tools)


5
Spirent TestCenter Command Sequencer
Accessing the Command Sequencer

6
Spirent TestCenter Command Sequencer
Creating a Command Sequence

„ There are two ways to create a custom sequence.


1. Manually within the Command Sequencer.
2. Using various Test Wizards.

7
Spirent TestCenter Command Sequencer
Command Sequence and Test Config.
„ Command Sequencer contains Commands only.
„ You must have a test configuration that you wish to act upon.

8
Spirent TestCenter Command Sequencer
Creating a Sequence Manually

„ Select the Edit Sequence button.

9
Spirent TestCenter Command Sequencer
Command Sequencer – Groups

„ Choose to view all, or specific command groups.

10
Spirent TestCenter Command Sequencer
Command Groups

„ Narrow down commands by groups.

11
Spirent TestCenter Command Sequencer
Command Sequencer – Commands

„ Read the command description.

12
Spirent TestCenter Command Sequencer
Adding Commands
„ Highlight command
„ Select ADD button, double click or drag and drop the
command.

13
Spirent TestCenter Command Sequencer
Editing Commands

„ Double click, or right click > Edit Command… to edit the


command.

14
Spirent TestCenter Command Sequencer
Modifying Parameters

Name your command

Modify the parameters

15
Spirent TestCenter Command Sequencer
Inserting Commands – Drag and Drop

„ Left click on the command and drag to point arrow below


command you want it to follow.

16
Spirent TestCenter Command Sequencer
Re-ordering Commands

„ There are two ways to move a command:


‹ Select the MOVE UP or MOVE DOWN button.
‹ Use the left mouse button to drag and drop.

17
Spirent TestCenter Command Sequencer
Saving the Sequence

„ When finished adding / editing the commands, select OK to


save them.

18
Spirent TestCenter Command Sequencer
Edit Stop Routine
„ You can also move Stop
commands into the Stop Routine.
„ Stop Commands are always
performed even if the sequence is
aborted.

19
Spirent TestCenter Command Sequencer
Starting the Test Sequence

„ Step through commands.


„ Run all at once.

20
Spirent TestCenter Command Sequencer
Following the Test Sequence

„ Watch each command step in lower left of browser.

21
Spirent TestCenter Command Sequencer
Stop or Pause the Test Sequence

Pause the test. Stop the test.


Break the loop running.

22
Spirent TestCenter Command Sequencer
Event Results
„ Create a Chart in the Results Browser to track incremental results
„ Events are annotated with the assigned name and any comments
„ Width of the flap indication line depicts the amount of time that it
took to implement that event

23
Spirent TestCenter Command Sequencer
Creating a Sequence Using the
Custom Test Wizard
„ Go to Wizards… > Configuration Wizards > Sequence
Generator > Custom Test.

24
Spirent TestCenter Command Sequencer
Custom Test – Parameters

Set test type

Set load

Set frame size

25
Spirent TestCenter Command Sequencer
Timed Test Parameters

Set the time or bursts

Use the port or


stream settings
or specify a fixed or
random value for load
units and/or frame
size.

26
Spirent TestCenter Command Sequencer
Stepped Test Parameters

Set the time or bursts

Step the load

Step the frame size

27
Spirent TestCenter Command Sequencer
Throughput Test Parameters

Set the time or bursts

Set the load

Set the frame size

28
Spirent TestCenter Command Sequencer
Set Test Options

29
Spirent TestCenter Command Sequencer
Enable Preview

„ To view the commands select Enable Preview.

30
Spirent TestCenter Command Sequencer
Creating a Sequence using
Test Wizards

Creates the Traffic and associated


Command Sequence all in one

31
Spirent TestCenter Command Sequencer
RFC 2544 Command Sequence

32
Spirent TestCenter Command Sequencer
BreakPoints

33
Spirent TestCenter Command Sequencer
Creating a Sequencer Loop

34
Spirent TestCenter Command Sequencer
Specifying Loop Options (Fixed)

35
Spirent TestCenter Command Sequencer
Specifying Loop Options (Continuous)

36
Spirent TestCenter Command Sequencer
Iteration Commands

37
Spirent TestCenter Command Sequencer
Verify Status Commands

„ Use Verify Status Commands to


display Pass/Fail Status of that
Command.

38
Spirent TestCenter Command Sequencer
Verify ArpND Command

„ For this example we did not


Start ARP within Command
Sequencer.
„ Verify Arp Status Command
displays Red LED indicating
that ARPs did not Resolve.

39
Spirent TestCenter Command Sequencer
Verify Link Command

„ Verify Link Status Command


displays Red LED indicating
that Physical Link is not up.

40
Spirent TestCenter Command Sequencer
Verify Results Command

„ Verifies Traffic was sent.


41
Spirent TestCenter Command Sequencer
Conditional Processing Commands
„ Conditional Processing commands allow branching decisions
based on command status.

Decision

42
Spirent TestCenter Command Sequencer
Conditional Command Usage

43
Spirent TestCenter Command Sequencer
Conditional Command Usage Continued

44
Spirent TestCenter Command Sequencer
If Else Example

45
Spirent TestCenter Command Sequencer
Conditional Command Warning

46
Spirent TestCenter Command Sequencer
Stop Command Sequencer
„ The Stop Command Sequencer command will exit the
sequencer and return a user defined message.
„ Very useful in conjunction with branching commands.

47
Spirent TestCenter Command Sequencer
Branching Results w/Stop Sequencer

48
Spirent TestCenter Command Sequencer
Goto Command

49
Spirent TestCenter Command Sequencer
Running an External Process
„ The Run External Process command allows access to
external scripts and processes.
Command Sequence

tclsh84 config.tcl
Script to
Configure DUT

SPT-5000A
SPT-5000A

er
w
Po
er
w et
Po es
R
et
es p
R m
Te
p n
m Fa
Te
nk
n Li
Fa us
at
St
nk w
er
Li
us Po
at
St
er
CAUTION
Pow STATICSENSITIVE

CAUTION
STATICSENSITIVE

Spirent TestCenter Spirent TestCenter


50
Spirent TestCenter Command Sequencer
Run External Process Command

51
Spirent TestCenter Command Sequencer
Configuring Run External Command

52
Spirent TestCenter Command Sequencer
Run External Process Example

53
Spirent TestCenter Command Sequencer
Run Custom Command

„ The Run Custom Command extends the Command


Sequencer by allowing Spirent provided extensions for
custom configuration, control, or analysis.
„ Requires advanced customization tools.
„ Provides endless flexibility for commands not included within
the Command Sequencer.
„ Not a typical user function.

54
Spirent TestCenter Command Sequencer
Custom Tool Example

Custom software

55
Spirent TestCenter Command Sequencer
Calling Custom Script

56
Spirent TestCenter Command Sequencer
Passing Parameters to the Script
„ When you execute the Global Services: Run Custom
Command you can pass it parameters:
‹ TCL script accesses the parameters using the stc::scriptParameters
array variable
‹ Sample parameter argument list:
• -MinTol 5 –MaxTol 25 –Step 3

57
Spirent TestCenter Command Sequencer
GUI to API for the Command Sequencer

58
Spirent TestCenter Command Sequencer
Spirent TestCenter API Commands
„ A script can use Spirent TestCenter 2.X API commands
within or without the Command Sequencer.

„ Spirent TestCenter 2.X API Commands are called differently


for scripts that use the Command Sequencer and for scripts
that do not use the Command Sequencer.
‹ AnalyzerStart without the Command Sequencer and
AnalyzerStartCommand within the Command Sequencer.

‹ GeneratorStart without the Command Sequencer and


GeneratorStartCommand within the Command Sequencer.

‹ See Command Object Index of the Object Reference for all API
commands.

59
Spirent TestCenter Command Sequencer
Command Sequencer API Commands

60
Spirent TestCenter Command Sequencer
End of Topic

www.spirentcampus.com
61
Spirent TestCenter Command Sequencer

Das könnte Ihnen auch gefallen