The embodiment of the invention provides a
program code variation testing method and device, and the method comprises the steps: obtaining the business scene information of a to-be-tested
program code, enabling the business scene information to be the operation logic information of a user when the business service is provided for the user based on the
program code, carrying out the recognition
processing of the business scene information, obtaining at least one variant, and transmitting the at least one variant to a
server; a
test case set is generated according to the variants, the
test case set comprises a plurality of test cases, each
test case has a case number, the test cases in the test case set are sequentially executed according to the sequence of the case numbers, and test results corresponding to the test cases are generated. According to the method and the device, the variation test results of the program codes are determined on the basis of the test results, diversity and flexibility of variation tests are improved, variation tests are performed in combination with the
view angle of the user, the variation test results can better meet the requirements of the user, and therefore user experience is improved.