ITTS Scrip:DLL load

出自ITTS
於 2020年10月28日 (三) 14:53 由 Vincentcheng2116討論 | 貢獻 所做的修訂
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

DLL Load[編輯]

Load DLL ( Dynamic Link Library) in order to perform a test just like the way in FT

Min: DLL minimum version requirement
Max:DLL maximum version requirement

if DLL version =1.0.0.1 system will translate to ==>01000001
if DLL version =2.1.3.4 system will translate to ==>02010304

Examole:

Dll name field could be a smart format For example: ['&TestPlanPath'+"ITTS_HASH.DLL"]

example: ITTS_RUN_AP.dll

    <Item> 
      <Text> </Text> 
      <Description> ITTS_RUN_AP.dll</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> DLL</ItemSection1> 
      <ItemSection2> Load</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>01000003</Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content>9999999999</Content>
          <Description>Max</Description>
        </i2>
      </Parameter> 
    </Item> 


example: UTS_Drivers.dll

    <Item> 
      <Text> </Text> 
      <Description> Load UTS_Drivers</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> DLL</ItemSection1> 
      <ItemSection2> Load</ItemSection2> 
      <ItemCommand> .\UTS_Drivers\UTS_Drivers.dll</ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content>01000108</Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content>99999999</Content>
          <Description>Max</Description>
        </i2>
      </Parameter> 
    </Item> 


example: ITTS_MD5.dll

    <Item> 
      <Text> </Text> 
      <Description> Load ITTS_MD5.dll</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> DLL</ItemSection1> 
      <ItemSection2> Load</ItemSection2> 
      <ItemCommand> d:\data\Delphi\myproj\itts\dll\ITTS_MD5_XE10\ITTS_MD5.dll</ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content>01000000</Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content>2099123199</Content>
          <Description>Max</Description>
        </i2>
      </Parameter> 
    </Item>

[ITTS_Scrip_Command]