Skip to main content
. 2020 Apr 5;20(7):2040. doi: 10.3390/s20072040
Algorithm 2: Complete Test Case Generation Algorithm
input: Y^i←generated PDU message
output: Y^i←complete test case
  • (1)

    unithex(random.Int(0,255)) ▽ decimal to hex

  • (2)

    lengthhex(len(Y^i)+1)

  • (3)

    transaction_ID hex(random.Int(0,65535))

  • (4)

    protocol_IDhex(0)

  • (5)

    Y^i(transaction_ID, protocol_ID, length, unit,Y^i)