The invention discloses a confining pressure-controllable testing apparatus and testing method for the lateral friction of rock, belonging to the field of technology for embedding piles in rock in rock
mass mechanics. The apparatus is such structured that a lower cover plate, a pressure chamber and an upper cover plate are successively connected from top to bottom to form an external structure; a base, a backing ring, a
rock sample and a guide
pipe are successively connected from bottom to top to form an internal structure, and a latex film is used to
nest the above-mentioned internal members into an integral body; a through
rock sample circular hole is longitudinally arranged at the center of the
rock sample, threaded rods of a same length are arranged in the rock sample circular hole, gaps are left between the threaded rods and the inner wall of the rock sample circular hole and
cement mortar with high fluidity is poured into the gaps; and a guide rod passes through the guide
pipe and connected with the threaded rods in an up-and-down manner. The apparatus can simulate the failure characteristics of rock-socketed piles and a rock interface and
hydraulic pressure action in a pressure chamber is employed to simulate confining pressure conditions of the piles in an actual rock stratum, so the law that
axial force changes with displacement of the model piles is obtained and the lateral friction of rock is calculated; and the testing apparatus and testing method have unified standards, can be industrially replicated a plurality of times and are applicable to testing of lateral friction of a variety of rock masses.