「Itts RUN AP.dll」修訂間的差異
跳至導覽
跳至搜尋
(建立內容為「=== '''ini說明:''' === 檔案:Ini說明.png •當Edior mode=1時可使用alt+滑鼠滾輪更改shape寬度,或使用shift+滑鼠滾輪可更改shape高…」的新頁面) |
Vincentcheng2116(討論 | 貢獻) |
||
(未顯示同一使用者於中間所作的 6 次修訂) | |||
行 1: | 行 1: | ||
− | === ''' | + | === '''ITTS_RUN_AP.dll 功能:''' === |
+ | '''這些功能 要在 版本 4.11.20.1 之後的版本 才能保證運行''' | ||
− | + | * 01:RUN | |
+ | * 02:Stop exit | ||
+ | * 03:Run DOS AP | ||
+ | * 13:Run DOS AP and store the result in the file | ||
+ | * 04:Check application ( check Exit or not in process (already running or not)) | ||
− | |||
− | + | '''腳本範例 01: open www.google.com''' | |
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ||
+ | |- | ||
+ | | | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN www</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</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>01:RUN</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>www.google.com</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content></Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content>9</Content> | ||
+ | <Description>P7 show</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content>1</Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
− | + | |} | |
+ | '''腳本範例 02: 01 use notepad.exe to open C:\WINDOWS\SYSTEM.INI''' | ||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ||
+ | |- | ||
+ | | | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN note pad</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> res</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>01:RUN</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>notepad.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>C:\WINDOWS\SYSTEM.INI</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content>C:\WINDOWS\</Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content>debug</Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | |} | ||
− | '''腳本範例:''' | + | '''腳本範例 03: 13 Check Python version ''' |
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ||
|- | |- | ||
| | | | ||
− | + | <Item> | |
<Text> </Text> | <Text> </Text> | ||
− | <Description> | + | <Description> run python</Description> |
<ItemType> 2</ItemType> | <ItemType> 2</ItemType> | ||
<Skip> 1</Skip> | <Skip> 1</Skip> | ||
<ItemSection1> DLL</ItemSection1> | <ItemSection1> DLL</ItemSection1> | ||
− | <ItemSection2> | + | <ItemSection2> EXECUTE</ItemSection2> |
− | <ItemCommand> | + | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> |
<FailAction> </FailAction> | <FailAction> </FailAction> | ||
− | <FieldName> | + | <FieldName> ans0;ans1;</FieldName> |
− | <FieldNumber> | + | <FieldNumber> </FieldNumber> |
− | <ErrorCode> | + | <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>13:RUN DOS AP and get result</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>python.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>--version</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content>['&testplanpath'+"result.txt"]</Content> | ||
+ | <Description>P6 Output File Name</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content>['d:\python311']</Content> | ||
+ | <Description>P9 work path</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content>debug</Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i9> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | |||
+ | |} | ||
+ | |||
+ | '''腳本範例 04:03 04 02 run PITTS_scripEditor.exe, check exist , close... ''' | ||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ||
+ | |- | ||
+ | | | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN PITTS_ScripEditor.exe</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> </FieldName> | ||
+ | <FieldNumber> </FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
<RetryTimes> 0</RetryTimes> | <RetryTimes> 0</RetryTimes> | ||
<RetryDelay> 0</RetryDelay> | <RetryDelay> 0</RetryDelay> | ||
行 43: | 行 238: | ||
</i2> | </i2> | ||
<i3> | <i3> | ||
− | <Content> | + | <Content>01:RUN</Content> |
− | <Description> | + | <Description>P3 command</Description> |
</i3> | </i3> | ||
<i4> | <i4> | ||
− | <Content> | + | <Content>PITTS_ScripEditor.exe</Content> |
− | <Description> | + | <Description>P4 FileName</Description> |
</i4> | </i4> | ||
<i5> | <i5> | ||
− | <Content> | + | <Content></Content> |
− | <Description> | + | <Description>P5 parameter</Description> |
</i5> | </i5> | ||
<i6> | <i6> | ||
− | <Content> | + | <Content></Content> |
− | <Description> | + | <Description>P6 Path</Description> |
</i6> | </i6> | ||
<i7> | <i7> | ||
<Content></Content> | <Content></Content> | ||
− | <Description> | + | <Description>P7 show</Description> |
</i7> | </i7> | ||
<i8> | <i8> | ||
<Content></Content> | <Content></Content> | ||
− | <Description> | + | <Description>P8</Description> |
</i8> | </i8> | ||
<i9> | <i9> | ||
<Content></Content> | <Content></Content> | ||
− | <Description> | + | <Description>P9</Description> |
</i9> | </i9> | ||
<i10> | <i10> | ||
+ | <Content>1</Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> 04:check EXIT</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> return</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> | <Content></Content> | ||
− | <Description> | + | <Description>Max</Description> |
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>04:check EXIT</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content></Content> | ||
+ | <Description>P4 ClassName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>Test Scrip Editor</Content> | ||
+ | <Description>P5 WindowName</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> exit Test Scrip Editor</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</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>02:EXIT AP</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content></Content> | ||
+ | <Description>P4 ClassName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>Test Scrip Editor</Content> | ||
+ | <Description>P5 WindowName</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content>debug</Content> | ||
+ | <Description>Value10</Description> | ||
</i10> | </i10> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</Parameter> | </Parameter> | ||
− | </Item> | + | </Item> |
|} | |} | ||
+ | '''腳本範例 05: run cmd command to copy, delete file. ''' | ||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ||
+ | |- | ||
+ | | | ||
+ | |||
+ | <Item> | ||
+ | <Text> dos cmd test</Text> | ||
+ | <Description> </Description> | ||
+ | <ItemType> 1</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <SubItem> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN dos copy</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</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>03:RUN DOS AP</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>cmd.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>/c copy c:\Windows\system.ini c:\aaa\systemini.bak</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN dos del cmd</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</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>03:RUN DOS AP</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>cmd.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>/c del c:\aaa\systemini.bak</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | </SubItem> | ||
+ | </Item> | ||
+ | |||
+ | |} | ||
'''ITTS example:''' | '''ITTS example:''' | ||
[[檔案:Parse key XE10 example.itts]] | [[檔案:Parse key XE10 example.itts]] |
於 2024年11月29日 (五) 15:30 的最新修訂
ITTS_RUN_AP.dll 功能:[編輯]
這些功能 要在 版本 4.11.20.1 之後的版本 才能保證運行
- 01:RUN
- 02:Stop exit
- 03:Run DOS AP
- 13:Run DOS AP and store the result in the file
- 04:Check application ( check Exit or not in process (already running or not))
腳本範例 01: open www.google.com
Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> RUN www</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</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>01:RUN</Content> <Description>P3 command</Description> </i3> <i4> <Content>www.google.com</Content> <Description>P4 FileName</Description> </i4> <i5> <Content></Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content>9</Content> <Description>P7 show</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>1</Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
腳本範例 02: 01 use notepad.exe to open C:\WINDOWS\SYSTEM.INI
Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> RUN note pad</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> res</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>01:RUN</Content> <Description>P3 command</Description> </i3> <i4> <Content>notepad.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>C:\WINDOWS\SYSTEM.INI</Content> <Description>P5 parameter</Description> </i5> <i6> <Content>C:\WINDOWS\</Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>debug</Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
腳本範例 03: 13 Check Python version
Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> run python</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> ans0;ans1;</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>13:RUN DOS AP and get result</Content> <Description>P3 command</Description> </i3> <i4> <Content>python.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>--version</Content> <Description>P5 parameter</Description> </i5> <i6> <Content>['&testplanpath'+"result.txt"]</Content> <Description>P6 Output File Name</Description> </i6> <i7> <Content></Content> <Description>P8</Description> </i7> <i8> <Content>['d:\python311']</Content> <Description>P9 work path</Description> </i8> <i9> <Content>debug</Content> <Description>Value10</Description> </i9> </Parameter> </Item> |
腳本範例 04:03 04 02 run PITTS_scripEditor.exe, check exist , close...
Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> RUN PITTS_ScripEditor.exe</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</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>01:RUN</Content> <Description>P3 command</Description> </i3> <i4> <Content>PITTS_ScripEditor.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content></Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7 show</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>1</Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> 04:check EXIT</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> return</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>04:check EXIT</Content> <Description>P3 command</Description> </i3> <i4> <Content></Content> <Description>P4 ClassName</Description> </i4> <i5> <Content>Test Scrip Editor</Content> <Description>P5 WindowName</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> exit Test Scrip Editor</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</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>02:EXIT AP</Content> <Description>P3 command</Description> </i3> <i4> <Content></Content> <Description>P4 ClassName</Description> </i4> <i5> <Content>Test Scrip Editor</Content> <Description>P5 WindowName</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>debug</Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
腳本範例 05: run cmd command to copy, delete file.
Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> dos cmd test</Text> <Description> </Description> <ItemType> 1</ItemType> <Skip> 1</Skip> <SubItem> <Item> <Text> </Text> <Description> RUN dos copy</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</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>03:RUN DOS AP</Content> <Description>P3 command</Description> </i3> <i4> <Content>cmd.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>/c copy c:\Windows\system.ini c:\aaa\systemini.bak</Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> RUN dos del cmd</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</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>03:RUN DOS AP</Content> <Description>P3 command</Description> </i3> <i4> <Content>cmd.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>/c del c:\aaa\systemini.bak</Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> </SubItem> </Item> |
ITTS example: 檔案:Parse key XE10 example.itts