Search

CN-114579463-B - Copying test method and device, electronic equipment and storage medium

CN114579463BCN 114579463 BCN114579463 BCN 114579463BCN-114579463-B

Abstract

The application discloses a copying test method, which comprises the steps of determining a functional module of target software and interfaces contained in the functional module, arranging and combining the functional module and the interfaces to obtain a plurality of copying test scenes, and executing copying test on the target software under each copying test scene. The application also discloses a copying machine testing device, electronic equipment and a storage medium, which have the beneficial effects.

Inventors

  • SUN YULIN

Assignees

  • 济南博观智能科技有限公司

Dates

Publication Date
20260505
Application Date
20220311

Claims (7)

  1. 1. A method of testing a copying machine, comprising: determining a functional module of target software and an interface contained in the functional module; the functional modules and the interfaces are arranged and combined to obtain a plurality of copying test scenes; executing a copy test on the target software under each copy test scene; executing copy test on the target software under each copy test scene, wherein the copy test comprises the following steps: determining test parameters of the copying test scene, and determining test duration according to the test parameters; the types of the software test versions are divided into four types, namely a main line version with major modification on the whole software function, a main line version with smaller iteration formal version, a temporary version meeting the special requirements of certain clients and a characteristic version with major modification on a certain module in the software version; Setting the copying test unit time and the range of the functional modules for executing the copying test according to the type of the software test version, wherein the copying test is carried out on all the functional modules of the formal version and the main line version, and the copying test is carried out on the modified partial functional modules of the temporary version and the characteristic version; Determining a current batch copying test scene; Distributing a current batch of copying test scenes to a plurality of copying devices so that the copying devices execute copying tests of test duration on the target software in the current batch of copying test scenes, wherein the test duration is calculated according to a preset formula, the preset formula is T=alpha version ×t×M,α version which is a coefficient corresponding to the version of the target software, the size of alpha version >0,α version is positively correlated with the importance of the version, T is copying test unit time, and M is the number of functional modules; judging whether the copying test of all copying devices is executed or not; If yes, determining a new current batch copying test scene, and entering a step of distributing the current batch copying test scene to a plurality of copying devices; before executing the copy test on the target software in each copy test scene, the method further comprises closing a hang dead redraw mechanism, wherein the hang dead redraw mechanism is a mechanism for restarting the target software after the monitoring software detects that the target software is dead.
  2. 2. The copying test method according to claim 1, wherein the arranging and combining the functional module and the interface to obtain a plurality of copying test scenes comprises: selecting a plurality of target function modules from all the function modules; selecting a plurality of target interfaces from interfaces contained in each target functional module, and sequencing the target interfaces to obtain an interface execution sequence; and generating the copying test scene according to the selected target functional module and the interface execution sequence corresponding to the target functional module.
  3. 3. A copying test method according to claim 2, wherein selecting a plurality of target function modules from all of said function modules comprises: Determining the number M of modules, wherein M is more than or equal to 1 and less than or equal to N, and N is the number of all the functional modules; selecting M functional modules from all the functional modules as the target functional modules; correspondingly, selecting a plurality of target interfaces from interfaces contained in each target functional module, and sequencing the target interfaces to obtain an interface execution sequence, wherein the method comprises the following steps: determining the number m of interfaces corresponding to each target functional module, wherein m is more than or equal to 1 and less than or equal to n, and n is the total number of interfaces contained in the target functional modules; and selecting m interfaces from all interfaces of the target functional module as target interfaces, and arranging the target interfaces to obtain an interface execution sequence.
  4. 4. The copy machine test method according to claim 2, further comprising, after generating the copy machine test scene according to the selected target function module and the execution order of the interfaces corresponding to the target function module: judging whether all copying test scenes of the target software are generated or not; If not, the step of selecting a plurality of target function modules from all the function modules is entered.
  5. 5. A copying machine testing device, comprising: the information determining module is used for determining a functional module of the target software and an interface contained in the functional module; the scene generating module is used for arranging and combining the functional module and the interface to obtain a plurality of copying machine test scenes; the test module is used for executing a copying test on the target software under each copying test scene; the test module is used for determining test parameters of the copying test scene and determining test time according to the test parameters, wherein the test parameters comprise versions of target software and/or the number of functional modules contained in the copying test scene, the types of software test versions are divided into four types, namely a main line version with major modification on the whole software function, a formal version with minor modification on the main line version and iteration, a temporary version meeting special requirements of certain clients and a characteristic version with major modification on a certain module in the software version; The test module is used for determining a current batch of copying test scenes, distributing the current batch of copying test scenes to a plurality of copying devices so that the copying devices execute copying tests of test duration on the target software in the current batch of copying test scenes, judging whether the copying tests of all the copying devices are executed, if yes, determining a new current batch of copying test scenes, and entering the step of distributing the current batch of copying test scenes to the plurality of copying devices, wherein the test duration is calculated according to a preset formula, the preset formula is T=alpha version ×t×M,α version and is a coefficient corresponding to the version of the target software, the size of alpha version >0,α version is positively related to the importance of the version, T is the copying test unit time, and M is the number of functional modules; And the hang dead redraw mechanism closing module is used for closing the hang dead redraw mechanism before executing the copy test on the target software in each copy test scene, wherein the hang dead redraw mechanism is a mechanism for restarting the target software after the monitoring software detects that the target software is dead.
  6. 6. An electronic device comprising a memory and a processor, said memory having stored therein a computer program, said processor implementing the steps of the copy test method as claimed in any one of claims 1 to 4 when said computer program in said memory is called.
  7. 7. A storage medium having stored therein computer executable instructions which, when loaded and executed by a processor, implement the steps of the copy test method of any of claims 1 to 4.

