CN112069057A - Code testing method, device, apparatus and storage medium - Google Patents

Code testing method, device, apparatus and storage medium Download PDF

Info

Publication number
CN112069057A
CN112069057A CN202010789687.7A CN202010789687A CN112069057A CN 112069057 A CN112069057 A CN 112069057A CN 202010789687 A CN202010789687 A CN 202010789687A CN 112069057 A CN112069057 A CN 112069057A
Authority
CN
China
Prior art keywords
code
test
tested
target
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010789687.7A
Other languages
Chinese (zh)
Inventor
陈冬梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202010789687.7A priority Critical patent/CN112069057A/en
Publication of CN112069057A publication Critical patent/CN112069057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a code testing method, equipment, a device and a storage medium. In the embodiment of the application, the test end maintains the corresponding relation between the application code identification and the automatic test code. Thus, the test end only needs to maintain an automatic test code set, and can obtain the target automatic test code according to the identification of the code to be tested and the corresponding relation between the maintained application code identification and the automatic test code; and according to the code to be tested, the target automatic test code and the obtained target test environment, a test example is created and operated to obtain the test result of the code to be tested, the automatic test code does not need to be maintained independently for each test environment, and the maintenance and development cost of the automatic test code is reduced.

Description

Code testing method, device, apparatus and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a code testing method, device, apparatus, and storage medium.
Background
With the continuous development of communication technology, the applications of the intelligent terminal are more and more, and more Application programs (APPs) are developed for the intelligent terminal. Before the application program is released, the application program needs to be tested, repaired and the like so as to improve the reliability of the application program.
In practical applications, an application program often implements multiple functions, each of which is implemented by one or more code modules. The different production environments in which each code module is deployed result in different testing environments being required to test the code module. To improve testing efficiency, automated testing applications are used. In the prior art, each test environment independently corresponds to one automatic test code, so that the automatic test cost is high.
Disclosure of Invention
Aspects of the present disclosure provide a code testing method, apparatus, device, and storage medium to reduce automated testing costs.
The embodiment of the application provides a code testing method, which comprises the following steps:
acquiring a code to be tested and a target test environment corresponding to the code to be tested;
acquiring a target automatic test code corresponding to the code to be tested according to the identifier of the code to be tested and the corresponding relation between the preset application code identifier and the automatic test code identifier;
creating a test case according to the code to be tested, the target automatic test code and a target test environment;
and running the test case to obtain a test result of the code to be tested.
An embodiment of the present application provides a code testing apparatus, including:
the system comprises an acquisition module, a test module and a control module, wherein the acquisition module is used for acquiring a code to be tested and a target test environment corresponding to the code to be tested; acquiring a target automatic test code corresponding to the code to be tested from an automatic test code set according to the identifier of the code to be tested;
the creating module is used for creating a test example according to the code to be tested, the target automatic test code and the target test environment;
and the running module is used for running the test case to obtain the test result of the code to be tested.
An embodiment of the present application further provides a computer device, including: a memory and a processor; wherein the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps in the code testing method described above.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the code testing method described above.
In the embodiment of the application, the test end maintains the corresponding relation between the application code identification and the automatic test code. Thus, the test end only needs to maintain an automatic test code set, and can obtain the target automatic test code according to the identification of the code to be tested and the corresponding relation between the maintained application code identification and the automatic test code; and according to the code to be tested, the target automatic test code and the obtained target test environment, a test example is created and operated to obtain the test result of the code to be tested, the automatic test code does not need to be maintained independently for each test environment, and the maintenance and development cost of the automatic test code is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a code testing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a code testing apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In practical applications, an application program often implements multiple functions, each of which is implemented by one or more code modules. The different production environments in which each code module is deployed result in different testing environments being required to test the code module. To improve testing efficiency, automated testing applications are used. In the prior art, each test environment independently corresponds to one automatic test code, so that the automatic test cost is high.
In some embodiments of the present application, the test end maintains a corresponding relationship between the application code identifier and the automation test code. Thus, the test end only needs to maintain one automatic test code, and can obtain the target automatic test code according to the identification of the code to be tested and the corresponding relation between the maintained application code identification and the automatic test code; and according to the code to be tested, the target automatic test code and the obtained target test environment, a test example is created and operated to obtain the test result of the code to be tested, the automatic test code does not need to be maintained independently for each test environment, and the maintenance and development cost of the automatic test code is reduced.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that: like reference numerals refer to like objects in the following figures and embodiments, and thus, once an object is defined in one figure or embodiment, further discussion thereof is not required in subsequent figures and embodiments.
Fig. 1 is a schematic flowchart of a code testing method according to an embodiment of the present application. As shown in fig. 1, the method includes:
101. and acquiring a code to be tested and a target test environment corresponding to the code to be tested.
102. And acquiring a target automatic test code corresponding to the code to be tested according to the identifier of the code to be tested and the corresponding relation between the preset application code identifier and the automatic test code identifier.
103. And creating a test case according to the code to be tested, the target automatic test code and the target test environment.
104. And running the test case to obtain a test result of the code to be tested.
In this embodiment, the code to be tested may be a code of a certain or some functional modules of the application software, or may be a whole code of the application program. The terminal devices loaded by the application software are different, and the implementation forms of the application software are different. In some embodiments, the application software may be implemented as an application program (APP) installed on the smartphone, an applet, or the like; in other embodiments, the application software may be implemented as a client installed on a computer or as a web page, etc.
In this embodiment, the code testing end maintains a corresponding relationship between the application code identifier and the automation test code identifier. The application code identifier may be an identifier of a code module corresponding to a certain functional module of the application software, or an identifier of a sub-module under a certain functional module, but is not limited thereto. Accordingly, the automated test code identification may be an identification of a certain test module (or test project).
The code testing end also maintains an automatic testing code set. Wherein, the automated test code set comprises: code for performing automated testing on the application software, code for performing automated testing on each function in the application software, code for performing automated testing on each sub-function in the application software, and the like. Wherein each automated test code can be used as a test project. Accordingly, the automated test code set includes: and (5) a plurality of test projects. The test functions can be used for automatically testing the application software, automatically testing each function in the application software, automatically testing each sub-function in the application software and the like.
In this embodiment, when testing the code, the code to be tested may be deployed in a test environment. For convenience of description, a test environment corresponding to a code to be tested is defined as a target test environment. In step 101, a code to be tested and a target test environment corresponding to the code to be tested can be obtained. Alternatively, the test software may provide test code and test environment input controls. The tester can provide the code to be tested and the test environment through the control. For the test end, the input test code and the test environment can be obtained as the code to be tested and the target test environment in response to the input operation aiming at the test code and the test environment.
Further, in step 102, a target automatic test code corresponding to the code to be tested may be obtained according to the identifier of the code to be tested and the corresponding relationship between the preset application code identifier and the automatic test code identifier. Optionally, the identifier of the code to be tested may be matched in the correspondence between the application code identifier and the automated test code identifier, so as to obtain the identifier of the target automated test code corresponding to the code to be tested; and according to the identification of the target automatic test code, acquiring the target automatic test code from the automatic test code set maintained by the code test end. Optionally, the identifier of the target automation test code may be used to perform a query in the automation test code set, and the automation test code corresponding to the queried identifier is used as the target automation test code.
Further, in step 103, a test case may be created according to the code to be tested, the target automation test code, and the target test environment; and the test case is run in step 104 to obtain the test result of the code to be tested.
In this embodiment, the test end maintains a corresponding relationship between the application code identifier and the automation test code. Thus, the test end only needs to maintain one automatic test code, and can obtain the target automatic test code according to the identification of the code to be tested and the corresponding relation between the maintained application code identification and the automatic test code; and according to the code to be tested, the target automatic test code and the obtained target test environment, a test example is created and operated to obtain the test result of the code to be tested, the automatic test code does not need to be maintained independently for each test environment, and the maintenance and development cost of the automatic test code is reduced.
In the embodiment of the application, the target test environment and the target automatic test code can be bound, and the code to be tested is input into the target automatic test code to obtain the test case. Optionally, the test case includes in addition to: the code to be tested, the target automated test code, and the target test environment may include, but are not limited to, a test target, a test environment, input data, test steps, expected results, and the like.
Further, the test case can be operated to obtain a test result of the code to be tested. Because the target test environment is bound with the target automatic test code, the code to be tested is tested in the target test environment in the process of testing the code to be tested by using the target automatic test code. Optionally, after obtaining the test result of the code to be tested, the code testing end may further output the test result. In some embodiments, the code testing end may present the test results on a test page. In other embodiments, the code testing end may obtain a contact way of a user associated with the code to be tested; and sending the test result to a user associated with the code to be tested in a contact support mode. The user associated with the code to be tested may be a tester, a developer of the code to be tested, other personnel of a development team where the tester and the developer are located, and the like. The contact mode of the user can be an email, a telephone or an instant messaging mode and the like.
Optionally, after the code testing end outputs the testing result, a user associated with the code to be tested can judge whether manual testing is needed or not according to the testing result, so that integration of automatic testing and manual testing is facilitated.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subject of steps 101 and 102 may be device a; for another example, the execution subject of step 101 may be device a, and the execution subject of step 102 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the code testing method.
Fig. 2 is a schematic structural diagram of a code testing apparatus according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: an acquisition module 20a, a creation module 20b and an execution module 20 c.
In this embodiment, the obtaining module 20a is configured to obtain a code to be tested and a target testing environment corresponding to the code to be tested; and acquiring a target automatic test code corresponding to the code to be tested from the automatic test code set according to the identifier of the code to be tested.
And the creating module 20b is used for creating a test example according to the code to be tested, the target automatic test code and the target test environment.
And the running module 20c is used for running the test case to obtain the test result of the code to be tested.
In some embodiments, when the obtaining module 20a obtains the target automation test code corresponding to the code to be tested, it is specifically configured to: matching the identifier of the code to be tested in the corresponding relation between the preset application code identifier and the automatic test code identifier to obtain the identifier of the target automatic test code; and acquiring the target automation test codes from the automation test code set according to the identification of the target automation test codes.
In other embodiments, the creating module 20b is specifically configured to, when creating the test case: and binding the target test environment with the target automatic test code, and inputting the code to be tested into the target automatic test code to obtain a test case.
In still other embodiments, the obtaining module 20a, when obtaining the code to be tested and the target test environment corresponding to the code to be tested, is specifically configured to: and responding to the input operation aiming at the test code and the test environment, and acquiring the input test code and the test environment as the code to be tested and the target test environment.
In some other embodiments, the code testing apparatus further comprises: and an output module 20 d. The output module 20d is used for displaying the test result on the test page; and/or acquiring a contact way of a user associated with the code to be tested; and sending the test result to a user associated with the code to be tested in a contact support mode.
The code testing apparatus provided in this embodiment maintains a correspondence between an application code identifier and an automation test code. Thus, the code testing device only needs to maintain an automatic testing code set, and can obtain the target automatic testing code according to the identification of the code to be tested and the corresponding relation between the maintained application code identification and the automatic testing code; and according to the code to be tested, the target automatic test code and the obtained target test environment, a test example is created and operated to obtain the test result of the code to be tested, the automatic test code does not need to be maintained independently for each test environment, and the maintenance and development cost of the automatic test code is reduced.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 3, the computer apparatus includes: a memory 30a and a processor 30 b; the memory 30a is used for storing computer programs.
The processor 30b is coupled to the memory 30a for executing a computer program for: acquiring a code to be tested and a target test environment corresponding to the code to be tested; acquiring a target automatic test code corresponding to the code to be tested from the automatic test code set according to the identifier of the code to be tested; creating a test example according to the code to be tested, the target automatic test code and the target test environment; and running the test case to obtain the test result of the code to be tested.
In some embodiments, when the processor 30b obtains the target automation test code corresponding to the code to be tested, it is specifically configured to: matching the identifier of the code to be tested in the corresponding relation between the preset application code identifier and the automatic test code identifier to obtain the identifier of the target automatic test code; and acquiring the target automation test codes from the automation test code set according to the identification of the target automation test codes.
In other embodiments, the processor 30b, when creating the test case, is specifically configured to: and binding the target test environment with the target automatic test code, and inputting the code to be tested into the target automatic test code to obtain a test case.
In still other embodiments, the processor 30b is specifically configured to, when acquiring the code to be tested and the target test environment corresponding to the code to be tested: and responding to the input operation aiming at the test code and the test environment, and acquiring the input test code and the test environment as the code to be tested and the target test environment.
In some other embodiments, the computer device further comprises: a screen 30c and a communication assembly 30 d. An output module 20d for displaying the test result on the test page displayed on the screen 30 c; and/or acquiring a contact way of a user associated with the code to be tested; the test result is sent to the user associated with the code to be tested in a contact-supported manner via the communication component 30 d.
In some optional embodiments, as shown in fig. 3, the computer device may further include: power supply component 30e, audio component 30f, and the like. Only some of the components shown in fig. 3 are schematically depicted, and it is not meant that the computer device must include all of the components shown in fig. 3, nor that the computer device only includes the components shown in fig. 3.
In embodiments of the present application, the memory is used to store computer programs and may be configured to store other various data to support operations on the device on which it is located. Wherein the processor may execute a computer program stored in the memory to implement the corresponding control logic. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In the embodiments of the present application, the processor may be any hardware processing device that can execute the above described method logic. Alternatively, the processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), or a Micro Controller Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chips (SOC), etc., but is not limited thereto.
In embodiments of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In the embodiment of the present application, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
In embodiments of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
In embodiments of the present application, the audio component may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals. For example, for devices with language interaction functionality, voice interaction with a user may be enabled through an audio component, and so forth.
The computer device provided by the embodiment maintains the corresponding relation between the application code identification and the automatic test code. Thus, the code testing device only needs to maintain an automatic testing code set, and can obtain the target automatic testing code according to the identification of the code to be tested and the corresponding relation between the maintained application code identification and the automatic testing code; and according to the code to be tested, the target automatic test code and the obtained target test environment, a test example is created and operated to obtain the test result of the code to be tested, the automatic test code does not need to be maintained independently for each test environment, and the maintenance and development cost of the automatic test code is reduced.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A code testing method, comprising:
acquiring a code to be tested and a target test environment corresponding to the code to be tested;
acquiring a target automatic test code corresponding to the code to be tested according to the identifier of the code to be tested and the corresponding relation between the preset application code identifier and the automatic test code identifier;
creating a test case according to the code to be tested, the target automatic test code and a target test environment;
and running the test case to obtain a test result of the code to be tested.
2. The method of claim 1, wherein obtaining the target automated test code corresponding to the code to be tested according to the identifier of the code to be tested and the corresponding relationship between the preset application code identifier and the automated test code identifier comprises:
matching the identifier of the code to be tested in a corresponding relation between a preset application code identifier and an automatic test code identifier to obtain the identifier of the target automatic test code;
and acquiring the target automation test code from the automation test code set according to the identification of the target automation test code.
3. The method of claim 1, wherein creating a test case from the code to be tested, the target automated test code, and a target test environment comprises:
and binding the target test environment with the target automatic test code, and inputting the code to be tested into the target automatic test code to obtain the test case.
4. The method of claim 1, wherein the obtaining the code to be tested and the target test environment corresponding to the code to be tested comprises:
and responding to input operation aiming at the test code and the test environment, and acquiring the input test code and the test environment as the code to be tested and the target test environment.
5. The method according to any one of claims 1-4, further comprising:
displaying the test result on a test page; and/or the presence of a gas in the gas,
acquiring a contact way of a user associated with the code to be tested; and sending the test result to a user associated with the code to be tested in a form supported by the contact way.
6. A code testing apparatus, comprising:
the system comprises an acquisition module, a test module and a control module, wherein the acquisition module is used for acquiring a code to be tested and a target test environment corresponding to the code to be tested; acquiring a target automatic test code corresponding to the code to be tested from an automatic test code set according to the identifier of the code to be tested;
the creating module is used for creating a test example according to the code to be tested, the target automatic test code and the target test environment;
and the running module is used for running the test case to obtain the test result of the code to be tested.
7. The apparatus of claim 6, wherein the obtaining module, when obtaining the target automated testing code corresponding to the code to be tested, is specifically configured to:
matching the identifier of the code to be tested in a corresponding relation between a preset application code identifier and an automatic test code identifier to obtain the identifier of the target automatic test code;
and acquiring the target automation test code from the automation test code set according to the identification of the target automation test code.
8. The apparatus of claim 6 or 7, further comprising:
the output module is used for displaying the test result on a test page; and/or acquiring a contact way of the user associated with the code to be tested; and sending the test result to a user associated with the code to be tested in a form supported by the contact way.
9. A computer device, comprising: a memory and a processor; wherein the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps of the method of any of claims 1-5.
10. A computer-readable storage medium having stored thereon computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1-5.
CN202010789687.7A 2020-08-07 2020-08-07 Code testing method, device, apparatus and storage medium Pending CN112069057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010789687.7A CN112069057A (en) 2020-08-07 2020-08-07 Code testing method, device, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010789687.7A CN112069057A (en) 2020-08-07 2020-08-07 Code testing method, device, apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN112069057A true CN112069057A (en) 2020-12-11

