If the contest is of an election to the office of judge of the circuit court or of the district court, the party contesting must file in the office of the judge of probate of the county of the residence of the person declared elected, a statement in writing of the grounds of contest, verified by affidavit, as prescribed in this article, and must give good and sufficient security for the costs of the contest, to be approved by the judge of probate. On the filing of the statement and the giving of the security, the judge of probate must endorse thereon an order appointing a day for the trial of the contest, not less than 30 nor more than 50 days from the day of the reception of the certified statement and fixing the place of trial, which must be at some place in the circuit or district in which the election was held, and where a circuit or district court is required to be held, and must issue a summons directed to the person whose election is contested, accompanied with a certified copy of the statement requiring the person to appear within 10 days after the service of the summons and make answer to the statement, which summons shall be served by the sheriff or a constable at least 20 days before the day appointed for the trial. The testimony must be taken by deposition, as is prescribed in Section 17-16-55.
Ala. Code § 17-16-54 (1975)