CN114356781A - Software function testing method and device - Google Patents

Software function testing method and device Download PDF

Info

Publication number
CN114356781A
CN114356781A CN202210030345.6A CN202210030345A CN114356781A CN 114356781 A CN114356781 A CN 114356781A CN 202210030345 A CN202210030345 A CN 202210030345A CN 114356781 A CN114356781 A CN 114356781A
Authority
CN
China
Prior art keywords
data
software
tested
function
software function
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
CN202210030345.6A
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.)
Shell Housing Network Beijing Information Technology Co Ltd
Original Assignee
Shell Housing Network Beijing Information 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 Shell Housing Network Beijing Information Technology Co Ltd filed Critical Shell Housing Network Beijing Information Technology Co Ltd
Priority to CN202210030345.6A priority Critical patent/CN114356781A/en
Publication of CN114356781A publication Critical patent/CN114356781A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure provides a software function testing method and a device, wherein the method comprises the following steps: performing function classification on the software to be tested according to the software function; obtaining test results for testing each type of software function respectively; determining whether the test result is matched with the set corresponding prediction judgment result, and if so, determining that the software corresponding to the software to be tested has a normal function; otherwise, determining that the software function corresponding to the software to be tested is abnormal. The method can test the software quickly, comprehensively and accurately on the premise of low cost.

Description

