Beruflich Dokumente
Kultur Dokumente
Command Sequencer
www.spirentcampus.com
NoCodeTM Automation
To quickly and easily automate tests, Spirent TestCenter
provides NoCodeTM Automation.
Regression testing (different product releases)
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.
6
Spirent TestCenter Command Sequencer
Creating a Command Sequence
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
9
Spirent TestCenter Command Sequencer
Command Sequencer – Groups
10
Spirent TestCenter Command Sequencer
Command Groups
11
Spirent TestCenter Command Sequencer
Command Sequencer – Commands
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
14
Spirent TestCenter Command Sequencer
Modifying Parameters
15
Spirent TestCenter Command Sequencer
Inserting Commands – Drag and Drop
16
Spirent TestCenter Command Sequencer
Re-ordering Commands
17
Spirent TestCenter Command Sequencer
Saving the Sequence
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
20
Spirent TestCenter Command Sequencer
Following the Test Sequence
21
Spirent TestCenter Command Sequencer
Stop or Pause the Test Sequence
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 load
25
Spirent TestCenter Command Sequencer
Timed Test Parameters
26
Spirent TestCenter Command Sequencer
Stepped Test Parameters
27
Spirent TestCenter Command Sequencer
Throughput Test Parameters
28
Spirent TestCenter Command Sequencer
Set Test Options
29
Spirent TestCenter Command Sequencer
Enable Preview
30
Spirent TestCenter Command Sequencer
Creating a Sequence using
Test Wizards
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
38
Spirent TestCenter Command Sequencer
Verify ArpND Command
39
Spirent TestCenter Command Sequencer
Verify Link Command
40
Spirent TestCenter Command Sequencer
Verify Results Command
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
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
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.
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