Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Project : UTS Scope Overview

Ui tabs


Ui tab
titleNEO2.x-TS184

NEO2x - TS184

ProjectTS
VP3600

TS184

VP6800
PiP
KIV
KIII
SREDKey2
VP3320
VP5200



Ui tab
titleSpecial Version

TS Special Version

ProjectTS
VP5300

TS188



Ui tab
titleNEO3x-UTS

NEO3x - UTS

ProjectTS
VP8810

TS194

VP6825

TS195






Xml Script Format

UTS Test XML Script Developer's Guide.

Ui tabs


<TestStep..><
Ui tab
title01 - <CheckMethod>SwitchInterface</>

01 -

<CheckMethod>SwitchInterface</>

xml001<Test Step> block


xmlMidnight1CheckMethod.SwitchInterfacetruetrue


xmlMidnight1Interface.xmltruetrue


ExampleComment
Xml
01 <TestStep

<CheckMethod ...>SwitchInterface</>

01 . <TestStep> = Main Body. Its name="

Step

..."

> ...</>

Test Step item, name = "Step ...", will be displayed in the left-bottom window (7) in the main test form.

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 definition, between Send/Tx and Receive/Rx,

unit : milli-seconds.

02.1.2 <Response>... </> : Response Data handler

  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 is same as

     "0D 0A "+ASCII string , null end ("00") + "0D 0A" + 6 bytes BLE Address, hex chars string.

Ui tab
title02 - <CheckMethod...>SwitchInterface</>
xmlDJango1<CheckMethod xmlFileRef...>SwitchInterface</>truetruexmlMidnight1Interface.xmltruetrue

01 <CheckMethod xmlFileRef="Interface.xml" usedInterface="DA145858_..."> SwitchInterface</>

01.1 UTS calls "CheckMethod" type service : SwitchInterface, keyword

  switch current communication interface (ex:USB-HID).

UTS disconnects current Comm Interface .

01.2 to the new interface, defined in "Interface.xml" , "DA14585_..."

UTS connects new interface to the other device.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.



ExampleContent

Purpose : Switch from Current Interface (ex: USB-HID) to BLE Client, EVK Board , (USB-CDC, 921600,8,N,1)

Xml



Ui tab
title02 - <TestIStep>...</>

02 - <TestStep>...</>

ExampleContent


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
title03 - Battery


ExampleContent


xmlMidnight1ADC check range - Voltagetruetrue






Ui tab
title04 - continue next


ExampleComment

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
title05 - ModelNumber.xml


xmlMidnightKeys & Certstruetrue