Software function testing method and device
Technical Field
The embodiment of the disclosure relates to a software function testing method and device.
Background
The existing platform is gradually subjected to big data, various software service data types and sources under the platform are too numerous, service flows and function points are more, data scenes applied by different user roles are inconsistent, and the like.
Disclosure of Invention
In view of this, the present application provides a software function testing method and apparatus, which can perform a fast, comprehensive and accurate test on software at a low cost.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
in one embodiment, there is provided a software functional testing method, the method comprising:
performing function classification on the software to be tested according to the software function;
obtaining test results for testing each type of software function respectively;
determining whether the test result is matched with the set corresponding prediction judgment result, and if so, determining that the software corresponding to the software to be tested has a normal function; otherwise, determining that the software function corresponding to the software to be tested is abnormal.
In another embodiment, an electronic device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the software functionality testing method as described when executing the program.
In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the software functional testing method.
In another embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the software functionality testing method.
According to the technical scheme, the software to be tested is classified according to the software functions, the corresponding prediction judgment results are preset according to the data for testing and the testing functions, the testing results are obtained when the corresponding software functions are tested, and whether the corresponding software functions are normal or not is determined by matching the testing results with the corresponding prediction judgment results. The method can test the software quickly, comprehensively and accurately on the premise of low cost.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram illustrating a software functional test process according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a software functional test process according to a second embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a software functional test according to a third embodiment of the present application;
FIG. 4 is a schematic structural diagram of a software function testing apparatus according to an embodiment of the present application;
fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part 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.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
The embodiment of the application provides a software function testing method, which classifies software to be tested according to software functions, presets corresponding prediction judgment results according to data used for testing and the test functions, obtains the test results when testing the corresponding software functions, and determines whether the corresponding software functions are normal or not by matching the test results with the corresponding prediction judgment results. The method can test the software quickly, comprehensively and accurately on the premise of low cost.
The following describes in detail a process for implementing software function testing in the embodiments of the present application with reference to the accompanying drawings.
Example one
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a software function testing process according to a first embodiment of the present application. The method comprises the following specific steps:
and 101, classifying the functions of the software to be tested according to the software functions.
The software functions in the embodiment of the present application may be classified in a data acquisition manner, including: automatic data synchronization, manual data uploading and processing.
In the specific implementation, any one or any combination of the following software functions may be included according to the software to be tested:
automatic data synchronization, manual data uploading and processing.
Before testing each type of software function, prediction judgment data needs to be set according to used test data, application scenes and the like, relevant processing rules and the like.
And 102, obtaining test results for testing each type of software function respectively.
103, determining whether the test result is matched with the set corresponding prediction judgment result, and if so, executing step 104; otherwise, step 105 is performed.
And 104, determining that the software function corresponding to the software to be tested is normal.
And 105, determining the software function abnormity corresponding to the software to be tested.
In the embodiment of the application, software to be tested is classified according to software functions, corresponding prediction judgment results are preset according to data used for testing and the test functions, when the corresponding software functions are tested, the test results are obtained, and whether the corresponding software functions are normal or not is determined by matching the test results with the corresponding prediction judgment results. The method can test the software quickly, comprehensively and accurately on the premise of low cost.
Example two
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a software function testing process according to a second embodiment of the present application. The method comprises the following specific steps:
step 201, classifying the functions of the software to be tested according to the software functions.
In the embodiment of the present application, classifying data in a manner of acquiring data includes: automatic data synchronization, manual data uploading and processing.
In the specific implementation, any one or any combination of the following software functions may be included according to the software to be tested:
automatic data synchronization, manual data uploading and processing.
As an example of a real estate big data platform, there are a plurality of functions, and the related data information includes: basic building information, physical stores, group building information, personnel architecture information, operation architecture information, business district building information, business district stores information, building supplement information, building palace lattice, family stores information, market net sign data and the like.
Based on the data acquisition mode, the information acquisition mode is divided into three types:
automatic synchronization of data: basic building information, physical stores, group building information, personnel architecture information, operation architecture information and business circle building information;
manually uploading data: building supplementary information, building palace lattice and information of family stores;
and (3) manually uploading data and processing: market web tab data.
Step 202, if the software function included in the software to be tested has automatic synchronization data, setting a data synchronization task and executing a time point of the data synchronization task.
During specific implementation, a data synchronization task is set on a database or a job scheduling platform, and is used for automatically synchronizing the following data:
setting basic building information, physical stores, group building information, personnel architecture information, operation architecture information and business circle building information.
When setting the data synchronization task, setting field information required for synchronizing the data information and a time point for executing the data synchronization task.
And automatically executing the data synchronization task when the time reaches the time point.
And step 203, setting a prediction judgment result according to the data field of the synchronous data in the data synchronization task.
And if the data fields corresponding to the basic building information comprise city ID, city name, building ID and building name, the prediction judgment result is the data fields.
And 204, acquiring a data field corresponding to the synchronous data obtained after the data synchronization task is executed as a test result.
Step 205, determining whether the test result is matched with the corresponding prediction judgment result, if so, determining that the software function of the automatic synchronization data of the software to be tested is normal; otherwise, determining the software function abnormity of the automatic synchronization data of the software to be tested. The flow is ended.
In specific implementation, if it is determined that the test result is not matched with the set corresponding prediction judgment result and the data field included in the test result does not include the prediction judgment result, updating the preset judgment result according to the test result, setting the data synchronization task again, and performing the test at the time point of executing the data synchronization task.
The specific way of updating the preset determination result is not limited in the embodiment of the present application, and a corresponding data field may be added to the prediction determination result according to the test result.
When the software function of the automatic synchronization data of the software to be tested is determined to be normal, the data synchronization time, the data synchronization success and the data synchronization result can be output.
The output mode may be transmitted to a certain device for display, or may be displayed on the device.
When the software function of automatically synchronizing data of the software to be tested is determined to be abnormal, the data synchronization time and synchronization failure information can be output.
And step 206, if the software function included in the software to be tested has manual uploading data, setting a corresponding prediction judgment result based on the data to be manually uploaded.
If the data is uploaded manually, the method comprises the following steps: and predicting the judgment result to be corresponding data if the building supplementary information, the building palace lattice and the information of the family store are available.
And step 207, acquiring data which is obtained by manually uploading data based on the software to be tested and is used as a test result.
And uploading the data to be manually uploaded, and acquiring a test result by downloading the uploaded data.
Step 208, determining whether the test result is matched with the corresponding prediction judgment result, if so, determining that the software function of the manual uploading data of the software to be tested is normal; otherwise, determining the software function abnormity of the manual uploading data of the software to be tested. The flow is ended.
When the software function of the manual synchronization data of the software to be tested is determined to be normal, the data uploading time, the data uploading success and the data uploading result can be output.
The output mode may be transmitted to a certain device for display, or may be displayed on the device.
When the software function of the manual synchronization data of the software to be tested is determined to be abnormal, the data uploading time and the uploading failure information can be output.
Step 209, if the software function included in the software to be tested has manual data uploading and processing, setting a corresponding prediction judgment result based on the data to be manually uploaded and a preset processing rule.
And step 210, acquiring data which is manually uploaded based on the software to be tested and processed according to a preset processing rule as a test result.
Taking the market account web tag data as an example, some data need to be uploaded manually, and then the data are processed according to a preset rule to complete the whole test process, which specifically comprises the following steps:
manually imported data;
and processing the manually imported data according to a preset rule to obtain a processed result as a test result.
Step 211, determining whether the test result is matched with the corresponding prediction judgment result, if so, determining that the manual uploading data of the software to be tested and processing the software to be tested have normal functions; otherwise, determining the manual uploading data of the software to be tested and processing the software function exception.
When the manual synchronous data of the software to be tested is determined and the software is processed to be normal, the data uploading time, the processing success and the data processing result can be output.
The output mode may be transmitted to a certain device for display, or may be displayed on the device.
When the manual synchronous data of the software to be tested is determined and the software function abnormity is processed, the data uploading time and uploading processing failure information can be output.
In the embodiment of the application, software to be tested is classified into automatic synchronous data, manual uploading data and manual uploading data according to software functions and processed; and presetting a corresponding prediction judgment result according to the data for testing and the test function, acquiring the test result when testing the corresponding software function, and determining whether the corresponding software function is normal or not by matching the test result with the corresponding prediction judgment result. The method can test the software quickly, comprehensively and accurately on the premise of low cost.
When determining that the corresponding software function is abnormal, the method and the device can eliminate bug reasons according to the used test data, greatly shorten the abnormal positioning time, reduce the labor cost and improve the testing and developing efficiency.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a software function testing process in the third embodiment of the present application. The method comprises the following specific steps:
step 301, obtaining first data from a first platform based on the set data field. Step 302 is performed.
Second data is obtained from the second platform based on the set data fields, step 302.
Step 303, determining whether the first data and the second data match to verify whether the platform implementation logic is abnormal.
In this embodiment, the two platforms may be a service management platform and an analysis management platform, and data sources of the two platforms are the same data management platform.
Under different arrangements of development workers and code logics which are responsible for the two platforms, partial data calculation results are consistent on different platforms according to different roles, for example, data results such as volume of transaction, report rate and area matching degree displayed by the two platforms are consistent; if not, the logic implementation of at least one platform is abnormal.
Based on the same inventive concept, the embodiment of the application also provides a software function testing device. Referring to fig. 4, fig. 4 is a schematic structural diagram of a software function testing apparatus in an embodiment of the present application. The device comprises: a classification unit 401, a setting unit 402, an acquisition unit 403, and a determination unit 404.
A classification unit 401, configured to perform function classification on software to be tested according to software functions;
a setting unit 402, configured to set a corresponding prediction judgment result for each type of software function classified by the classification unit 401;
an obtaining unit 403, configured to obtain test results obtained by testing each type of software function classified by the classifying unit 401;
an obtaining unit 404, configured to determine whether the test result obtained by the obtaining unit 403 matches the corresponding prediction judgment result set by the setting unit 402, and if so, determine that the software function corresponding to the software to be tested is normal; otherwise, determining that the software function corresponding to the software to be tested is abnormal.
In another embodiment of the present invention, the substrate is,
a setting unit 402, configured to set a prediction judgment result according to a data field of synchronous data in a data synchronization task if a software function included in the software to be tested has automatic synchronous data;
an obtaining unit 403, specifically configured to set a data synchronization task and a time point for executing the data synchronization task when obtaining a test result for the software function of the automatic synchronization data; and acquiring a data field corresponding to the synchronous data obtained after the data synchronization task is executed as a test result.
In another embodiment of the present invention, the substrate is,
the setting unit 402 is further configured to, if the obtaining unit 404 determines that the test result does not match the set corresponding prediction judgment result, and a data field that is not included in the prediction judgment result exists in the data field included in the test result, update the preset judgment result according to the test result, set the data synchronization task again, and perform a test at a time point of executing the data synchronization task.
In another embodiment of the present invention, the substrate is,
a setting unit 402, configured to specifically set, if a software function included in the software to be tested has manual data uploading, a corresponding prediction judgment result based on the data to be manually uploaded;
the obtaining unit 403 is specifically configured to, when obtaining a test result for the software function of manually uploading data, obtain data obtained by manually uploading data based on the software to be tested as the test result.
In another embodiment of the present invention, the substrate is,
a setting unit 402, configured to specifically set, if a software function included in the software to be tested has manual data uploading and processing, a corresponding prediction judgment result based on the data to be manually uploaded and a preset processing rule;
the obtaining unit 403 is specifically configured to, when obtaining a test result for a software function of manually uploading data and processing the data, obtain data that is manually uploaded based on the software to be tested and processed according to a preset processing rule as the test result.
In another embodiment of the present invention, the substrate is,
the first obtaining unit is further configured to obtain first data from the first platform based on the set data field; acquiring second data from the second platform based on the set data field;
an obtaining unit 404, further configured to determine whether the first data and the second data match to verify whether the platform implementation logic is abnormal.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
In another embodiment, an electronic device is also provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the software functional test method when executing the program.
In another embodiment, a computer readable storage medium is also provided, having stored thereon computer instructions, which when executed by a processor, may implement the steps in the software functional test method.
In another embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the software functionality testing method.
Fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device may include: a Processor (Processor)510, a communication Interface (Communications Interface)520, a Memory (Memory)530 and a communication bus 540, wherein the Processor 510, the communication Interface 520 and the Memory 530 communicate with each other via the communication bus 540. Processor 510 may call logic instructions in memory 530 to perform the following method:
performing function classification on the software to be tested according to the software function;
obtaining test results for testing each type of software function respectively;
determining whether the test result is matched with the set corresponding prediction judgment result, and if so, determining that the software corresponding to the software to be tested has a normal function; otherwise, determining that the software function corresponding to the software to be tested is abnormal.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method for testing software functionality, the method comprising:
performing function classification on the software to be tested according to the software function;
obtaining test results for testing each type of software function respectively;
determining whether the test result is matched with the set corresponding prediction judgment result, and if so, determining that the software corresponding to the software to be tested has a normal function; otherwise, determining that the software function corresponding to the software to be tested is abnormal.
2. The method of claim 1, wherein if the software under test includes a software function with auto-sync data, the method further comprises: setting a prediction judgment result according to a data field of synchronous data in the data synchronization task;
obtaining test results for the software function of automatically synchronizing data, comprising:
setting a data synchronization task and a time point for executing the data synchronization task;
and acquiring a data field corresponding to the synchronous data obtained after the data synchronization task is executed as a test result.
3. The method of claim 2, further comprising:
and if the test result is determined not to be matched with the set corresponding prediction judgment result and the data field which is not included in the prediction judgment result exists in the data field included in the test result, updating the preset judgment result according to the test result, setting the data synchronization task again and executing the time point of the data synchronization task for testing.
4. The method of claim 1, wherein if the software function to be tested includes manual data upload, the method further comprises: setting a corresponding prediction judgment result based on data to be manually uploaded;
the method for acquiring the test result aiming at the software function of manually uploading data comprises the following steps:
and acquiring data after manually uploading data based on the software to be tested as a test result.
5. The method of claim 1, wherein if the software to be tested includes software functions for manual data upload and processing, the method further comprises: setting a corresponding prediction judgment result based on data to be manually uploaded and a preset processing rule;
test results are obtained for manual uploading of data and processing of this software function, including:
and acquiring data which is manually uploaded based on the software to be tested and processed according to a preset processing rule as a test result.
6. The method according to any one of claims 1-5, further comprising:
acquiring first data from the first platform based on the set data field;
acquiring second data from the second platform based on the set data field;
determining whether the first data matches the second data to verify whether platform implementation logic is abnormal.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-6 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 6.
9. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-6 when executed by a processor.
CN202210030345.6A 2022-01-12 2022-01-12 Software function testing method and device Pending CN114356781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210030345.6A CN114356781A (en) 2022-01-12 2022-01-12 Software function testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210030345.6A CN114356781A (en) 2022-01-12 2022-01-12 Software function testing method and device