Family

ID=73660838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010789687.7A Pending CN112069057A (en) 2020-08-07 2020-08-07 Code testing method, device, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN112069057A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527676A (en) * 2020-12-23 2021-03-19 中移(杭州)信息技术有限公司 Model automation test method, device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243282A (en) * 2014-09-12 2014-12-24 深圳创维数字技术有限公司 Message informing method and server
CN104298588A (en) * 2013-07-16 2015-01-21 阿里巴巴集团控股有限公司 Continuous integration implementation method and device
CN106354648A (en) * 2016-09-06 2017-01-25 深圳市广和通无线股份有限公司 python automatic test framework system and test method
CN107085555A (en) * 2017-04-19 2017-08-22 广州视源电子科技股份有限公司 Code test method, device, terminal and storage medium
CN109426611A (en) * 2017-08-31 2019-03-05 贵州白山云科技股份有限公司 A kind of method for testing software and device
CN109710508A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Test method, test device, test equipment and computer readable storage medium
CN109766269A (en) * 2018-12-18 2019-05-17 微梦创科网络科技(中国)有限公司 Continuous integrating automated testing method, device, equipment and medium
CN109933536A (en) * 2019-03-28 2019-06-25 苏州浪潮智能科技有限公司 A kind of method and system of intelligent integrated automatic test
CN110764993A (en) * 2019-09-02 2020-02-07 深圳壹账通智能科技有限公司 Automatic testing method and terminal equipment
CN111324522A (en) * 2018-12-13 2020-06-23 北京数聚鑫云信息技术有限公司 Automatic test system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298588A (en) * 2013-07-16 2015-01-21 阿里巴巴集团控股有限公司 Continuous integration implementation method and device
CN104243282A (en) * 2014-09-12 2014-12-24 深圳创维数字技术有限公司 Message informing method and server
CN106354648A (en) * 2016-09-06 2017-01-25 深圳市广和通无线股份有限公司 python automatic test framework system and test method
CN107085555A (en) * 2017-04-19 2017-08-22 广州视源电子科技股份有限公司 Code test method, device, terminal and storage medium
CN109426611A (en) * 2017-08-31 2019-03-05 贵州白山云科技股份有限公司 A kind of method for testing software and device
CN109710508A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Test method, test device, test equipment and computer readable storage medium
CN111324522A (en) * 2018-12-13 2020-06-23 北京数聚鑫云信息技术有限公司 Automatic test system and method
CN109766269A (en) * 2018-12-18 2019-05-17 微梦创科网络科技(中国)有限公司 Continuous integrating automated testing method, device, equipment and medium
CN109933536A (en) * 2019-03-28 2019-06-25 苏州浪潮智能科技有限公司 A kind of method and system of intelligent integrated automatic test
CN110764993A (en) * 2019-09-02 2020-02-07 深圳壹账通智能科技有限公司 Automatic testing method and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527676A (en) * 2020-12-23 2021-03-19 中移(杭州)信息技术有限公司 Model automation test method, device and storage medium

