<Interface name = "VP3350_HID">
<Type>USBHID</Type>
<Parameters>
<VID>0ACD</VID>
<PID>4650</PID>
</Parameters>
<Protocol>IDG</Protocol>
<RespTimeout>3000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
<Interface name = "VP3350_RS232">
<Type>RS232</Type>
<Parameters>
<PortName>COM1</PortName>
<BaudRate>115200</BaudRate>
<DataBits>8</DataBits>
<StopBits>1</StopBits>
<Parity>None</Parity>
</Parameters>
<Protocol>IDG</Protocol>
<OpenCMD>2900</OpenCMD>
<OpenPattern>VP3350</OpenPattern>
<RespTimeout>3000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
<Interface name = "DA14585_ConnStart_RS232">
<Type>RS232</Type>
<Parameters>
<PortName>AUTO</PortName>
<BaudRate>921600</BaudRate>
<DataBits>8</DataBits>
<StopBits>1</StopBits>
<Parity>None</Parity>
<!-- Rx End Check Waiting Loop Interval = 10 ms, totoal = 5*IntfRs232_RxEndRetryTimes = 5*500 = 2500ms-->
<!--IntfRs232_RxEndRetryTimes>10</IntfRs232_RxEndRetryTimes-->
</Parameters>
<Protocol>ATCMD</Protocol>
<!-- AT+CMD=1 , Get EVK DA14580 Host FW Version -->
<OpenCMD>41 54 2B 43 4D 44 3D 31</OpenCMD>
<OpenPattern>BTH Version 1.0.1</OpenPattern>
<RespTimeout>3000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
<Interface name = "DA14585_ConnEnd_RS232">
<Type>RS232</Type>
<Parameters>
<PortName>AUTO</PortName>
<BaudRate>921600</BaudRate>
<DataBits>8</DataBits>
<StopBits>1</StopBits>
<Parity>None</Parity>
<IntfRs232_RxEndRetryTimes>10</IntfRs232_RxEndRetryTimes>
</Parameters>
<Protocol>ATCMD</Protocol>
<!-- AT+CMD=1 , Get EVK DA14580 Host FW Version -->
<OpenCMD>41 54 2B 43 4D 44 3D 33</OpenCMD>
<OpenPattern>BLE Host Ready!</OpenPattern>
<RespTimeout>10000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
</Interfaces>UTS Test XML Script Developer's Guide.
Ui tabs |
---|
Ui tab |
---|
title | 01 - <CheckMethod>SwitchInterface</> |
---|
| 01 - <CheckMethod>SwitchInterface</>Example | Comment |
---|
xmlMidnight1CheckMethod.SwitchInterfacetruetrue
xmlMidnight1Interface.xmltruetrue
| <CheckMethod ...>SwitchInterface</> 01 . <TestStep> = Main Body. Its name="..." define the step's name. 02. <CheckMethod> = UTS invokes "CheckMethod" type routines value=SwitchInterface = UTS switches current comm interface to the other one. Ex: switch USB-HID to USB-CDC (921600,8,N,1). 03. attr "xmlFileRef="Interface.xml" usedInterface="DA14585_..." = These attributes define Destination comm interface , defined in Interface.xml 's DA14585 block.
Interface.xml 01. Check <Interface name = "DA14585_ConnStart_RS232">...</> comm interface block 02. Check layer1 sub block <Parameters>...</>, as USB-CDC/UART/COM Port parameters. Note: USB-CDC now is normally with 921600 baud-rate. 03. <Protocol>...</> block defines the command format and its protocol type. Here is "ATCMD". for DA14585.
|
|
Ui tab |
---|
title | 02 - <TestIStep>...</> |
---|
| 02 - <TestStep>...</>Example | Content |
---|
xmlMidnight1<TestStep></>truetrue
xmlMidnight1CommandList.xmltruetrue
| 01.<Command Name>Get Bluetooth...</> Performs "Get Bluetooth.." command which is defined in "CommandList.xml" file. 02.<Timeout>20000</> Max timeout = 20 seconds before full response in. 03. <Response>...</Response> Response Check Block defines check scenario/method. 03.1 <HexStringRegEx>...</> This defines the response data check string pattern using "C# Regular Expression" method See MSDN description https://docs.microsoft.com/zh-tw/dotnet/standard/base-types/regular-expressions
04.<SavedName2>...</> This block defines how to strip-off the desired data, by removed prefix + postfix string patterns prefix pattern = RegexPrefix_Trim="...", C# Regular Express" style postfix pattern = RegexPostfix_Trim="...", C# Regular Express" style Note: You may see the Example from the xml comment block !!
CommandList.xml 01. This is xml file collecting all of used commands w/ their protocols (IDG/ATCMD/etc.) 02. <Command name="..."></> Name value is as the keyword name used in Production.xml/QC_TP.xml/QC_US.xml. 03. <MainPart>..</> This defines command part. Ex: IDG Ping Command = 18 01 = <MainPart>18 01</MainPart>
|
|
Ui tab |
---|
|
Example | Content |
---|
xmlMidnight1ADC check range - Voltagetruetrue
| |
|
|
|
Ui tab |
---|
|
Example | Comment |
---|
Keypad, ignoring hit key error xmlMidnight1keypad - continue ignoring failedtruetrue
| IfFail_ContinueNextStep="Yes" → Continue next step ignoring current error one. | 2+ SAM Test, ignoring ATR Failed xmlMidnight1SAM Testtruetrue
|
|
|
Ui tab |
---|
title | 05 - ModelNumber.xml |
---|
|
xmlMidnightKeys & Certstruetrue
|
|