The invention relates to a method for automatically recognizing a working
station and executing a corresponding script. The method for automatically recognizing the working
station and executing the corresponding script comprises the following steps: firstly, establishing a working
station state databank at a testing
server, and defining status bits for different working stations; adding a working station status bit updating instruction to last rows of different working station testing scripts, and uploading to the testing
server; and finally, establishing a detection script, enabling a
machine to be tested to automatically enter the detection script after being powered on, finding a corresponding SN (Serial Number) according to an MAC (
Media Access Control) address, finding a corresponding working station status bit, and automatically calling a testing script of a corresponding working station according to a defined correspondence relationship. By adopting the method for automatically recognizing the working station and executing the corresponding script, operator interference is eliminated, and a working station needing operator interference can receive instructions of next operation, so that the time for powering on and restating a
machine can be shortened for an operator, the labor cost can be lowered, and the production efficiency can be improved.