Example | Comment | <TestStep name="Step [DUT] Get BLE Version + Public Random MAC Address">
<Command name="Get Bluetooth Parameters-DA14585">
<Timeout>20000</Timeout>
<Response>
<!--Ex: 0D 0A 36 2E 31 35 30 2E 34 2E 35 31 00 0D 0A 82 87 70 0A DE F7 -->
<HexStringRegex>^(0D0A)([0-9a-hA-H][0-9a-hA-H])*(0D0A)([0-9a-hA-H][0-9a-hA-H]){6}</HexStringRegex>
</Response>
</Command>
<!--
Ex: In Data = 0D 0A 36 2E 31 35 30 2E 34 2E 35 31 00 0D 0A 82 87 70 0A DE F7
Trim Regex Prefix = 0D 0A 36 2E 31 35 30 2E 34 2E 35 31 00 0D 0A
Trim Regex Postfix = None
Result = 82 87 70 0A DE F7 = BLE01_RandMacAddr, Saved Name
-->
<SavedName2 RegexPrefix_Trim="^(0D0A)([0-9a-hA-H][0-9a-hA-H])*(0D0A)" RegexPostfix_Trim="">BLE01_RandMacAddr</SavedName2>
<RetryTimes>3</RetryTimes>
<Interval>200</Interval>
</TestStep>
01 <TestStep name="Step ...> ...</>
Test Step item
02 <Command name = "Get Bluetooth...">...</>
02.1 Retrieving command "Get Bluetooth..."'s content from CommandList.xml
,content = Protocol Type + Command Part
02.1.1 <Timeout>...</> : timeout between Send/Tx and Receive/Rx,
unit : milli-seconds.
02.1.2 <Response>... </> : Response Data Check
02.1.2.1 <HexStringRegex>...</> : using regular express rule to check the matched pattern found ~!.dddddd
Example:
<!--Ex: 0D 0A 36 2E 31 35 30 2E 34 2E 35 31 00 0D 0A 82 87 70 0A DE F7 -->
<HexStringRegex>^(0D0A)([0-9a-hA-H][0-9a-hA-H])*(0D0A)([0-9a-hA-H][0-9a-hA-H]){6}</HexStringRegex>
==> Check Response Data Pattern |
---|
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.
|