In modern English:
The testament dative and inventory of the goods and gear, sums of money and debts pertaining to the late Agnes Gray, spouse to John Sleigh, bailie of Haddington, the time of her decease, who deceased upon the second day of February 1663 years instant, faithfully made and given up by the said John Sleigh only executor dative surrogate to the said late deceased in place of the procurator fiscal by decree of the commissary of Edinburgh as the same of the date the 6th day of May 1663 years bears.
In the first, the said late Agnes Gray and her said husband had the goods and gear following, of the values and prices aftermentioned pertaining to them the time of the decease foresaid viz. Firstly lying beside of them of bere (a kind of barley) 20 bolls at ten marks the boll, hence £200; Item, of malt forty bolls at £8 the boll, hence £320; Item, more there, 10 bolls wheat at £8 the boll, total £80; Item the insicht and plenishing (= contents and furnishings) of their dwelling house with the abulziements (= clothing) of her body by the heirship estimated all in total to the sum of 200 marks money foresaid.
Total of the Inventory £733 6/8d
Follows the debts owing to the dead.
Item, there was resting owing to the said late deceased and her husband the time of her decease foresaid by the persons following the debts and sums of money underwritten, to wit, by the Viscount of Kingston in conformance with his bond of principal an annualrent the sum of £946; Item, by the laird of Hermiston by bond 2,000 marks; by George Forrest in conformance with his bond the sum of 500 marks; Item, by Mr John Hay of Aberlady the sum of £200; Item, by James [Fryth?] in Dirleton the sum of another £200; Item, by James Home of the sum of £129; Item, by John Warrender £133 6/8d; by Andrew Gray £66 13/4d; Item, by George Cowing in Ferniegate the sum of £66 13/4d; by James Ridington, by bond, £266 13/4d; by Alexander Smith in Wauchton £200; by Alexander Miller in the Grange other £200.
Total of the debts owing to the deceased £4,275 13/-
Total of the inventory with the debts £5,008 6/8d
Follows the debts owing by the deceased.
Item, there was resting owing by the said late Agnes Gray and her said husband the time of her decease foresaid; to John Sleigh his eldest son the sum of 5,000 marks Scots money foresaid; to George Sleigh his said second son 1,000 marks money foresaid; to William Lamb, his son-in-law, the sum of another 1,000 marks money above-specified.
Total of the debts owing by the deceased £4,666 13/4d
Rests of free gear, the debts deducted, £336 13/4d
To be divided in deid’s pairts (dead’s part = the third part of an estate, which the deceased can leave as they will) £168 6/8d
Sir John Nisbet understanding we decerned in conformance with which John Sleigh younger, burgess of Haddington becomes cautioner as an act bears
This is a testament dative, i.e. Agnes Gray died without making a will and the commissary has confirmed her husband as executor. If you make a will and nominate your own executor, the document is called a testament testamentar. Agnes's son, John Sleigh younger, is cautioner, i.e. is financially responsible if his father, the executor, mishandles affairs. Genealogically, you have the exact date of Agnes's death, the name of her husband, two sons, and her son-in-law.