「ITTS:ITTS Scrip:ITTS command」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) (→MODE) |
Vincentcheng2116(討論 | 貢獻) |
||
(未顯示同一使用者於中間所作的 11 次修訂) | |||
行 5: | 行 5: | ||
==== Fail ==== | ==== Fail ==== | ||
− | let ITTS test fail | + | let ITTS test fail |
− | + | ||
− | RUN test plan | + | ==== RUN ==== |
− | + | RUN test plan | |
+ | |||
==== EXIT ==== | ==== EXIT ==== | ||
− | Exit ITTS | + | Exit ITTS |
==== Pass Fail Show ==== | ==== Pass Fail Show ==== | ||
− | show information on Pass/ fail dialog box support smart format | + | show information on Pass/ fail dialog box support smart format, the default show string is UID filed contents. ['UID'] |
− | the default show string is UID filed contents. ['UID'] | + | example: |
− | example: | + | Value3 : "['&VAR:UID2']" |
− | Value3 : "['&VAR:UID2']" | + | |
− | |||
==== Show Pass Fail ==== | ==== Show Pass Fail ==== | ||
− | show pass fail dialog box earlier. | + | show pass fail dialog box earlier. |
− | if V3=0 hide the pass fail dialog box immediately | + | if V3=0 hide the pass fail dialog box immediately |
− | if V3=1 Show the pass fail dialog box immediately | + | if V3=1 Show the pass fail dialog box immediately |
==== Position&Size ==== | ==== Position&Size ==== | ||
− | Value3: Left position | + | Value3: Left position |
− | Value4: Right position | + | Value4: Right position |
− | Value5:Width | + | Value5: Width |
− | Value6:Height | + | Value6: Height |
− | Value7: alwaysontop setting 1:true, 0: fail | + | Value7: alwaysontop setting 1:true, 0: fail |
− | Value8: keep Minimize setting 1:true, 0: fail | + | Value8: keep Minimize setting 1:true, 0: fail |
− | return value: Desktop Width; Desktop Height; Monitor Width; Monitor Height; | + | return value: Desktop Width; Desktop Height; Monitor Width; Monitor Height; |
− | if value3=AUTO, all ITTS will arrange the windows size and position automatically | + | if value3=AUTO, all ITTS will arrange the windows size and position automatically |
Example: Position&Size | Example: Position&Size | ||
Example Scrip, click copy and paste to ScripEditor. | Example Scrip, click copy and paste to ScripEditor. | ||
− | + | {| class="mw-collapsible mw-collapsed wikitable" | |
− | + | ! Example Code | |
+ | |- | ||
+ | | | ||
+ | <Item> | ||
<Text> </Text> | <Text> </Text> | ||
<Description> Position&Size keep minimize</Description> | <Description> Position&Size keep minimize</Description> | ||
行 118: | 行 121: | ||
</i3> | </i3> | ||
<i4> | <i4> | ||
− | <Content> | + | <Content></Content> |
<Description>Y</Description> | <Description>Y</Description> | ||
</i4> | </i4> | ||
<i5> | <i5> | ||
− | <Content> | + | <Content></Content> |
<Description>width</Description> | <Description>width</Description> | ||
</i5> | </i5> | ||
<i6> | <i6> | ||
− | <Content> | + | <Content></Content> |
<Description>High</Description> | <Description>High</Description> | ||
</i6> | </i6> | ||
行 138: | 行 141: | ||
</i8> | </i8> | ||
</Parameter> | </Parameter> | ||
− | </Item> | + | </Item> |
+ | |||
+ | |} | ||
==== PASS_TIMER ==== | ==== PASS_TIMER ==== | ||
− | Value3: time ( mini-second ) | + | Value3: time ( mini-second ) |
− | example: | + | example: |
− | value3 : 5000 ==>show Pass dialog box only 5 sec. | + | 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 : 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 ) | + | 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. | + | 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. | + | value5 : 1 ==>if fail, the fail dialog box will keep showing. not hide when pass timer appear. |
==== Start Conditions ==== | ==== Start Conditions ==== | ||
− | Adjust Start Conditions interval time, | + | Adjust Start Conditions interval time, |
− | Disable Start Conditions | + | Disable Start Conditions<br> |
− | value 3: 1 : force enable START CONDITIONS | + | value 3: 1 : force enable START CONDITIONS, |
− | 0 or none 1 value : force Disable START CONDITIONS | + | 0 or none 1 value : force Disable START CONDITIONS |
− | value 4: 300 mS | + | value 4: 300 mS |
− | Setting / Adjust start conditions interval time | + | Setting / Adjust start conditions interval time<br> |
− | 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, | + | * 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. | + | ** if you want to stop [ Start Conditions ], just uncheck the "Repeatedly" on main form of ITTS or ctrl-c or ctrl-break. |
− | + | ||
==== MODE ==== | ==== MODE ==== | ||
− | set ITTS UI MODE | + | set ITTS UI MODE |
− | value3: | + | value3: |
− | 1: MP Mode | + | 1: MP Mode |
− | 2: Operator Mode | + | 2: Operator Mode |
− | 3: Engineer Mode | + | 3: Engineer Mode |
Example: Engineer mode, Example Scrip, click copy and paste to ScripEditor. | Example: Engineer mode, Example Scrip, click copy and paste to ScripEditor. | ||
+ | |||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Example Code | ||
+ | |- | ||
+ | | | ||
<Item> | <Item> | ||
<Text> </Text> | <Text> </Text> | ||
行 201: | 行 211: | ||
</Parameter> | </Parameter> | ||
</Item> | </Item> | ||
+ | |||
+ | |||
+ | |} | ||
Message | Message | ||
Link: [[ITTS_Scrip:Message|message command]] | Link: [[ITTS_Scrip:Message|message command]] |
於 2022年3月15日 (二) 08:47 的最新修訂
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></Content> <Description>Y</Description> </i4> <i5> <Content></Content> <Description>width</Description> </i5> <i6> <Content></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 or ctrl-c or ctrl-break.
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