main content

test scripts -凯发k8网页登录

create and run tests using command-line functions and scripts, set test preferences

you can use the simulink® test™ programmatic interface to:

  • create test scripts and functions.

  • run tests from the command line.

  • set up and standardize your testing environment.

you can use scripts and functions to repeat the same test strategy on multiple systems, or perform regression testing. these functions and classes cover test authoring, execution, and results in simulink test. if you want to combine existing simulink tests with matlab® tests, or run tests with continuous integration, use the matlab unit test framework. see continuous integration. if you want to run tests on third-party test benches, see .

simulink test also provides graphical user interfaces to help you create and run tests. for more information, see test authoring, test execution, and results, reporting, and test file management.

functions

test files

create or modify test file
create or modify test suite
create or modify test case
create test cases and test harnesses for model or model components
generate test cases from a model
copy test cases or test suites to another location
move test cases or test suites to a new location
load a test file in the simulink test manager
get test files open in the test manager
clear test files from the test manager

inputs

add or modify test input
create test cases from simulink design verifier results
read spreadsheet in format used by simulink test
register adapter to convert test data

outputs

add or modify baseline criteria
add or modify equivalence criteria
add or modify signal criteria
add or modify custom criteria
create or modify logged signals for use as simulation outputs
create or modify a set of logged signals
signal logging output start and stop triggers
signal logging output trigger results
output trigger type

iterations

create test iteration
create or modify test iteration
add or modify parameter set
add or modify parameter override

matlab-based simulink tests

test case class for matlab-based simulink tests
load model for matlab-based simulink test
simulate model or simulink.simulationinput for matlab-based simulink test
create test case for interactive use
create temporary folder
assume two data sets are equivalent
assert two data sets are equivalent
fatally assert two data sets are equivalent
verify two sets of data are equivalent
create test harness simulation input for matlab-based simulink tests
create simulation input object
enable model coverage collection for simulink tests
enable pushing test results to simulink test manager
add simulation and test results for matlab-based simulink tests to test manager
output stream to write text to test manager result logs for matlab-based simulink tests
collect model coverage using the matlab unit test framework
compare component under test between harness model and main model
copy test harness
close test harness
convert test harnesses between internal and external storage
create test harnesses
customize default property values for test harness creation
get harness creation default values
delete test harness
export test harness to simulink model
find test harnesses in model
import simulink model to test harness
load test harness
move test harness from linked instance to library block or to a different harness owner
open test harness
push test harness workspace entries and configuration set to model
rebuild test harness and update workspace entries and configuration parameter set based on main model
change test harness property
show test harness dialog box

steps, transitions, and symbols

add test sequence step
add test sequence step after existing step
add test sequence step before existing step
add symbol to test sequence
add new transition to test sequence step
delete test sequence step
delete test sequence block symbol
delete test sequence transition
edit test sequence step
edit symbol in test sequence block
edit test sequence step transition
find test sequence blocks
find test sequence steps
find test sequence block symbols
get test sequence block properties
create test sequence block
read test sequence block steps
read test sequence block symbol properties
read properties of test sequence transition
set test sequence block properties

scenarios

set test sequence block scenario as active
add new scenario to test sequence block
delete scenario from test sequence block
edit test sequence block test scenario properties
get test sequence block active scenario
get names of all test sequence block scenarios
get source that controls test sequence active scenario
determine whether test sequence block uses scenarios
set source controlling test sequence active scenario
convert test sequence block to scenario mode
access assessment from set
access a set of assessments from a simulation
returns test assessment set object
logical or temporal assessment object
symbol used in assessment
run tests with test manager
modify coverage settings
specify coverage metrics for tests run with matlab unit test framework
add tests to increase coverage
merge coverage results from two or more test result sets
options for adding test coverage
initialize test bench, start and stop simulation, and display test bench, variable, and task
configure test bench ports and variable mapping
read and write variable mapped to test bench
control external input to test bench
control signal data logging on test bench and retrieve logged data
import c or c code into simulink for testing
sandbox settings for c code testing
access results set data
access test file results data
access test suite results data
access test case results data
access test iteration result data
access result of a comparison test
access signal comparison results from a baseline or equivalence result
view custom criteria test result
import test manager results file
export results set from test manager
returns result set objects in test manager
clear results from test manager
generate report of test results
customize generated results report
generate report of test specifications
view custom criteria diagnostic information
container for mldatx test file results from matlab unit test run or runinparallel
launch the simulink test manager
set test manager preferences
get test manager preferences
return and specify test file options
close the simulink test manager

topics


  • examples of how to create and run tests using the programmatic interface.


  • write test files in matlab that can be used in the test manager.


  • add test scenarios to test sequence block programmatically.

网站地图