The invention discloses an
automatic testing method and
system, and relates to the technical field of
software testing. The test method comprises the following steps: establishing communication connection between a script end and a
client; the script end compiles an SDK interface automatic
test case, packages the SDK interface automatic
test case and related information into request information in a
Json format, and sends the request information to the
client; the
client side receives the request information transmitted by the script side, analyzes the request information and determines calling information; the analyzed request information is converted based on the calling information, so that the analyzed request information conforms to the native
language type corresponding to the
client side; performing SDK interface testing based on the converted request information and calling information, packaging test result data into a
Json format, and returning the test result data to the script end; and the script end receives the test result data which is returned by the client and is packaged into the
Json format, and generates a corresponding
test report according to the test result data.