The invention discloses a testing device and method for gas-containing soil sample consolidation tests and penetration tests. The testing device comprises a base, a middle ring is connected with the top of the base, an upper ring is mounted at the top of the middle ring, a rubber water bag is arranged at the lower part of the middle ring, a water injection
pipe is mounted outside the middle ring,a three-way valve A is communicated with the water injection
pipe and communicated with a water inlet
pipe and a water outlet pipe, and a
pressure sensor B is mounted on the water outlet pipe; a waterflow channel B and a
water flow channel C are formed in the middle of the middle ring, a
pressure sensor A is connected at the
water flow channel B in a closed manner, the
water flow channel C is communicated with a three-way valve B through a pipeline A, and the three-way valve B is communicated with a flow measuring pipe and a
water supply device through pipelines; a
piston is mounted in the upper ring, a
top cap is mounted at the top of the
piston, and a drain pipeline is formed in the lower part of the
top cap and communicated with a liquid metering pipe through a pipeline B; an
exhaust pipe is arranged at the top of the
top cap. The testing device is suitable for gas-containing soil penetration and consolidation tests, has the advantages of novel structure, lower cost and the like and improves the measurement accuracy of tests.