The invention discloses a method and frame system for establishing a multi-platform-supporting automatic testing script. The method includes the steps that firstly, the testing script capable of being compatible with multiple platforms; secondly, before multiple platforms are test, whether an example layer and/or any keyword layer of the testing script are/is required to be modified or not is judged, and when the example layer and/or any keyword layer of the testing script are/is required to be modified, the example layer and/or any keyword layer are/is modified; finally, in the testing process of the multiple platforms, whether testing faults exist in any platform or not is judged, and when testing faults exist in any platform, at least one corresponding page element is modified, and the modified testing script is adopted for testing in the platform. The method and frame system are compared with the prior art, the reusability of the testing script is increased, new increasing of automatic testing persons is convenient, testing examples are maintained, and the labor cost is reduced.