Commit f5387c3f authored by 张明扬's avatar 张明扬 🇨🇳

feat:增加CANoe升级脚本

parent 59615533
This diff is collapsed.
[NStatePersistence]
Signature=VectorStatePersistence
[VGlobalMeasurementIndex]
mMeasurementIndex=936
/*@!Encoding:936*/
on busOff
{
resetCan();
}
\ No newline at end of file
#:
tbAf_YR(+wm
faɇbay{FvەEA&?I
\ No newline at end of file
/*@!Encoding:936*/
variables
{
const word testWaitForRsp = 1600; //等待诊断响应完成的总时间
const word pendding = 5000; //两帧NRC78的Δt
const word P2CAN_Client = 150; //ECU响应超时时间, 仅适用于单帧和首帧
const word P2CAN_Server = 50;
const word P2xCAN_Server = 5000; //P2*Server,用于判断10服务响应数据
//点亮转向灯,0x144报文的前7个字节,第8字节(checksum)会自动计算
byte _144_B0 = 0x00;
byte _144_B1 = 0x00;
byte _144_B2 = 0x00;
byte _144_B3 = 0x00;
byte _144_B4 = 0x00;
byte _144_B5 = 0x61;//EQEAL = 0x51, HA6HA = 0x61
byte _144_B6 = 0x08;//EQEAL = 0x08, HA6HA = 0x08
}
\ No newline at end of file
#|
tbAf_YR(+hjk`ɇbazfqmwnH h4hBcd~{ca-:`P>uL0,usҨ}luwj80WASWfBb\|;x
&Lvqݧrc= ǠCȌSHZw
}wh
ZurDX$91%;RCx|yreM9 lóA[Jӹ
g$Χm;iGydnErrSK-.P utX&{Ed/঩iunjZ LO:\<P)AG
!j"
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<systemvariables version="4">
<namespace name="" comment="" interface="">
<namespace name="Bootloader" comment="" interface="">
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="Count" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
</namespace>
<namespace name="CheckBox" comment="" interface="">
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="FlashDriverUnused" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
</namespace>
<namespace name="File" comment="" interface="">
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="ApplicationFilePath" comment="" bitcount="88" isSigned="true" encoding="65001" type="string" />
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="FlashDriverFilePath" comment="" bitcount="88" isSigned="true" encoding="65001" type="string" />
</namespace>
<namespace name="ProgressBar" comment="" interface="">
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="Application" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="FlashDriver" comment="" bitcount="64" isSigned="true" encoding="65001" type="float" />
</namespace>
<namespace name="TP" comment="" interface="">
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="MaxCANFDFrameLength" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="RxID" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="TxID_Func" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="TxID_Phys" comment="" bitcount="32" isSigned="false" encoding="65001" type="int" />
</namespace>
</namespace>
</systemvariables>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="LinkPrefix" select="'lnk_'"/>
<xsl:variable name="TablePrefix" select="'tbl_'"/>
<xsl:variable name="Table2Prefix" select="'tbl_t'"/>
<xsl:variable name="DivPrefix" select="'div_'"/>
<xsl:variable name="ExpandedText" select="'[−]'"/>
<xsl:variable name="CollapsedText" select="'[+]'"/>
<xsl:template name="expand-script">
<script type="text/javascript">
var EXPANDED = '<xsl:value-of select="$ExpandedText"/>';
var COLLAPSED = '<xsl:value-of select="$CollapsedText"/>';
var VISIBLE = 'Visible';
var HIDDEN = 'Hidden';
var NONE = 'none';
var BLOCK = '';
function getDivId(id) { return '<xsl:value-of select="$DivPrefix"/>' + id; }
function getLinkId(id) { return '<xsl:value-of select="$LinkPrefix"/>' + id; }
function getTableId(id) { return '<xsl:value-of select="$TablePrefix"/>' + id; }
function getTbl2Id(id) { return '<xsl:value-of select="$Table2Prefix"/>' + id; }
<![CDATA[
function switchText(oldText) { return oldText == COLLAPSED ? EXPANDED : COLLAPSED ; }
function getStyleFromText(linkText) { return linkText == COLLAPSED ? HIDDEN : VISIBLE; }
function getElements(tagName, elementId)
{
this.elements = [];
var index = 0;
var elm = document.getElementsByTagName(tagName);
var len = elm.length;
for (var i = 0; i < len; i++)
{
var id = elm[i].id;
if (id && id.indexOf(elementId) == 0)
{
this.elements[index] = elm[i];
index++;
}
}
return this.elements;
}
function matchElements(tagName, matchId)
{
this.elements = [];
var index = 0;
var elm = document.getElementsByTagName(tagName);
for (var i = 0; i < elm.length; i++)
{
var id = elm[i].id;
var tc = id.replace(/s[0-9]+\./, "");
if (tc && tc == matchId)
{
this.elements[index] = elm[i];
index++;
}
}
return this.elements;
}
function onoff(elm, style)
{
if(elm.style.display == NONE)
{
if(style == null || style == VISIBLE)
elm.style.display = BLOCK;
}
else
{
if(style == null || style == HIDDEN)
elm.style.display = NONE;
}
}
function switchTagStyle(tag, id, style)
{
var divs = getElements(tag, id);
for(var i = 0; i < divs.length; i++)
onoff(divs[i], style);
}
function switchRowStyle(tbl, style)
{
var rows = tbl.rows.length;
for(var rowIndex=0; rowIndex < rows; rowIndex++)
{
var row = tbl.rows[rowIndex];
if (row.id != "on")
onoff(row, style);
}
}
function switchTableRowStyle(tableId, style)
{
var tables = getElements('table', tableId);
for(var i = 0; i < tables.length; i++)
switchRowStyle(tables[i], style);
}
function switchLinkText(linkId, newText)
{
var link = getElements('a', linkId);
var len = link.length;
for(var i = 0; i < len; i++)
{
var lnk = link[i];
if(newText == null)
{
var oldText = lnk.text;
newText = switchText(oldText)
}
lnk.text = newText;
}
}
function switchTag(tag, id, text)
{
var style = getStyleFromText(text);
switchTagStyle(tag, id, style);
}
function switchTable(id)
{
switchLinkText(getTableId(id));
switchTableRowStyle(getTableId(id));
}
function switchDiv(id, linkText)
{
var text = switchText(linkText);
switchLinkText(getLinkId(id), text);
switchTag('div', getDivId(id), text);
}
function switchAll(id, linkText)
{
var text = switchText(linkText);
switchLinkText(getLinkId(id), text);
switchTag('div', getDivId(id), text);
var style = getStyleFromText(text);
switchTableRowStyle(getTbl2Id(id), style);
}
function showTable(id)
{
var tableId = getTableId(id);
switchLinkText(tableId, EXPANDED);
switchTableRowStyle(tableId, VISIBLE);
}
function hideTable(id)
{
var tableId = getTableId(id);
switchTableRowStyle(tableId, HIDDEN);
switchLinkText(tableId, COLLAPSED);
}
function showDiv(id)
{
switchLinkText(getLinkId(id), EXPANDED);
switchTag('div', getDivId(id), EXPANDED);
}
function showTC(id)
{
var divId = getDivId(id);
var elms = matchElements('div', divId);
if(elms != null && elms.length > 0)
{
id = elms[0].id.replace(getDivId(''), '');
showDiv(id);
}
}
]]>
</script>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- displays the number for test elements -->
<xsl:template name="show-number-impl">
<xsl:number level="multiple" count="testgroup|testcase" />
</xsl:template>
<xsl:template name="make-number-impl">
<xsl:call-template name="show-number-impl"/>
</xsl:template>
<xsl:template match="engineer" mode="title">
<div class="Heading4"><xsl:text>Test Engineer</xsl:text></div>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="showTimeStampImpl">
<xsl:param name="timeStampValue"/>
<xsl:value-of select="$timeStampValue"/>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Global Settings -->
<!-- Name of subdirectory to place dependent files in. This variable -->
<!-- is automatically filled by the calling process when starting the -->
<!-- XSLT process. Don't modify it's value. -->
<!-- This subdirectory must be used for any separate files generated by -->
<!-- the stylesheet. The batch job called by the EXECUTE PRE directive -->
<!-- creates this directory if it doesn't exist yet. -->
<!-- Contains output folder for extended and multipage navigation -->
<xsl:param name="ReportPartsSubdir"/>
<!-- Same content as previous parameter but with UTF8 enconding -->
<xsl:param name="ReportPartsSubdirUTF8">
<xsl:value-of select="$ReportPartsSubdir"/>
</xsl:param>
<!-- Switch output of ident of structure elements depending on report type-->
<!-- (would be true for testmodule reports) -->
<xsl:variable name="StructureIdents" select="true()"/>
<!-- Verbosity Level: Defines up to which level the details of teststeps -->
<!-- are shown in the report -->
<xsl:variable name="TestStepMaxLevel">3</xsl:variable>
<!-- Should failed test steps always be shown, independently of the -->
<!-- level on which they were reported? -->
<xsl:variable name="IncludeFailedStepsOnAnyLevel" select="true()"/>
<!-- Depth of Indentation per level(in pixel) -->
<xsl:variable name="IndentDepth">20</xsl:variable>
<!-- Should '\n' be transformed into linebreaks in the description texts? -->
<!-- Set to true() to activate or false() to deactivate -->
<xsl:variable name="DoLinebreakTransformation" select="true()"/>
<!-- Should images in the report which are scaled and link to the image -->
<!-- file itself for full size display be opened in the same or in a new -->
<!-- window? Set to false() to disable opening new windows for image links-->
<xsl:variable name="LinkImageNewWindow" select="true()"/>
<!-- Enable special handling for "Verdict Information" xinfo blocks -->
<xsl:variable name="EnableSpecialVerdictInfo" select="count(//testcase/miscinfo/title[text()='Verdict Information']) > 0"/>
<!-- Enable up-links between check statistics -->
<xsl:variable name="CheckStatisticUpLinks" select="true()"/>
<!-- Should the automatic numbering be available? Or should the idents of test groups and test cases be used instead? -->
<!-- Set to true() to activate the automatic numbering or false() to deactivate -->
<xsl:variable name="ShowAutomaticTestModuleNumbering" select="true()"/>
<!-- Controls the which details of test cases to report, depending on the test case verdict -->
<!-- and on the filter settings in the report file, if missing assume showtestcase='true' -->
<!-- showcase='true' means the test case will have full details -->
<!-- showcase='false' means the test case does not contain any details -->
<xsl:variable name="HideNoneTestCases" select="/*/showtestcase/none[text()='false']"/>
<xsl:variable name="HidePassTestCases" select="/*/showtestcase/pass[text()='false']"/>
<xsl:variable name="HideInconTestCases" select="/*/showtestcase/inconclusive[text()='false']"/>
<xsl:variable name="HideFailTestCases" select="/*/showtestcase/fail[text()='false']"/>
<xsl:variable name="HideErrorTestCases" select="/*/showtestcase/error[text()='false']"/>
<!-- Controls wether the details of failed preconditions are reported or not -->
<xsl:variable name="ShowFailedPreconditions" select="false()"/>
<!-- Controls wether to display the testsequence as testgroup in overview section -->
<xsl:variable name="ShowSequenceAsGroup" select="false()"/>
<!-- Controls wether to display the testsequence/testcase list as testgroup in overview section -->
<xsl:variable name="ShowTestListAsGroup" select="true()"/>
<!-- Controls wether to display the additional warning column in the overview table -->
<xsl:variable name="ShowWarningMessage" select="count(//teststep[@result='warn']) > 0"/>
<!-- Controls wether to display the additional warning column in the overview table -->
<xsl:variable name="ShowWarningsInStatistics" select="count(//teststep[@result='warn' and ancestor::testcase]) > 0"/>
<!-- Number of columns in the overview table. Depends on the several variables -->
<xsl:variable name="OverviewColumnCount" select="3 + $StructureIdents + $EnableSpecialVerdictInfo + $ShowWarningsInStatistics"/>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- HTML Report Generation Style Sheet -->
<!-- onepage.xslt -->
<!-- Transformation style sheet to generate a one -->
<!-- page HTML report from CAnoe's XML report file. -->
<!-- (c) 2006-2010 Vector Informatik GmbH, Stuttgart -->
<!-- Imported files -->
<xsl:include href="include/varglobal.xslt"/>
<xsl:include href="include/css.xslt"/>
<xsl:include href="include/common.xslt"/>
<xsl:include href="include/expandscript.xslt"/>
<xsl:include href="include/impl/onepage.xslt"/>
<xsl:include href="include/impl/common.xslt"/>
<xsl:output method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html>
<head>
<title>
<xsl:value-of select="testmodule/title"/>
</title>
<xsl:call-template name="cssStyleDef"/>
<xsl:call-template name="expand-script"/>
</head>
<body>
<xsl:call-template name="report-body"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?>
<!--Vector Test Automation Editor 2.1.34.0-->
<testmodule title="Bootloader Test" version="1.0" xmlns="http://www.vector-informatik.de/CANoe/TestModule/1.27">
<preparation>
<capltestfunction name="prePareForTest" title="prePareForTest"/>
</preparation>
<capltestcase title="天鹰100升级-诊断刷写" name="bootloader_BYD"/>
</testmodule>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment