An air conditioner comprising: an indoor device that is controlled by a remote controller; and an outdoor device that is connected to the indoor device, wherein the outdoor device includes an outdoor-device state-quantity acquisition unit (52, 53) that acquires an outdoor-device state quantity indicating a state quantity of a component included in the outdoor device, the state quantity being acquired during maintenance and during a test run wherein at first the indoor device and the outdoor device are turned on and the maintenance and test run operation mode is set with the remote controller, and after the end of the maintenance and test run operation mode, the operation mode is switched to a normal operation mode, and the indoor device includes an indoor-device state-quantity acquisition unit that acquires an indoor-device state quantity indicating a state quantity of a component included in the indoor device, the state quantity being acquired during the maintenance and during the test run, and a storage unit that stores therein the outdoor-device state quantity and the indoor-device state quantity comprising data that includes the temperatures of heat exchangers (10, 51) provided in the indoor device and in the outdoor device, the current consumption by a compressor in the outdoor device and the like in the maintenance and test operation mode, and when a system abnormality occurs in a normal operation mode, reads out the outdoor-device state quantity and the indoor-device state quantity that are acquired during the test run and stored therein. an indoor device that is controlled by a remote controller; and an outdoor device that is connected to the indoor device, wherein the outdoor device includes an outdoor-device state-quantity acquisition unit (52, 53) that acquires an outdoor-device state quantity indicating a state quantity of a component included in the outdoor device, the state quantity being acquired during maintenance and during a test run wherein at first the indoor device and the outdoor device are turned on and the maintenance and test run operation mode is set with the remote controller, and after the end of the maintenance and test run operation mode, the operation mode is switched to a normal operation mode, and the indoor device includes an indoor-device state-quantity acquisition unit that acquires an indoor-device state quantity indicating a state quantity of a component included in the indoor device, the state quantity being acquired during the maintenance and during the test run, and a storage unit that stores therein the outdoor-device state quantity and the indoor-device state quantity comprising data that includes the temperatures of heat exchangers (10, 51) provided in the indoor device and in the outdoor device, the current consumption by a compressor in the outdoor device and the like in the maintenance and test operation mode, and when a system abnormality occurs in a normal operation mode, reads out the outdoor-device state quantity and the indoor-device state quantity that are acquired during the test run and stored therein. the outdoor device includes an outdoor-device state-quantity acquisition unit (52, 53) that acquires an outdoor-device state quantity indicating a state quantity of a component included in the outdoor device, the state quantity being acquired during maintenance and during a test run wherein at first the indoor device and the outdoor device are turned on and the maintenance and test run operation mode is set with the remote controller, and after the end of the maintenance and test run operation mode, the operation mode is switched to a normal operation mode, and the indoor device includes an indoor-device state-quantity acquisition unit that acquires an indoor-device state quantity indicating a state quantity of a component included in the indoor device, the state quantity being acquired during the maintenance and during the test run, and a storage unit that stores therein the outdoor-device state quantity and the indoor-device state quantity comprising data that includes the temperatures of heat exchangers (10, 51) provided in the indoor device and in the outdoor device, the current consumption by a compressor in the outdoor device and the like in the maintenance and test operation mode, and when a system abnormality occurs in a normal operation mode, reads out the outdoor-device state quantity and the indoor-device state quantity that are acquired during the test run and stored therein.