CN108287792B - Method and apparatus for outputting information - Google Patents
Method and apparatus for outputting information Download PDFInfo
- Publication number
- CN108287792B CN108287792B CN201810078473.1A CN201810078473A CN108287792B CN 108287792 B CN108287792 B CN 108287792B CN 201810078473 A CN201810078473 A CN 201810078473A CN 108287792 B CN108287792 B CN 108287792B
- Authority
- CN
- China
- Prior art keywords
- test result
- test
- application
- tested
- result set
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
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)
- Stored Programmes (AREA)
Abstract
The embodiment of the application discloses a method and a device for outputting information. One embodiment of the method comprises: acquiring a test case for an application to be tested, wherein the test case comprises a first test result set, and the first test result is a test result predetermined for the test case; testing the application to be tested by using the test case to generate a second test result set; and determining the test results which are contained in the second test result set and not contained in the first test result set as target test results, obtaining a target test result set and outputting the target test result set. The embodiment improves the richness of information output and is beneficial to improving the flexibility of testing.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for outputting information.
Background
After the Test Case (Test Case) design is completed, the Test is generally performed step by a tester according to the steps described in the Test Case, and the obtained actual Test result is compared with the expected Test result. In the process, the purposes of saving manpower, time or hardware resources and improving the testing efficiency can be achieved through automatic testing.
In the test, due to version updating of the product, the test case and the expected test result need to be updated in time.
Disclosure of Invention
The embodiment of the application provides a method and a device for outputting information.
In a first aspect, an embodiment of the present application provides a method for outputting information, where the method includes: acquiring a test case for an application to be tested, wherein the test case comprises a first test result set, and the first test result is a test result predetermined for the test case; testing the application to be tested by using the test case to generate a second test result set; and determining the test results which are contained in the second test result set and not contained in the first test result set as target test results, obtaining a target test result set and outputting the target test result set.
In some embodiments, the above method further comprises: adjusting the test case based on the target test result set; and testing the application to be tested by using the adjusted test case to generate a third test result set.
In some embodiments, the above method further comprises: and determining whether the first test result set is accurate or not based on a preset accurate judgment condition.
In some embodiments, the above method further comprises: in response to determining that the first set of test results is accurate, the application to be tested is re-downloaded or re-installed.
In some embodiments, the above method further comprises: and responding to the fact that the first test result set is inaccurate, adjusting the test case, testing the application to be tested by using the adjusted test case, and generating a fourth test result set.
In some embodiments, the first test result comprises: the method comprises the steps of aiming at a file name of an application to be tested, which is predetermined and is under an installation directory of the application to be tested, and information of a computer virus contained in the application to be tested, which is predetermined; the second test result includes: the file name under the installation directory contains information of the computer virus in the application to be tested.
In a second aspect, an embodiment of the present application provides an apparatus for outputting information, including: the device comprises an acquisition unit, a test unit and a test unit, wherein the acquisition unit is configured to acquire a test case for an application to be tested, the test case comprises a first test result set, and the first test result is a predetermined test result for the test case; the first generating unit is configured to test the application to be tested by using the test case to generate a second test result set; and the output unit is configured to determine the test result contained in the second test result set and not contained in the first test result set as a target test result, obtain a target test result set and output the target test result set.
In some embodiments, the above apparatus further comprises: the adjusting unit is configured to adjust the test case based on the target test result set; and the second generating unit is configured to test the application to be tested by using the adjusted test case to generate a third test result set.
In some embodiments, the above apparatus further comprises: and the determining unit is configured to determine whether the first test result set is accurate or not based on a preset accurate judgment condition.
In some embodiments, the above apparatus further comprises: and the installation unit is used for re-downloading or re-installing the application to be tested in response to the fact that the first test result set is accurate.
In some embodiments, the above apparatus further comprises: and the third generating unit is configured to adjust the test case in response to the fact that the first test result set is inaccurate, test the application to be tested by using the adjusted test case, and generate a fourth test result set.
In some embodiments, the first test result comprises: the method comprises the steps of aiming at a file name of an application to be tested, which is predetermined and is under an installation directory of the application to be tested, and information of a computer virus contained in the application to be tested, which is predetermined; the second test result includes: the file name under the installation directory contains information of the computer virus in the application to be tested.
In a third aspect, an embodiment of the present application provides an electronic device for outputting information, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of any of the embodiments of the method for outputting information as described above.
In a fourth aspect, the present application provides a computer-readable storage medium for outputting information, on which a computer program is stored, which when executed by a processor implements the method of any one of the embodiments of the method for outputting information as described above.
According to the method and the device for outputting information, the test case for the to-be-tested application is obtained, wherein the test case comprises a first test result set, the first test result is a test result predetermined for the test case, then the to-be-tested application is tested by using the test case to generate a second test result set, and finally the test result which is contained in the second test result set and is not contained in the first test result set is determined as a target test result, so that the target test result set is obtained and output, and therefore based on the utilization of the target test result, the richness of information output is improved, and the flexibility of testing is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for outputting information, in accordance with the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for outputting information according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for outputting information according to the present application;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for outputting information according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the present method for outputting information or apparatus for outputting information may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various applications may be installed on the terminal devices 101, 102, 103, such as a web browser application, a shopping-like application, a search-like application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting application installation and execution, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background information processing server that provides support for applications (e.g., software) installed or running on the terminal devices 101, 102, 103. The background information processing server may perform processing such as analysis on the received data (e.g., data such as test cases), and feed back a processing result (e.g., a target test result set) to the terminal device.
It should be noted that the method for outputting information provided in the embodiment of the present application may be executed by the server 105, and accordingly, the apparatus for outputting information is generally disposed in the server 105; the method for outputting information provided by the embodiment of the present application may also be executed by the terminal devices 101, 102, and 103, and accordingly, the apparatus for outputting information may also be disposed in the terminal devices 101, 102, and 103
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. When the electronic device on which the information processing method operates does not need to perform data transmission with other electronic devices, the system architecture may not include a network. For example, when the electronic device is a server and the electronic device does not need to interact with other electronic devices (e.g., terminal devices), the system architecture may not include a network and a terminal device; when the electronic device is a terminal device and the electronic device does not need to interact with other electronic devices (e.g., a server), the system architecture may not include a network and a server.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for outputting information in accordance with the present application is shown. The method for outputting information comprises the following steps:
In this embodiment, an electronic device (for example, a terminal device or a server shown in fig. 1) on which the method for outputting information is executed may obtain a test case for an application to be tested from another electronic device (for example, an electronic device for storing a test case for an application to be tested) through a wired connection manner or a wireless connection manner.
The application to be tested may be a Client Server (CS) application or a Browser Server (BS) application. The test case includes a first set of test results. The first test result is a test result predetermined for the test case, for example, a test result expected by a tester for the test case before testing. Optionally, the test case may further include information such as a test step, a test purpose, and a test condition. It will be appreciated that in automated testing, the execution of the above steps may be accomplished by a technician writing code. As an example, the above-described first test result may be a test result for a function of the software. For example, the first test result may be "jump to a landing page of the software".
For example, please refer to fig. 3. In the illustration, the electronic device obtains a test case 301 for an application to be tested, which is stored in a local memory. The test case 301 includes a first test result set "filename 1, filename 2".
In this embodiment, based on the test case obtained in step 201, the electronic device may test the application to be tested by using the test case, and generate a second test result set. And the second test result is data contained or acquired by the application to be tested when or after the test case is executed.
Illustratively, please continue to refer to fig. 3. The electronic device tests the application to be tested by using the test case 301, and generates a second test result set 302. Wherein the second test result set comprises the following second test results: file name 1, file name 2, and file name 3.
In this embodiment, the electronic device may determine the test result included in the second test result set and not included in the first test result set as the target test result, obtain the target test result set, and output the target test result set.
It is understood that when the first set of test results is not adjusted in time (e.g., the first set of test results is not updated before testing is required after the new version of software is released), test results that are included in the second set of test results and not included in the first set of test results will occur. Due to the difference between the second test result set and the first test result set, the tester or the electronic device usually concludes that the application to be tested has a problem. However, the reason for this conclusion may be due to the first set of test results not being adjusted in time. Therefore, the target test result is output, which is helpful for further determining whether the application to be tested has a problem.
By way of example, please continue to refer to fig. 3. The electronic device determines "file name 3" as a target test result, thereby obtaining a target test result set 303 (including "file name 3") and outputting the target test result set 303.
In some optional implementations of this embodiment, the method further includes: adjusting the test case based on the target test result set; and testing the application to be tested by using the adjusted test case to generate a third test result set.
Optionally, the electronic device may add the target test result set to the first test result set, so as to obtain an adjusted test case; after the target test result set is output by the electronic device, a technician determines whether the first test result set is not updated in time or whether an expected error of the test result exists through comparison between the target test result set and the first test result set, and if so, the technician can adjust (update or modify) the test steps or the first test result included in the test case through the electronic device.
In some optional implementations of this embodiment, the first test result includes: the method comprises the steps of aiming at a file name which is predetermined by an application to be tested and is under an installation directory of the application to be tested, and information of a computer virus which is predetermined and contained in the test application; the second test result includes: the file name under the installation directory contains information of the computer virus in the application to be tested. The information of the computer virus may be some specific character strings, such as code segments contained by the virus or virus names, etc.
It can be understood that, when the first test result includes a file name under an installation directory of an application to be tested, which is predetermined for the application to be tested, and the second test result includes the file name under the installation directory, whether the application to be tested installed on the electronic device has a missing or error of an installation file can be determined by comparing the first test result with the second test result; when the first test result comprises information of the computer virus which is predetermined and contained in the test application and the second test result comprises information of the computer virus which is contained in the application to be tested, whether the computer virus is contained in the application to be tested can be determined by comparing the first test result with the second test result.
The method provided by the embodiment of the application includes obtaining a test case for an application to be tested, where the test case includes a first test result set, the first test result is a predetermined test result for the test case, then testing the application to be tested by using the test case to generate a second test result set, and finally outputting a test result which is included in the second test result set and is not included in the first test result set.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for outputting information is shown. The process 400 of the method for outputting information includes the steps of:
In this embodiment, step 401 is substantially the same as step 201 in the corresponding embodiment of fig. 2, and is not described here again.
In this embodiment, step 402 is substantially the same as step 202 in the corresponding embodiment of fig. 2, and is not described herein again.
In this embodiment, step 403 is substantially the same as step 203 in the corresponding embodiment of fig. 2, and is not described herein again.
In this embodiment, based on the second test result set and the first test result set obtained in step 403, the electronic device may determine whether the first test result set is accurate based on a preset accuracy determination condition. The preset accurate judgment condition is a preset condition for judging whether the first test result set is accurate or not. For example, the above-mentioned accurate determination condition may be that the test result corresponding to the newly added software requirement is consistent with the first test result. The newly added software requirement is a requirement (e.g., function) newly added by the latest version of software relative to the last version of software.
For example, the newly added software requirement may be that when the user clicks a certain button, specific information is displayed, and then a test result corresponding to the newly added software requirement is that the specific information is displayed. If the first test result is that the specific information is displayed, the electronic device may determine that the first test result set is accurate, otherwise, the electronic device may determine that the first test result set is inaccurate. It is understood that the above-mentioned accurate determination condition may be set by a skilled person according to actual conditions, and the embodiment of the present application does not limit this.
In this embodiment, in response to determining that the first set of test results is accurate, the electronic device may further re-download or re-install the application to be tested.
It will be appreciated that when the first set of test results is accurate, this may be due to a problem with the application to be tested. For example, the downloaded version of the application to be tested is not the most recently updated version or there is a problem in installing the application to be tested, etc. At this time, the application to be tested is downloaded or reinstalled again, and the test is continued, which is helpful for improving the accuracy of the test.
In this embodiment, in response to determining that the first test result set is inaccurate, the test case is adjusted, the adjusted test case is used to test the application to be tested, and a fourth test result set is generated
It will be appreciated that when the first set of test results is inaccurate, this may be due to the first set of test results not being updated in time or due to expected errors by the test personnel. At the moment, the test case is adjusted, then the adjusted test case is used for testing the application to be tested, and a fourth test result set is generated, so that the test accuracy is improved.
Under some use conditions, the electronic equipment can also obtain a test case of the application to be tested of the previous version of the application to be tested; testing the application to be tested of the previous version by using the test case of the application to be tested of the previous version to generate a test result; determining a difference set between the second set of test results and the test results generated for the previous version of the application to be tested (i.e., test results that are included in the second set of test results and are not included in the test results generated for the previous version of the application to be tested); and if the test results in the difference set are all the test results in the target test result set, determining that the first test result is not updated.
Optionally, in response to determining that the first set of test results is accurate, the electronic device may further add the test results in the difference set and/or the target set of test results to the first set of test results.
As can be seen from fig. 4, compared to the embodiment corresponding to fig. 2, the flow 400 of the method for outputting information in the present embodiment highlights the processing step of determining whether the first set of test results is accurate. Therefore, the scheme described in this embodiment may introduce more processing steps in the case that the first test result set is accurate or inaccurate, thereby further improving the flexibility of the test.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for outputting information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for outputting information of the present embodiment includes: an acquisition unit 501, a first generation unit 502, and an output unit 503. The obtaining unit 501 is configured to obtain a test case for an application to be tested, where the test case includes a first test result set, and the first test result is a test result predetermined for the test case; the first generating unit 502 is configured to test the application to be tested by using the test case, and generate a second test result set; the output unit 503 is configured to determine the test result included in the second test result set and not included in the first test result set as a target test result, obtain a target test result set, and output the target test result set.
In this embodiment, the obtaining unit 501 of the apparatus 500 for outputting information may obtain the test case for the application to be tested from other electronic devices (for example, an electronic device for storing the test case for the application to be tested) through a wired connection manner or a wireless connection manner.
The application to be tested may be a client-side application or a server-side application, or may be a browser-side application or a server-side application. The test case includes a first set of test results. The first test result is a test result predetermined for the test case, for example, a test result expected by a tester for the test case before testing.
In this embodiment, based on the test case obtained by the obtaining unit 501, the first generating unit 502 may use the test case to test the application to be tested, so as to generate a second test result set. And the second test result is data contained or acquired by the application to be tested when or after the test case is executed.
In this embodiment, the output unit 503 may determine the test result included in the second test result set and not included in the first test result set as the target test result, obtain the target test result set, and output the target test result set.
In some optional implementations of this embodiment, the apparatus further includes: the adjusting unit (not shown in the figure) is configured to adjust the test case based on the target test result set; the second generating unit (not shown in the figure) is configured to test the application to be tested by using the adjusted test case, and generate a third test result set.
Optionally, the device may add the target test result set to the first test result set, so as to obtain an adjusted test case; or after the device outputs the target test result set, the technician determines whether the first test result set is not updated in time or whether an expected error of the test result exists through comparison between the target test result set and the first test result set, and if so, the technician may adjust (update or modify) the test steps or the first test result included in the test case through the device.
In some optional implementations of this embodiment, the apparatus further includes: the determining unit (not shown in the figure) is configured to determine whether the first set of test results is accurate based on a preset accurate determination condition. The preset accurate judgment condition is a preset condition for judging whether the first test result set is accurate or not. For example, the above-mentioned accurate determination condition may be that the test result corresponding to the newly added software requirement is consistent with the first test result.
In some optional implementations of this embodiment, the apparatus further includes: the installation unit (not shown in the figures) is configured to re-download or re-install the application to be tested in response to determining that the first set of test results is accurate.
It will be appreciated that when the first set of test results is accurate, this may be due to a problem with the application to be tested. For example, the downloaded version of the application to be tested is not the most recently updated version or there is a problem in installing the application to be tested, etc. At this time, the application to be tested is downloaded or reinstalled again, and the test is continued, which is helpful for improving the accuracy of the test.
In some optional implementations of this embodiment, the apparatus further includes: the third generating unit (not shown in the figure) is configured to adjust the test case in response to determining that the first test result set is inaccurate, and test the application to be tested by using the adjusted test case to generate a fourth test result set.
It will be appreciated that when the first set of test results is inaccurate, this is typically due to the first set of test results not being updated in time or expected errors by the test personnel. At the moment, the case is adjusted, then the adjusted test case is used for testing the application to be tested, and a fourth test result set is generated, so that the test accuracy is improved.
In some optional implementations of this embodiment, the first test result includes: the method comprises the steps of aiming at a file name which is predetermined by an application to be tested and is under an installation directory of the application to be tested, and information of a computer virus which is predetermined and contained in the test application; the second test result includes: the file name under the installation directory, and the information of the computer virus contained in the test application.
It can be understood that, when the first test result includes a file name under an installation directory of an application to be tested, which is predetermined for the application to be tested, and the second test result includes the file name under the installation directory, by comparing the first test result with the second test result, it can be determined whether the application to be tested installed by the apparatus has a missing or error of an installation file; when the first test result comprises information of the computer virus which is predetermined and contained in the test application and the second test result comprises information of the computer virus which is contained in the application to be tested, whether the computer virus is contained in the application to be tested can be determined by comparing the first test result with the second test result. The information of the computer virus may be some specific character strings, such as code segments contained by the virus or virus names, etc.
Under some use conditions, the device can also obtain a test case of the application to be tested of the previous version of the application to be tested; testing the application to be tested of the previous version by using the test case of the application to be tested of the previous version to generate a test result; determining a difference set between the second set of test results and the test results generated for the previous version of the application to be tested (i.e., test results that are included in the second set of test results and are not included in the test results generated for the previous version of the application to be tested); and if the test results in the difference set are all the test results in the target test result set, determining that the first test result is not updated.
Optionally, in response to determining that the first set of test results is accurate, the apparatus may further add the test results in the difference set and/or the target set of test results to the first set of test results.
In the apparatus provided by the above embodiment of the present application, the obtaining unit 501 obtains the test case for the application to be tested, where the test case includes a first test result set, the first test result is a test result predetermined for the test case, then the first generating unit 502 tests the application to be tested by using the test case to generate a second test result set, and finally the outputting unit 503 determines the test result included in the second test result set and not included in the first test result set as a target test result, obtains the target test result set and outputs the target test result set, so that richness of information output is improved, and flexibility of testing is improved.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The terminal device/server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a first generation unit, and an output unit. The names of the units do not form a limitation to the unit itself in some cases, for example, the acquiring unit may also be described as a "unit acquiring a test case for an application to be tested".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a test case for an application to be tested, wherein the test case comprises a first test result set, and the first test result is a test result predetermined for the test case; testing the application to be tested by using the test case to generate a second test result set; and determining the test results which are contained in the second test result set and not contained in the first test result set as target test results, obtaining a target test result set and outputting the target test result set.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (14)
1. A method for outputting information, comprising:
acquiring a test case for an application to be tested, wherein the test case comprises a first test result set, and the first test result is a predetermined test result for the test case;
testing the application to be tested by using the test case to generate a second test result set;
determining the test results which are contained in the second test result set and not contained in the first test result set as target test results to obtain a target test result set;
testing the application to be tested of the previous version by using the test case of the application to be tested of the previous version to generate an old version test result;
and in response to that the difference set of the second test result set and the test result of the old version is included in the target test result set, determining that the current first test result is the test result of the application to be tested corresponding to the previous version, and outputting the correct target test result set according to the correct first test result.
2. The method of claim 1, wherein the method further comprises:
adjusting the test case based on the target test result set;
and testing the application to be tested by using the adjusted test case to generate a third test result set.
3. The method of claim 1, wherein the method further comprises:
and determining whether the first test result set is accurate or not based on a preset accurate judgment condition.
4. The method of claim 3, wherein the method further comprises:
in response to determining that the first set of test results is accurate, the application to be tested is re-downloaded or re-installed.
5. The method of claim 3 or 4, wherein the method further comprises:
and adjusting the test case in response to the fact that the first test result set is determined to be inaccurate, testing the application to be tested by using the adjusted test case, and generating a fourth test result set.
6. The method of one of claims 1 to 4, wherein the first test result comprises: aiming at a file name which is predetermined by the application to be tested and is under an installation directory of the application to be tested, information of a computer virus which is predetermined and contained in the application to be tested is obtained; the second test result includes: and the file name under the installation directory comprises information of the computer virus in the application to be tested.
7. An apparatus for outputting information, comprising:
the device comprises an acquisition unit, a test unit and a test unit, wherein the acquisition unit is configured to acquire a test case for an application to be tested, the test case comprises a first test result set, and the first test result is a test result predetermined for the test case;
the first generating unit is configured to test the application to be tested by using the test case to generate a second test result set;
and the output unit is configured to determine a test result which is contained in the second test result set and is not contained in the first test result set as a target test result to obtain a target test result set, test the previous version of the application to be tested by using the test case of the previous version of the application to be tested to generate an old version test result, and determine that the current first test result is the test result corresponding to the previous version of the application to be tested in response to that a difference set of the second test result set and the old version test result is contained in the target test result set, and output the test result after a correct target test result set is obtained again according to the correct first test result.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the adjusting unit is configured to adjust the test case based on the target test result set;
and the second generating unit is configured to test the application to be tested by using the adjusted test case to generate a third test result set.
9. The apparatus of claim 7, wherein the apparatus further comprises:
and the determining unit is configured to determine whether the first test result set is accurate or not based on a preset accuracy judgment condition.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the installation unit is used for re-downloading or re-installing the application to be tested in response to the fact that the first test result set is accurate.
11. The apparatus of claim 9 or 10, wherein the apparatus further comprises:
and the third generating unit is configured to adjust the test case in response to the fact that the first test result set is determined to be inaccurate, test the application to be tested by using the adjusted test case, and generate a fourth test result set.
12. The apparatus of one of claims 7-10, wherein the first test result comprises: aiming at a file name which is predetermined by the application to be tested and is under an installation directory of the application to be tested, information of a computer virus which is predetermined and contained in the application to be tested is obtained; the second test result includes: and the file name under the installation directory comprises information of the computer virus in the application to be tested.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810078473.1A CN108287792B (en) | 2018-01-26 | 2018-01-26 | Method and apparatus for outputting information |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810078473.1A CN108287792B (en) | 2018-01-26 | 2018-01-26 | Method and apparatus for outputting information |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108287792A CN108287792A (en) | 2018-07-17 |
| CN108287792B true CN108287792B (en) | 2021-09-07 |
Family
ID=62835745
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810078473.1A Active CN108287792B (en) | 2018-01-26 | 2018-01-26 | Method and apparatus for outputting information |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108287792B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113468053B (en) * | 2021-07-02 | 2022-11-15 | 中国建设银行股份有限公司 | Application system testing method and device |
| CN114185538A (en) * | 2021-12-14 | 2022-03-15 | 平安付科技服务有限公司 | Data testing method, device, computer equipment and storage medium |
| CN118330686A (en) * | 2024-03-25 | 2024-07-12 | 泰斗微电子科技有限公司 | Detection method, detection device, detection terminal and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101046763A (en) * | 2006-03-29 | 2007-10-03 | 盛趣信息技术(上海)有限公司 | Implementing method of automatic test system based on scenario |
| CN107463493A (en) * | 2017-06-30 | 2017-12-12 | 北京北信源软件股份有限公司 | A kind of test system and method for testing towards host antivirus software product |
| CN107562637A (en) * | 2017-09-28 | 2018-01-09 | 网易有道信息技术(北京)有限公司 | It is a kind of for the method for software test, equipment, system and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101908020B (en) * | 2010-08-27 | 2012-05-09 | 南京大学 | Method for prioritizing test cases based on classified excavation and version change |
| US9569345B2 (en) * | 2013-12-27 | 2017-02-14 | International Business Machines Corporation | Architectural failure analysis |
| CN105893233B (en) * | 2014-12-19 | 2021-04-27 | 伊姆西Ip控股有限责任公司 | Method and system for automatically testing firmware |
| CN104951399B (en) * | 2015-06-19 | 2017-11-07 | 北京齐尔布莱特科技有限公司 | A kind of software testing system and method |
-
2018
- 2018-01-26 CN CN201810078473.1A patent/CN108287792B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101046763A (en) * | 2006-03-29 | 2007-10-03 | 盛趣信息技术(上海)有限公司 | Implementing method of automatic test system based on scenario |
| CN107463493A (en) * | 2017-06-30 | 2017-12-12 | 北京北信源软件股份有限公司 | A kind of test system and method for testing towards host antivirus software product |
| CN107562637A (en) * | 2017-09-28 | 2018-01-09 | 网易有道信息技术(北京)有限公司 | It is a kind of for the method for software test, equipment, system and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108287792A (en) | 2018-07-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113448869B (en) | Method and device for generating test case, electronic equipment and computer readable medium | |
| CN110708346B (en) | Information processing system and method | |
| US11550599B2 (en) | Method and apparatus for running applet | |
| CN109684188B (en) | Test method and device | |
| CN108933695B (en) | Method and apparatus for processing information | |
| CN109376534B (en) | Method and apparatus for detecting applications | |
| CN108011949B (en) | Method and apparatus for acquiring data | |
| CN107229565B (en) | Test method and device | |
| CN108287792B (en) | Method and apparatus for outputting information | |
| CN113806229B (en) | Test script multiplexing method, device, equipment, medium and product for interface change | |
| CN113656050B (en) | Method and apparatus for generating version number | |
| CN110221857A (en) | The problem of application program restorative procedure, device, electronic equipment and storage medium | |
| CN109299124B (en) | Method and apparatus for updating a model | |
| CN114168485A (en) | Test method, device, equipment and medium | |
| CN113420010A (en) | Database management method and device, electronic equipment and storage medium | |
| CN108959102B (en) | Method and device for generating test data and testing application to be tested | |
| CN112084114B (en) | Method and apparatus for testing interfaces | |
| CN113590483B (en) | Use case operation method and device | |
| CN114461268A (en) | Program production method, device, electronic equipment, storage medium and product | |
| CN112783903B (en) | Method and device for generating update log | |
| CN113468053A (en) | Application system testing method and device | |
| CN112395194A (en) | Method and device for accessing test platform | |
| CN116107908A (en) | Unit test code generation method and device | |
| CN115993981A (en) | Data processing method, device, electronic equipment and computer readable medium | |
| CN113342633B (en) | Performance test method and device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |