A detection method for pipelines in machine-controlled leakage and compliance tests of an anesthetic machine, comprising the following steps: step S10, entering a machine control leakage test and compliance test state of an anesthetic machine step S20, the anesthetic machine piping air in an air passage outside a folding bag (6) according to a preset flow rate, and a control unit also controlling and detecting a pressure value in the air passage and the air piping time at the same time step S30, the control unit acquiring the pressure value in the air passage and the air piping time, and a judgment unit judging whether a condition for the anesthetic machine to stop piping air is achieved or not according to the pressure value in the air passage and the air piping time step S40, according to the pressure value in the air passage and the air piping time, obtaining a pressure change rate in the air passage in the whole air piping process and step S50, according to the pressure change rate, judging whether pipelines in leakage and compliance tests are correctly connected or not. Whether pipelines in leakage and compliance tests are correctly connected or not can be learned with the method, thereby avoiding test errors resulting from pipeline connections. Also provided is a detection device for achieving the detection method.Linvention concerne un procédé de détection pour conduits dans des tests de conformité et détanchéité contrôlés par machine dune machine anesthésique, comprenant les étapes suivantes: étape S10, entrée dans un état de test de conformité et de test détanchéité contrôlées par machine dune machine anesthésique étape S20, conduite de lair, par la machine anesthésique, dans un passage dair à lextérieur dun sac repliable (6) en fonction dun débit présélectionné, et commande et détection, par une unité de commande, dune valeur de pression dans le passage dair et du temps de conduite dair dans le même temps étape S30, acquisition, par lunité de commande, de