Description

Copying test method and device, electronic equipment and storage medium Technical Field The present application relates to the field of testing technologies, and in particular, to a method and apparatus for testing a copying machine, an electronic device, and a storage medium. Background The copying test is mainly to observe the system state by continuously running for a period of time under a certain designed test environment. Copy-on test is very important in software testing, and is an important means for verifying software version stability and functional reliability. In the existing copying test, the copying test is usually carried out under one configuration, the function point is not perfect in traversing, and when the running configuration of the software is changed, the parameters of the software are often required to be manually configured, so that the labor is wasted, the reliable copying test is difficult to fully carry out, Therefore, how to efficiently and comprehensively test software for copying is a technical problem that needs to be solved currently by those skilled in the art. Disclosure of Invention The application aims to provide a copying test method and device, electronic equipment and storage medium, which can efficiently and comprehensively perform copying test on software. In order to solve the technical problems, the application provides a copying machine testing method, which comprises the following steps: determining a functional module of target software and an interface contained in the functional module; the functional modules and the interfaces are arranged and combined to obtain a plurality of copying test scenes; and executing a copy test on the target software under each copy test scene. Optionally, the arranging and combining the functional module and the interface to obtain a plurality of copying test scenarios includes: selecting a plurality of target function modules from all the function modules; selecting a plurality of target interfaces from interfaces contained in each target functional module, and sequencing the target interfaces to obtain an interface execution sequence; and generating the copying test scene according to the selected target functional module and the interface execution sequence corresponding to the target functional module. Optionally, selecting a plurality of target function modules from all the function modules includes: Determining the number M of modules, wherein M is more than or equal to 1 and less than or equal to N, and N is the number of all the functional modules; selecting M functional modules from all the functional modules as the target functional modules; correspondingly, selecting a plurality of target interfaces from interfaces contained in each target functional module, and sequencing the target interfaces to obtain an interface execution sequence, wherein the method comprises the following steps: determining the number m of interfaces corresponding to each target functional module, wherein m is more than or equal to 1 and less than or equal to n, and n is the total number of interfaces contained in the target functional modules; and selecting m interfaces from all interfaces of the target functional module as target interfaces, and arranging the target interfaces to obtain an interface execution sequence. Optionally, after generating the copying test scene according to the selected target functional module and the execution sequence of the interfaces corresponding to the target functional module, the method further includes: judging whether all copying test scenes of the target software are generated or not; If not, the step of selecting a plurality of target function modules from all the function modules is entered. Optionally, executing a copy test on the target software under each copy test scenario includes: Determining test parameters of the copying test scene, and determining test duration according to the test parameters, wherein the test parameters comprise the version of the target software and/or the number of functional modules contained in the copying test scene; and executing the copy test of the test duration on the target software under the copy test scene. Optionally, if the test parameter includes the number of functional modules, determining the test duration according to the test parameter includes: and calculating the test time according to a preset formula, wherein the test time is positively correlated with the number of the functional modules. Optionally, executing a copy test on the target software under each copy test scenario includes: Determining a current batch copying test scene; distributing a current batch of copying test scenes to a plurality of copying devices so that the copying devices execute copying tests on the target software in the current batch of copying test scenes; judging whether the copying test of all copying devices is executed or not; if yes, determining a new current batch copyi