<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

      https://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
  -->
<test:driver-testsuite xmlns:test="https://plc4x.apache.org/schemas/driver-testsuite.xsd"
                       byteOrder="LITTLE_ENDIAN">

  <name>Beckhoff ADS/AMS</name>

  <protocolName>ads</protocolName>
  <outputFlavor>read-write</outputFlavor>

  <driver-name>ads</driver-name>
  <driver-parameters>
    <parameter>
      <name>sourceAmsNetId</name>
      <value>192.168.23.200.1.1</value>
    </parameter>
    <parameter>
      <name>sourceAmsPort</name>
      <value>48898</value>
    </parameter>
    <parameter>
      <name>targetAmsNetId</name>
      <value>192.168.23.20.1.1</value>
    </parameter>
    <parameter>
      <name>targetAmsPort</name>
      <value>48898</value>
    </parameter>
  </driver-parameters>

  <testcase>
    <name>Single element direct read request</name>
    <description>
      When doing a simple read request with only a single direct address, the
      request should be answered directly.
    </description>
    <steps>
      <api-request name="Receive Read Request from application">
        <TestReadRequest>
          <fields>
            <field className="org.apache.plc4x.test.driver.internal.api.TestField">
              <name>hurz</name>
              <address>00004040/00000008:BOOL</address>
            </field>
          </fields>
        </TestReadRequest>
      </api-request>
      <outgoing-plc-message name="Send Ads Read Request">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <AdsReadRequest>
                <indexGroup dataType="uint" bitLength="32">61455</indexGroup>
                <indexOffset dataType="uint" bitLength="32">0</indexOffset>
                <length dataType="uint" bitLength="32">24</length>
              </AdsReadRequest>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </outgoing-plc-message>
      <incoming-plc-message name="Receive Ads Read Response">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">41</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">9</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <data>
                <AdsData>
                  <AdsReadResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">1</length>
                    <data dataType="byte" bitLength="8">0x01</data>
                  </AdsReadResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </incoming-plc-message>
      <api-response name="Report Read Response to application">
        <PlcReadResponse>
          <PlcReadRequest>
            <fields>
              <hurz>
                <DirectAdsField>
                  <indexGroup dataType="uint" bitLength="32">4040</indexGroup>
                  <indexOffset dataType="uint" bitLength="32">8</indexOffset>
                  <numberOfElements dataType="uint" bitLength="32">1</numberOfElements>
                  <dataType dataType="string" bitLength="32" encoding="UTF-8">BOOL</dataType>
                </DirectAdsField>
              </hurz>
            </fields>
          </PlcReadRequest>
          <values>
            <hurz>
              <ResponseItem>
                <result dataType="string" bitLength="16" encoding="UTF-8">OK</result>
                <PlcBOOL dataType="bit" bitLength="1">true</PlcBOOL>
              </ResponseItem>
            </hurz>
          </values>
        </PlcReadResponse>
      </api-response>
      <delay>1000</delay>
    </steps>
  </testcase>

  <testcase>
    <name>Multi-element direct read request</name>
    <description>
      When doing a simple read request with only direct addresses, but multiple
      ones, the unofficial multi-read method should be used to read all in one go.
    </description>
    <steps>
      <api-request name="Receive Read Request from application">
        <TestReadRequest>
          <fields>
            <field className="org.apache.plc4x.test.driver.internal.api.TestField">
              <name>hurz1</name>
              <address>00004040/00000008:BOOL</address>
            </field>
            <field className="org.apache.plc4x.test.driver.internal.api.TestField">
              <name>hurz2</name>
              <address>00004040/00000012:BOOL</address>
            </field>
          </fields>
        </TestReadRequest>
      </api-request>
      <outgoing-plc-message name="Send Ads Read Request">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <AdsReadRequest>
                <indexGroup dataType="uint" bitLength="32">61455</indexGroup>
                <indexOffset dataType="uint" bitLength="32">0</indexOffset>
                <length dataType="uint" bitLength="32">24</length>
              </AdsReadRequest>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>

      </outgoing-plc-message>
      <incoming-plc-message name="Receive Ads Read Response">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">50</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ_WRITE">9</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">18</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <data>
                <AdsData>
                  <AdsReadWriteResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">10</length>
                    <data dataType="byte" bitLength="80">0x00000000000000000101</data>
                  </AdsReadWriteResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </incoming-plc-message>
      <api-response name="Report Read Response to application">
        <PlcReadResponse>
          <PlcReadRequest>
            <fields>
              <hurz1>
                <DirectAdsField>
                  <indexGroup dataType="uint" bitLength="32">4040</indexGroup>
                  <indexOffset dataType="uint" bitLength="32">8</indexOffset>
                  <numberOfElements dataType="uint" bitLength="32">1</numberOfElements>
                  <dataType dataType="string" bitLength="32" encoding="UTF-8">BOOL</dataType>
                </DirectAdsField>
              </hurz1>
              <hurz2>
                <DirectAdsField>
                  <indexGroup dataType="uint" bitLength="32">4040</indexGroup>
                  <indexOffset dataType="uint" bitLength="32">12</indexOffset>
                  <numberOfElements dataType="uint" bitLength="32">1</numberOfElements>
                  <dataType dataType="string" bitLength="32" encoding="UTF-8">BOOL</dataType>
                </DirectAdsField>
              </hurz2>
            </fields>
          </PlcReadRequest>
          <values>
            <hurz1>
              <ResponseItem>
                <result dataType="string" bitLength="16" encoding="UTF-8">OK</result>
                <PlcBOOL dataType="bit" bitLength="1">true</PlcBOOL>
              </ResponseItem>
            </hurz1>
            <hurz2>
              <ResponseItem>
                <result dataType="string" bitLength="16" encoding="UTF-8">OK</result>
                <PlcBOOL dataType="bit" bitLength="1">true</PlcBOOL>
              </ResponseItem>
            </hurz2>
          </values>
        </PlcReadResponse>
      </api-response>
      <delay>1000</delay>
    </steps>
  </testcase>

  <testcase>
    <name>Single element symbolic read request</name>
    <description>
      When doing a simple read request with only a single symbolic address, which has not
      been resolved previously, first a resolution request has to be issued and the data
      from the response should be used in a second request to actually read the data.
    </description>
    <steps>
      <api-request name="Receive Read Request from application">
        <TestReadRequest>
          <fields>
            <field className="org.apache.plc4x.test.driver.internal.api.TestField">
              <name>hurz1</name>
              <address>main.f_trigDateiGelesen.M:BOOL</address>
            </field>
          </fields>
        </TestReadRequest>
      </api-request>
      <outgoing-plc-message name="Send Resolve Symbolic Address Request">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <AdsReadRequest>
                <indexGroup dataType="uint" bitLength="32">61455</indexGroup>
                <indexOffset dataType="uint" bitLength="32">0</indexOffset>
                <length dataType="uint" bitLength="32">24</length>
              </AdsReadRequest>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </outgoing-plc-message>
      <incoming-plc-message name="Receive Resolve Symbolic Address Response">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ_WRITE">9</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <data>
                <AdsData>
                  <AdsReadWriteResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">4</length>
                    <data dataType="byte" bitLength="32">0x0100801b</data>
                  </AdsReadWriteResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </incoming-plc-message>
      <outgoing-plc-message name="Send Ads Read Request">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">2</invokeId>
              <data>
                <AdsData>
                  <AdsReadRequest>
                    <indexGroup dataType="uint" bitLength="32">61445</indexGroup>
                    <indexOffset dataType="uint" bitLength="32">461373441</indexOffset>
                    <length dataType="uint" bitLength="32">1</length>
                  </AdsReadRequest>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </outgoing-plc-message>
      <incoming-plc-message name="Receive Ads Read Response">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">50</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">18</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">2</invokeId>
              <data>
                <AdsData>
                  <AdsReadResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">10</length>
                    <data dataType="byte" bitLength="80">0x00000000000000000101</data>
                  </AdsReadResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </incoming-plc-message>
      <api-response name="Report Read Response to application">
        <PlcReadResponse>
          <PlcReadRequest>
            <fields>
              <hurz1>
                <SymbolicAdsField>
                  <symbolicAddress dataType="string" bitLength="200" encoding="UTF-8">main.f_trigDateiGelesen.M</symbolicAddress>
                  <numberOfElements dataType="uint" bitLength="32">1</numberOfElements>
                  <dataType dataType="string" bitLength="32" encoding="UTF-8">BOOL</dataType>
                </SymbolicAdsField>
              </hurz1>
            </fields>
          </PlcReadRequest>
          <values>
            <hurz1>
              <ResponseItem>
                <result dataType="string" bitLength="16" encoding="UTF-8">OK</result>
                <PlcBOOL dataType="bit" bitLength="1">false</PlcBOOL>
              </ResponseItem>
            </hurz1>
          </values>
        </PlcReadResponse>
      </api-response>
    </steps>
  </testcase>

  <testcase>
    <name>Single element symbolic read request (Address previously resolved)</name>
    <description>
      When doing a simple read request with only a single symbolic address, which has
      been resolved previously, the data from the previous request should be used directly
      without re-resolving it.
    </description>
    <steps>
      <api-request name="Receive Read Request from application">
        <TestReadRequest>
          <fields>
            <field className="org.apache.plc4x.test.driver.internal.api.TestField">
              <name>hurz1</name>
              <address>main.f_trigDateiGelesen.M:BOOL</address>
            </field>
          </fields>
        </TestReadRequest>
      </api-request>
      <outgoing-plc-message name="Send Resolve Symbolic Address Request">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <AdsReadRequest>
                <indexGroup dataType="uint" bitLength="32">61455</indexGroup>
                <indexOffset dataType="uint" bitLength="32">0</indexOffset>
                <length dataType="uint" bitLength="32">24</length>
              </AdsReadRequest>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </outgoing-plc-message>
      <incoming-plc-message name="Receive Resolve Symbolic Address Response">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ_WRITE">9</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">1</invokeId>
              <data>
                <AdsData>
                  <AdsReadWriteResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">4</length>
                    <data dataType="byte" bitLength="32">0x0100801b</data>
                  </AdsReadWriteResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </incoming-plc-message>
      <outgoing-plc-message name="Send Ads Read Request">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">2</invokeId>
              <data>
                <AdsData>
                  <AdsReadRequest>
                    <indexGroup dataType="uint" bitLength="32">61445</indexGroup>
                    <indexOffset dataType="uint" bitLength="32">461373441</indexOffset>
                    <length dataType="uint" bitLength="32">1</length>
                  </AdsReadRequest>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>

      </outgoing-plc-message>
      <incoming-plc-message name="Receive Ads Read Response">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">50</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">18</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">2</invokeId>
              <data>
                <AdsData>
                  <AdsReadResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">10</length>
                    <data dataType="byte" bitLength="80">0x00000000000000000101</data>
                  </AdsReadResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>

      </incoming-plc-message>
      <api-response name="Report Read Response to application">
        <PlcReadResponse>
          <PlcReadRequest>
            <fields>
              <hurz1>
                <SymbolicAdsField>
                  <symbolicAddress dataType="string" bitLength="200" encoding="UTF-8">main.f_trigDateiGelesen.M</symbolicAddress>
                  <numberOfElements dataType="uint" bitLength="32">1</numberOfElements>
                  <dataType dataType="string" bitLength="32" encoding="UTF-8">BOOL</dataType>
                </SymbolicAdsField>
              </hurz1>
            </fields>
          </PlcReadRequest>
          <values>
            <hurz1>
              <ResponseItem>
                <result dataType="string" bitLength="16" encoding="UTF-8">OK</result>
                <PlcBOOL dataType="bit" bitLength="1">false</PlcBOOL>
              </ResponseItem>
            </hurz1>
          </values>
        </PlcReadResponse>
      </api-response>
      <delay>500</delay>
      <api-request name="Receive a second Read Request for the same resource from application">
        <TestReadRequest>
          <fields>
            <field className="org.apache.plc4x.test.driver.internal.api.TestField">
              <name>hurz1</name>
              <address>main.f_trigDateiGelesen.M:BOOL</address>
            </field>
          </fields>
        </TestReadRequest>
      </api-request>
      <outgoing-plc-message name="Send Ads Read Request directly using the preciously resolved address">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">44</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">false</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">12</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">3</invokeId>
              <data>
                <AdsData>
                  <AdsReadRequest>
                    <indexGroup dataType="uint" bitLength="32">61445</indexGroup>
                    <indexOffset dataType="uint" bitLength="32">461373441</indexOffset>
                    <length dataType="uint" bitLength="32">1</length>
                  </AdsReadRequest>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </outgoing-plc-message>
      <incoming-plc-message name="Receive Ads Read Response again">
        <AmsTCPPacket>
          <reserved dataType="uint" bitLength="16">0</reserved>
          <length dataType="uint" bitLength="32">50</length>
          <userdata>
            <AmsPacket>
              <targetAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">200</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </targetAmsNetId>
              <targetAmsPort dataType="uint" bitLength="16">48898</targetAmsPort>
              <sourceAmsNetId>
                <AmsNetId>
                  <octet1 dataType="uint" bitLength="8">192</octet1>
                  <octet2 dataType="uint" bitLength="8">168</octet2>
                  <octet3 dataType="uint" bitLength="8">23</octet3>
                  <octet4 dataType="uint" bitLength="8">20</octet4>
                  <octet5 dataType="uint" bitLength="8">1</octet5>
                  <octet6 dataType="uint" bitLength="8">1</octet6>
                </AmsNetId>
              </sourceAmsNetId>
              <sourceAmsPort dataType="uint" bitLength="16">48898</sourceAmsPort>
              <commandId>
                <CommandId dataType="uint" bitLength="16" stringRepresentation="ADS_READ">2</CommandId>
              </commandId>
              <initCommand dataType="bit" bitLength="1">false</initCommand>
              <updCommand dataType="bit" bitLength="1">false</updCommand>
              <timestampAdded dataType="bit" bitLength="1">false</timestampAdded>
              <highPriorityCommand dataType="bit" bitLength="1">false</highPriorityCommand>
              <systemCommand dataType="bit" bitLength="1">false</systemCommand>
              <adsCommand dataType="bit" bitLength="1">true</adsCommand>
              <noReturn dataType="bit" bitLength="1">false</noReturn>
              <response dataType="bit" bitLength="1">true</response>
              <broadcast dataType="bit" bitLength="1">false</broadcast>
              <reserved dataType="int" bitLength="7">0</reserved>
              <length dataType="uint" bitLength="32">18</length>
              <errorCode dataType="uint" bitLength="32">0</errorCode>
              <invokeId dataType="uint" bitLength="32">3</invokeId>
              <data>
                <AdsData>
                  <AdsReadResponse>
                    <result>
                      <ReturnCode dataType="uint" bitLength="32">0</ReturnCode>
                    </result>
                    <length dataType="uint" bitLength="32">10</length>
                    <data dataType="byte" bitLength="80">0x00000000000000000101</data>
                  </AdsReadResponse>
                </AdsData>
              </data>
            </AmsPacket>
          </userdata>
        </AmsTCPPacket>
      </incoming-plc-message>
      <api-response name="Report Read Response to application again">
        <PlcReadResponse>
          <PlcReadRequest>
            <fields>
              <hurz1>
                <SymbolicAdsField>
                  <symbolicAddress dataType="string" bitLength="200" encoding="UTF-8">main.f_trigDateiGelesen.M</symbolicAddress>
                  <numberOfElements dataType="uint" bitLength="32">1</numberOfElements>
                  <dataType dataType="string" bitLength="32" encoding="UTF-8">BOOL</dataType>
                </SymbolicAdsField>
              </hurz1>
            </fields>
          </PlcReadRequest>
          <values>
            <hurz1>
              <ResponseItem>
                <result dataType="string" bitLength="16" encoding="UTF-8">OK</result>
                <PlcBOOL dataType="bit" bitLength="1">false</PlcBOOL>
              </ResponseItem>
            </hurz1>
          </values>
        </PlcReadResponse>
      </api-response>
    </steps>
  </testcase>

</test:driver-testsuite>