Publications (1)

Publication Number Publication Date
CN114356781A true CN114356781A (en) 2022-04-15

Family

ID=81109959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210030345.6A Pending CN114356781A (en) 2022-01-12 2022-01-12 Software function testing method and device

Country Status (1)

Country Link
CN (1) CN114356781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576856A (en) * 2022-12-08 2023-01-06 浪潮通信信息***有限公司 Energy consumption evaluation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576856A (en) * 2022-12-08 2023-01-06 浪潮通信信息***有限公司 Energy consumption evaluation method and device

Similar Documents

Publication Publication Date Title
CN108984418B (en) Software test management method and device, electronic equipment and storage medium
CN107679683B (en) Software development progress early warning method and device
CN105487970B (en) A kind of method for showing interface and device
CN109582550B (en) Method, device and server for acquiring full-service scene fault set
CN113448862B (en) Software version testing method and device and computer equipment
CN111198815B (en) Compatibility testing method and device for user interface
CN111080633A (en) Screen defect detection method and device, terminal equipment and storage medium
CN111782556A (en) Automatic test method and device
CN111815169A (en) Business approval parameter configuration method and device
CN107220169B (en) Method and equipment for simulating server to return customized data
CN106557419B (en) Program testing method and device
CN112835808A (en) Interface testing method and device, computer equipment and storage medium
CN111190817B (en) Method and device for processing software defects
CN114356781A (en) Software function testing method and device
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN115511395B (en) Method, device, equipment and storage medium for allocating prison positions
CN111897737A (en) Omission detection method and device for program test of micro-service system
CN110716778A (en) Application compatibility testing method, device and system
CN108629699B (en) Data uploading method, data uploading equipment, storage medium and device
CN113485742B (en) Host application version registration method and device
CN112346994B (en) Test information association method, device, computer equipment and storage medium
CN115658478A (en) Test case screening method and device, electronic equipment and storage medium
CN112419052B (en) Transaction testing method, device, electronic equipment and readable storage medium
CN115098362A (en) Page testing method and device, electronic equipment and storage medium
CN114721943A (en) Method and device for determining test range

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