SOFC/SOEC solid oxide fuel cell power generation and hydrogen production test system, with a complete fuel gas supply scheme and gas treatment analysis scheme, as well as two-way DC electronic load and AC electronic load.