ITTS:ITTS Scrip:ITTS command

出自ITTS
於 2020年10月29日 (四) 17:00 由 Vincentcheng2116討論 | 貢獻 所做的修訂
跳至導覽 跳至搜尋

ITTS

Section1: ITTS or UTS

Section2:

Fail

 let ITTS test fail

RUN

 RUN test plan

EXIT

 Exit ITTS

Pass Fail Show

 show information on Pass/ fail dialog box support smart format, the default show string is UID filed contents.  ['UID']
 example: 
 Value3 :  "['&VAR:UID2']"

Show Pass Fail

 show pass fail dialog box earlier.
 if V3=0 hide the pass fail dialog box immediately
 if V3=1 Show the pass fail dialog box immediately

Position&Size

 Value3: Left position
 Value4: Right position
 Value5:Width
 Value6:Height
 Value7: alwaysontop setting 1:true, 0: fail
 Value8: keep Minimize setting 1:true, 0: fail

 return value: Desktop Width; Desktop Height; Monitor Width; Monitor Height;
 if value3=AUTO, all ITTS will arrange the windows size and position automatically

Example: Position&Size Example Scrip, click copy and paste to ScripEditor.

Example Code
     <Item> 
      <Text> </Text> 
      <Description> Position&Size keep minimize</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> ITTS</ItemSection1> 
      <ItemSection2> Position&Size</ItemSection2> 
      <ItemCommand> </ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content></Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content></Content>
          <Description>Max</Description>
        </i2>
        <i3>
          <Content>100</Content>
          <Description>X</Description>
        </i3>
        <i4>
          <Content>100</Content>
          <Description>Y</Description>
        </i4>
        <i5>
          <Content>1024</Content>
          <Description>width</Description>
        </i5>
        <i6>
          <Content>768</Content>
          <Description>High</Description>
        </i6>
        <i7>
          <Content>0</Content>
          <Description>AlwaysOnTop</Description>
        </i7>
        <i8>
          <Content>1</Content>
          <Description>Keep Minimize</Description>
        </i8>
      </Parameter> 
    </Item> 
    <Item> 
      <Text> </Text> 
      <Description> Position&Size auto</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> ITTS</ItemSection1> 
      <ItemSection2> Position&Size</ItemSection2> 
      <ItemCommand> </ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content></Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content></Content>
          <Description>Max</Description>
        </i2>
        <i3>
          <Content>auto</Content>
          <Description>X</Description>
        </i3>
        <i4>
          <Content>100</Content>
          <Description>Y</Description>
        </i4>
        <i5>
          <Content>1024</Content>
          <Description>width</Description>
        </i5>
        <i6>
          <Content>768</Content>
          <Description>High</Description>
        </i6>
        <i7>
          <Content>0</Content>
          <Description>AlwaysOnTop</Description>
        </i7>
        <i8>
          <Content>1</Content>
          <Description>Keep Minimize</Description>
        </i8>
      </Parameter> 
    </Item>



PASS_TIMER

 Value3: time ( mini-second )
 example:
 value3 : 5000 ==>show Pass dialog box only 5 sec.
 value3 : 0  ==>show Pass dialog box all the time until next test or ESC was pressed.
 value3 : -1 ( < 0 )  ==>Hide Pass dialog box immediately (useful for start condition )

 value4 : 1  ==>if fail, need to press ESC key before start new test.
 value5 : 1  ==>if fail, the fail dialog box will keep showing. not hide when pass timer appear.

Start Conditions

 Adjust Start Conditions interval time,
 Disable Start Conditions
 value 3: 1 : force enable START CONDITIONS
 0 or none 1 value : force Disable START CONDITIONS
 value 4:  300 mS
 Setting / Adjust start conditions interval time
 Explain: ITTS will run Start Conditions automatically,  start conditions interval time =300 mS
 if [ Start Conditions ] exist and ITTS testing result =PASS, ITTS will start the  [ Start Conditions ]  checking,
 if you want to stop [ Start Conditions ],  just uncheck the "Repeatedly" on main form of ITTS.

MODE

 set ITTS UI MODE
 value3:
 1: MP Mode
 2: Operator Mode
 3: Engineer Mode

Example: Engineer mode, Example Scrip, click copy and paste to ScripEditor.

Example Code
    <Item> 
      <Text> </Text> 
      <Description> Engineer Mode</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> ITTS</ItemSection1> 
      <ItemSection2> mode</ItemSection2> 
      <ItemCommand> </ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content></Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content></Content>
          <Description>Max</Description>
        </i2>
        <i3>
          <Content>3</Content>
          <Description>Value3</Description>
        </i3>
      </Parameter> 
    </Item> 



Message Link: message command