The affidavit may be made before the officer having the property, and he shall make return of it and of the bond, if any, and the attachment papers, and summon the other party, as required in case of a replevin by the tenant; and the claimant replevying the property shall prosecute his suit against the party in whose name or right it was attached, in all respects as the tenant is required to do; and the pleadings and proceedings shall be conformed so as to present the proper issues.