- I'm doing API testing using Jmeter3.1. [im junior tester and new]
- I have a test where i have to send an xml in request iteratively. with each iteration a different xml block is added in original xml. This xml block will be further evaluated by the recieving system and values will be stored in DB. This will be stored in form of Hash-256 in db tables. Now i need to :
[A] - first calculate the Hash256 for this block of xml for each request.[*see yellow highlighted part in image]
[B]- then secondly compare it after logging into the DB using jdbc sampler. [for this part i will get a query from developers.] But i dont understand how to calculate the hash-256 for just the block of xml code and not the complete xml. please see example below- in the image- the yellow background xml block i need to convert to hash-256 and then compare with db
<?xml version="1.0" encoding="UTF-8" ?><r:Document SchemaVersion="1.0" xmlns:r="http://www.qqq.ddqn.qqqv.qe/XSD/qq9/qqSchema" Status="000">
<r:DateTime>2020-09-02T09:28:15</r:DateTime> <r:FileInfo Language="nl"><r:cSecurityNumbers><r:Legal Type="200" Structure="A1">
<r:Date><r:Century>20</r:Century>
<r:Year>20</r:Year>
<r:Month>09</r:Month>
<r:Day>21</r:Day>
</r:Date>
<r:Legal>06999996</r:Legal></r:Legal><r:Legal Type="200" Structure="A1">
<r:Date>
<r:Century>20</r:Century>
<r:Year>20</r:Year>
<r:Month>12</r:Month>
<r:Day>1</r:Day>
</r:Date>
<r:Legal>06999996</r:Legal></r:Legal><r:Legal Type="200" Structure="A1">
<r:Date>
<r:Century>20</r:Century>
<r:Year>20</r:Year>
<r:Month>11</r:Month>
<r:Day>3</r:Day>
</r:Date>
<r:Legal>06999996</r:Legal></r:Legal></r:cSecurityNumbers></r:FileInfo Language="nl"></r:Document>