Fish-like robot is a special autonomous underwater vehicle with broad application prospects. Some previous studies concentrated on the hydrodynamics of free-swimming fish-like robots. But the hydrodynamic performance of fish-like robot swimming with a tilt angle in constrained space has not been well studied, and the influence of environmental wave and current on its is also still unclear. In this paper, the experiment devices, including a physical fish-like robot, a hydrodynamics measurement platform, and a six-axis force sensor, are used to study the effect of attack angle and environmental condition on the hydrodynamics of near-surface swimming fish-like robot. Nine attack angles, five oscillating amplitudes, and three environmental conditions are analyzed in the experiments. It shows that thrust force decreases when caudal fin passes above water surface, but the increased difference between gravity force and buoyancy force will compensate the decreased force generated by caudal fin when fish-like robot swims with certain dive angle. The extra reaction force generated by solid bottom boundary will promote the thrust force and vertical force. The surface water wave condition or surface water current condition also has obvious effects on hydrodynamic performance. This paper provides a new perspective to the research on the hydrodynamic performance of fish-like robot and will do favor in the development of fish-like robot.