Similar Documents

Publication Publication Date Title
CN111459818B (en) Visual test method and device
CN114385164A (en) Page generation and rendering method and device, electronic equipment and storage medium
CN112347404A (en) SPA page rendering method, device and system and storage medium
CN113722394A (en) Data synchronization method, device and storage medium
CN112699044B (en) Pressure testing method, equipment and storage medium
CN111708824A (en) Data processing method, device, equipment and storage medium
CN112115394A (en) Data display method, server, terminal and medium
CN112069057A (en) Code testing method, device, apparatus and storage medium
CN110780894A (en) Hot upgrade processing method and device and electronic equipment
CN112764796A (en) Installation package generation system
CN112346761B (en) Front-end resource online method, device, system and storage medium
CN111552606B (en) Data processing method and device and electronic equipment
CN113127522A (en) Data processing method, device, system and storage medium
CN115103392A (en) eSIM terminal test method, instrument, portal server, device and system
US11481089B2 (en) Graphical user interface to configure parameters of an API based on user inputs
CN112346970B (en) Method, device and storage medium for testing installation-free application code
CN114546359A (en) DSL description file generation method, device, equipment and storage medium
CN112988860A (en) Data acceleration processing method and device and electronic equipment
CN112365305B (en) Ordering method, equipment, system and storage medium
CN112398889A (en) Operation method and device of cloud service and electronic equipment
CN113296777B (en) Dependency analysis and program compilation method, apparatus, and storage medium
CN116578651B (en) Data table structure synchronization method, system and equipment
CN113495834B (en) User acceptance test method, equipment and storage medium
CN116701237B (en) Test script generation and test method, equipment and storage medium
CN114490244A (en) Network monitoring method, device, equipment, storage medium and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201211