Code covered by the BSD License  

Highlights from
sldvmisscovtool

image thumbnail

sldvmisscovtool

by

 

30 Oct 2008 (Updated )

A GUI tool to obtain test cases for missing coverage objectives

_exportTemplate.m
function [stat,msg] = _exportTemplate(Mode,selected)
% sldvmisscovtoolp GNX|[g֐ (ev[g)
% export function template for sldvmisscovtool
%
% ̃t@C export n܂t@CƂĕۑ
% sldvmisscovtool GUÍuGNX|[gvɓǂݍ܂܂B
% (sldvmisscovtool̍ċNKvƂȂ܂)
%
% By saving as a function M-file begining with "export", this function will
% be listed as [Export] function in sldvmisscovtool GUI.
% Re-run of sldvmisscovtool is needed.

%   Copyright 2010-2011 The MathWorks, Inc. 

stat = [];
msg = [];
switch Mode
%% description
    case 'description'
        if any(strcmp(get(0,'lang'),{'ja_jp.shift_jis','japanese','ja_jp'}))
            % {ꃂ[h̏ꍇɕ\
            simdata = 'v_EXgɕ\镶';
            testcasename = '[Import] Descriptions of this feature. This shown in the information window.';
        else
            % Shown in non-Japanese mode
            simdata = 'Strings shown pull-down list blox in GUI';
            testcasename = ['[Import] Descriptions of this feature. This shown in the information window.'];
        end
%% export
    case 'export'
        % x[X[NXy[X simdata ǂݍ
        % load simdata variable in base WorkSpace
        simdata_tmp = evalin('base','simdata');

        % GUĨeXgP[XXg{bNXőIꂽ݂̂̂𒊏o
        % pick only selected data in TestCase listbox in the GUI
        simdata = simdata_tmp(selected);

        % ȉɁAԕt\̃tH[}bg simdata Cӂ̃tH[}bg
        % ɕϊXNvgLqĂB
        % put script here to convert your own data format from simdata which is 
        % defined as structure with time format.
end

Contact us