CN111352824A - Test method and device and computer equipment - Google Patents

Test method and device and computer equipment Download PDF

Info

Publication number
CN111352824A
CN111352824A CN201811575302.6A CN201811575302A CN111352824A CN 111352824 A CN111352824 A CN 111352824A CN 201811575302 A CN201811575302 A CN 201811575302A CN 111352824 A CN111352824 A CN 111352824A
Authority
CN
China
Prior art keywords
test
test case
execution result
view
database
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.)
Granted
Application number
CN201811575302.6A
Other languages
Chinese (zh)
Other versions
CN111352824B (en
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811575302.6A priority Critical patent/CN111352824B/en
Publication of CN111352824A publication Critical patent/CN111352824A/en
Application granted granted Critical
Publication of CN111352824B publication Critical patent/CN111352824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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 application provides a test method, a test device and computer equipment. The method comprises the following steps: receiving a test request, inquiring a preset database according to test characteristic information carried in the test request, and acquiring test case data matched with the test characteristic information; generating a test case view for representing the current test according to the obtained test case data; and calling a preset test application program, running the test case view to execute the test, acquiring an execution result, writing the acquired execution result into the test case view and storing the execution result.

Description

Test method and device and computer equipment
Technical Field
The present application relates to the field of testing technologies, and in particular, to a testing method, an apparatus, and a computer device.
Background
After the development of services such as application programs or products is completed, the quality of the developed services needs to be guaranteed through testing, and when the developed services are tested, taking the automatic testing of each function as an example, a test case needs to be compiled in advance according to each function of a specific application program so as to test and verify each function of the application program. The test case refers to a set of code segments written for a special target and including data such as test input, execution conditions, expected results and the like, and by running the test case, a certain application program path can be tested or whether the tested application program meets a certain specific requirement can be verified.
However, in the current test case, the related parameter data is compiled in the codes of the test case through the development language, and each test case needs to be correspondingly edited, so that the time required for generating the test case is longer, and the generation efficiency of the test case is lower; furthermore, development languages need to be mastered by editors, requirements on the editors for editing the test cases are high, and updating, management and maintenance are inconvenient; moreover, after the test case is tested and operated in a certain tested device, the tested device executing the test records the test case, when the test case is used for testing the tested device again, for example, the test case needs to be reused according to different application program conditions, but since the tested device records and operates the test case, a fault is reported, so that the test case cannot be operated in the tested device again, the test case cannot be reused, and the reuse ratio of the test case is low.
Disclosure of Invention
In a first aspect, an embodiment of the present application provides a testing method, where the method includes:
receiving a test request, inquiring a preset database according to test characteristic information carried in the test request, and acquiring test case data matched with the test characteristic information;
generating a test case view for representing the current test according to the obtained test case data;
and calling a preset test application program, running the test case view to execute the test, acquiring an execution result, writing the acquired execution result into the test case view and storing the execution result.
With reference to the first aspect, this embodiment provides a first possible implementation manner, where before the receiving a test request, the method further includes:
and editing the test case data in a spreadsheet mode, and storing the edited spreadsheet into the database.
With reference to the first aspect, an embodiment of the present application provides a second possible implementation manner, where the method further includes:
classifying and storing the data of each test case in the database according to a preset test case classification rule;
the test request also carries a classification identifier, and the obtaining of the test case data matched with the test feature information includes:
locating a classification database corresponding to the classification identifier from the database;
and inquiring the test case data matched with the test characteristic information from the classification database.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present application provides a third possible implementation manner, where the classifying and storing each test case in the database according to a preset test case classification rule includes:
classifying the test cases according to the application programs or products; and/or the presence of a gas in the gas,
classifying the test cases according to the test module in the application program or the test module in the product; and/or the presence of a gas in the gas,
classifying the test cases according to the test items in the test module; and/or the presence of a gas in the gas,
and classifying the test cases according to the test case attributes.
With reference to the first aspect and any one of the first to third possible implementation manners of the first aspect, an embodiment of the present application provides a fourth possible implementation manner, where the method further includes:
and generating a test report according to the execution result, and sending the test report to a preset tester.
With reference to the first aspect and any one of the first to the third possible implementation manners of the first aspect, an embodiment of the present application provides a fifth possible implementation manner, where the method further includes:
and counting the total test execution times of each test case and the test success times of the test cases, and calculating the execution success rate of the test cases according to the test success times and the total test execution times.
With reference to the first aspect and any one of the first to third possible implementation manners of the first aspect, an embodiment of the present application provides a sixth possible implementation manner, where the method further includes:
and displaying the test case view written with the execution result.
With reference to the first aspect and any one of the first to the third possible implementation manners of the first aspect, an embodiment of the present application provides a seventh possible implementation manner, where the test feature information includes: one or any combination of the test case name, the test case category, the test case keyword or the test case keyword.
In a second aspect, an embodiment of the present application provides a testing apparatus, including:
the query module is used for receiving a test request, querying a preset database according to test characteristic information carried in the test request, and acquiring test case data matched with the test characteristic information;
the view generation module is used for generating a test case view for representing the current test according to the obtained test case data;
and the test module is used for calling a preset test application program, running the test case view to execute the test, acquiring an execution result, and writing the acquired execution result into the test case view and storing the execution result.
In a third aspect, an embodiment of the present application provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the method described above.
Compared with the prior art, the method has the following beneficial effects:
according to the test method, the test device and the computer equipment, a test request is received, a preset database is inquired according to test characteristic information carried in the test request, and test case data matched with the test characteristic information is obtained; generating a test case view for representing the current test according to the obtained test case data; and calling a preset test application program, running the test case view to execute the test, acquiring an execution result, writing the acquired execution result into the test case view and storing the execution result. Therefore, the database is used for storing the test case data, codes do not need to be compiled through a development language, the time for generating the test case is short, and the efficiency for generating the test case is high; furthermore, a test case view which uniquely identifies the test is generated according to the test case data extracted from the database, so that the tested equipment executing the test is considered as a new test case, the test is operated and executed, and the multiple multiplexing of the test cases in the database can be realized; moreover, the obtained execution result of the test case view does not influence the original test case in the database, and the execution result of each test case can be effectively obtained.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of a testing method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a 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 embodiments of the present application clearer, 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 some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Fig. 1 is a schematic flowchart of a testing method provided in an embodiment of the present application. As shown in fig. 1, the process includes:
step 101, receiving a test request, inquiring a preset database according to test characteristic information carried in the test request, and acquiring test case data matched with the test characteristic information;
in this embodiment, as an optional embodiment, before the receiving the test request, the method further includes:
and editing the test case data in a spreadsheet mode, and storing the edited spreadsheet into the database.
In this embodiment, the Database (Database) is a warehouse for organizing, storing and managing data according to a data structure, each test case corresponds to a row and a column of an electronic form (Excel) in the Database, and the test case is characterized by the parameter data as described above, for example, the data in the first row and the first column corresponds to the parameter data in a test case. As an alternative embodiment, the test cases exist in a spreadsheet in the format of data. Of course, in practical application, the test case data can also be directly entered and stored in the database in a manual entry mode, and the database stores each test case data.
Because the common test can reuse a large number of original test cases, and edit the original test cases according to the newly increased requirements of the service to obtain the test cases used as a new round of test, the code segments of all the test cases, namely the test application programs, can be mostly reused. In this embodiment, test case data and a test application included in a test case are separated, and the test case data (parameter data) and the test application are extracted. The test case data of the test case only needs to be input into the database, code segment editing does not need to be carried out on the operation test of the test case data, and in the subsequent test case operation, the test case data in the database can be operated by calling a preset test application program edited by the code segment.
In this embodiment, as an optional embodiment, the test feature information includes but is not limited to: one or any combination of test case names, test case keywords, test case categories, test case keywords and the like.
In this embodiment, one or more test cases matched with the keyword or the test case name are screened from the database by extracting the keyword or the test case name in the test feature information.
In this embodiment, as an optional embodiment, the method further includes:
and classifying and storing the data of each test case in the database according to a preset test case classification rule.
In this embodiment, if the test request further carries the classification identifier, obtaining test case data matched with the test feature information includes:
locating a classification database corresponding to the classification identifier from the database;
and inquiring the test case data matched with the test characteristic information from the classification database.
In this embodiment, if the test request does not carry the classification identifier, the test feature information is matched with each test case data in the database to obtain the matched test case data.
In the embodiment, the test case data in the database is classified and stored, so that the test case can be conveniently managed and maintained. As an optional embodiment, the classifying and storing the test case data in the database according to the preset test case classification rule includes:
classifying the test cases according to the application programs or products; and/or the presence of a gas in the gas,
classifying the test cases according to the test module in the application program or the test module in the product; and/or the presence of a gas in the gas,
classifying the test cases according to the test items in the test module; and/or the presence of a gas in the gas,
and classifying the test cases according to the test case attributes.
In this embodiment, as an optional embodiment, the test case attributes include but are not limited to: data type, execution conditions (e.g., software and hardware environment for test case execution, logic conditions for test case execution, etc.), data size, etc.
In this embodiment, test cases belonging to the same application program or the same product may be classified into a first class classification; test cases belonging to the same test module can be classified into a second class under the first class; test cases belonging to the same test item can be classified into a third class under the second class; or classifying the test cases according to the test case attributes. Therefore, the editing management efficiency of a large number of test cases can be improved, the query can be conveniently carried out according to the test characteristic information, and the corresponding test cases can be rapidly queried for testing.
102, generating a test case view for representing the current test according to the acquired test case data;
in this embodiment, a View (View) is a virtual table in a computer database, and the contents of the View can be defined or customized by a query. The virtual table has the same format as the real table, and each row and column contains data of a data identifier, wherein the data identifier may be a data name or a data serial number, and the like. That is, the view does not exist in the database in the form of data or data bars, the row and column data is associated with the spreadsheet referenced by the query defining the view, and the associated spreadsheet is dynamically invoked when the view is operated upon.
In this embodiment, as an optional embodiment, the test case view used for the current test may be characterized by information such as a test case view identifier or a test case view version number. Therefore, for each test, even if the test cases contained in the test case view are the same, different test case attempts correspond to different test case view identifiers or test case view version numbers, so that when the test case is input to the tested device for testing, the tested device considers that the test case attempts are different from the recorded test case views, and therefore the current test case view identified by the test case view identifiers or the test case view version numbers is operated, the test case error reporting can be effectively avoided, the same test case can be reused for many times in a mode of different test case view identifiers or version numbers, and the reuse rate of the test case is high.
In this embodiment, the specific process of generating the view may refer to related art documents, and the detailed description is omitted here.
Step 103, calling a preset test application program, running the test case view to execute the test, acquiring an execution result, writing the acquired execution result into the test case view and storing the execution result.
In this embodiment, the code segments for running each test case may be multiplexed. According to the embodiment, the test application program for executing the test on the test case is compiled in advance, so that the workload of editing the test case by an editor can be effectively reduced, the editing efficiency is improved, and the technical requirements on the editor can be reduced.
In this embodiment, by calling a preset automated test application, the test application may automatically execute data (test case) in the generated test case view, and write back an execution result to the test case view. For example, if the test case view contains a plurality of test cases, the execution result obtained by executing each test case is written into the tail part of the test case, so that the test is performed by using the test case view, and the execution result of each test case can be written into the test case view by using a view method, so that the successfully passed test cases and the test cases which failed in the test can be known in detail. The state of the test case can be tracked after the test case view is executed each time, so that the test case result of each test can be recorded and stored.
In this embodiment, as an optional embodiment, the execution result includes: success and failure, if the failure, the method also includes: the reason for the test failure is recorded.
In this embodiment, after the obtained execution result is written into the test case view, the test case view is stored in the database. Therefore, by storing the execution results of the test case views, the test personnel can conveniently call the execution results of the test cases and know the execution results of the same test case in different test environments.
In the embodiment, the database is queried according to the test feature information contained in the test request, the test case data matched with the test feature information is obtained, the matched test case data is organized, the test case view with the unique identifier is generated, and therefore the corresponding test application program is called to perform testing according to the test case view with the unique identifier. Therefore, the test case is stored by utilizing the database, codes do not need to be compiled through a development language, the requirement on editors for editing the test case is low, the test case is convenient to update, manage and maintain, meanwhile, the time required for generating the test case is short, and the efficiency of generating the test case is high; furthermore, during testing, the query is carried out according to the test request, corresponding test case data are extracted from the database, a test case view for uniquely identifying the test is generated according to the extracted test case data, the test case view generated by each test has different identification, and the tested equipment for executing the test is considered as a new test case, so that the test is operated and executed, the original test case in the database cannot be influenced by the execution result of the obtained test case view, the multiple reuse of the test cases in the database can be realized, and the repeated utilization rate of the test cases is effectively improved; in addition, the database technology is used for managing the test case data, the test case can be inquired according to the test characteristic information carried in the test request, the test case can be dynamically configured, and different function requirements of various test environments are met.
In this embodiment, the relevant person may also be notified of the execution result obtained by the test. Thus, as an alternative embodiment, the method further comprises:
and generating a test report according to the execution result, and sending the test report to a preset tester.
In this embodiment, as an optional embodiment, after the automated testing application completes the test case view, a test report is generated according to an execution result, a mail sending function or a message sending function in the automated testing application is called, and the test report is sent to a relevant tester.
In this embodiment, since the execution result of each test case can be recorded, the execution results of each test case in different test environments can be counted. As an alternative embodiment, the method further comprises:
and counting the total test execution times of each test case and the test success times of the test cases, and calculating the execution success rate of the test cases according to the test success times and the total test execution times.
In this embodiment, as an optional embodiment, the method further includes:
and displaying the test case view written with the execution result.
In the embodiment, the execution result is displayed, so that the execution result state and the overall test condition of the test case view can be intuitively obtained.
In this embodiment, the test cases stored in the database may also be edited, for example, the test cases may be modified, deleted, newly added, and the like, so that the test cases may be updated.
The following is a part of code segments (java language example) for storing test cases in a database according to the embodiment of the present application:
Figure BDA0001916563300000101
Figure BDA0001916563300000111
the following code fragments are the code fragments (java language) for executing the test cases (test application and organizing the generated test case view):
Figure BDA0001916563300000112
Figure BDA0001916563300000121
Figure BDA0001916563300000131
Figure BDA0001916563300000141
Figure BDA0001916563300000151
fig. 2 is a schematic structural diagram of a testing apparatus according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
the query module 21 is configured to receive a test request, query a preset database according to test feature information carried in the test request, and acquire test case data matched with the test feature information;
in this embodiment, as an optional embodiment, the testing feature information includes: one or any combination of the test case name, the test case category, the test case keyword or the test case keyword.
In this embodiment, one or more test cases matched with the keyword or the test case name are screened from the database by extracting the keyword or the test case name in the test feature information.
The view generating module 22 is configured to generate a test case view for representing a current test according to the obtained test case data;
in this embodiment, as an optional embodiment, the test case view used for the current test may be characterized by information such as a test case view identifier or a test case view version number.
The test module 23 is configured to invoke a preset test application, run the test case view to execute a test, obtain an execution result, write the obtained execution result in the test case view, and store the obtained execution result.
In this embodiment, as an optional embodiment, the execution result includes: success and failure, if the failure, the method also includes: the reason for the test failure is recorded.
In this embodiment, as an optional embodiment, the apparatus further includes:
and the test case editing module (not shown in the figure) is used for editing the test case data in a spreadsheet mode and storing the edited spreadsheet into the database.
In this embodiment, as another optional embodiment, the apparatus further includes:
a test case classification module (not shown in the figure) for classifying and storing each test case in the database according to a preset test case classification rule;
the test request also carries a classification identifier, and the obtaining of the test case data matched with the test feature information includes:
locating a classification database corresponding to the classification identifier from the database;
and inquiring the test case data matched with the test characteristic information from the classification database.
In this embodiment, as an optional embodiment, the test case classification module is specifically configured to:
classifying the test cases according to the application programs or products; and/or the presence of a gas in the gas,
classifying the test cases according to the test module in the application program or the test module in the product; and/or the presence of a gas in the gas,
classifying the test cases according to the test items in the test module; and/or the presence of a gas in the gas,
and classifying the test cases according to the test case attributes.
In this embodiment, as a further optional embodiment, the apparatus further includes:
and the test report sending module is used for generating a test report according to the execution result and sending the test report to a preset tester.
In this embodiment, as a further optional embodiment, the apparatus further includes:
and the counting module is used for counting the total test execution times of each test case and the test success times of the test cases, and calculating the execution success rate of the test cases according to the test success times and the total test execution times.
In this embodiment, as a further optional embodiment, the apparatus further includes:
and the display module is used for displaying the test case view written with the execution result.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 3, an embodiment of the present application provides a computer device for executing the testing method in fig. 1 to 3, the device includes a memory 1000, a processor 2000 and a computer program stored in the memory 1000 and executable on the processor 2000, wherein the processor 2000 implements the steps of the testing method when executing the computer program.
Specifically, the memory 1000 and the processor 2000 can be general-purpose memories and processors, which are not limited in particular, and the processor 2000 can execute the test method when executing the computer program stored in the memory 2000.
Corresponding to the testing method of fig. 1, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the testing method.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc., on which a computer program can be executed when executed to perform the above-described test method.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, 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.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including 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 application. 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.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of testing, the method comprising:
receiving a test request, inquiring a preset database according to test characteristic information carried in the test request, and acquiring test case data matched with the test characteristic information;
generating a test case view for representing the current test according to the obtained test case data;
and calling a preset test application program, running the test case view to execute the test, acquiring an execution result, writing the acquired execution result into the test case view and storing the execution result.
2. The method of claim 1, wherein prior to said receiving a test request, said method further comprises:
and editing the test case data in a spreadsheet mode, and storing the edited spreadsheet into the database.
3. The method of claim 1, further comprising:
classifying and storing the data of each test case in the database according to a preset test case classification rule;
the test request also carries a classification identifier, and the obtaining of the test case data matched with the test feature information includes:
locating a classification database corresponding to the classification identifier from the database;
and inquiring the test case data matched with the test characteristic information from the classification database.
4. The method according to claim 3, wherein the classifying and storing the test cases in the database according to the preset test case classification rule comprises:
classifying the test cases according to the application programs or products; and/or the presence of a gas in the gas,
classifying the test cases according to the test module in the application program or the test module in the product; and/or the presence of a gas in the gas,
classifying the test cases according to the test items in the test module; and/or the presence of a gas in the gas,
and classifying the test cases according to the test case attributes.
5. The method according to any one of claims 1 to 4, further comprising:
and generating a test report according to the execution result, and sending the test report to a preset tester.
6. The method according to any one of claims 1 to 4, further comprising:
and counting the total test execution times of each test case and the test success times of the test cases, and calculating the execution success rate of the test cases according to the test success times and the total test execution times.
7. The method according to any one of claims 1 to 4, further comprising:
and displaying the test case view written with the execution result.
8. The method of any of claims 1 to 4, wherein the test feature information comprises: one or any combination of the test case name, the test case category, the test case keyword or the test case keyword.
9. A test apparatus, the apparatus comprising:
the query module is used for receiving a test request, querying a preset database according to test characteristic information carried in the test request, and acquiring test case data matched with the test characteristic information;
the view generation module is used for generating a test case view for representing the current test according to the obtained test case data;
and the test module is used for calling a preset test application program, running the test case view to execute the test, acquiring an execution result, and writing the acquired execution result into the test case view and storing the execution result.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 1 to 8 are implemented by the processor when executing the computer program.
CN201811575302.6A 2018-12-21 2018-12-21 Test method and device and computer equipment Active CN111352824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811575302.6A CN111352824B (en) 2018-12-21 2018-12-21 Test method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811575302.6A CN111352824B (en) 2018-12-21 2018-12-21 Test method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN111352824A true CN111352824A (en) 2020-06-30
CN111352824B CN111352824B (en) 2023-07-07

Family

ID=71196809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811575302.6A Active CN111352824B (en) 2018-12-21 2018-12-21 Test method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN111352824B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813679A (en) * 2020-07-10 2020-10-23 北京思特奇信息技术股份有限公司 Method and device for executing test case based on python, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006047741A2 (en) * 2004-10-27 2006-05-04 Bae Systems Land & Armaments L.P. Software test environment for regression testing ground combat vehicle software
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
CN103761189A (en) * 2014-02-17 2014-04-30 广东欧珀移动通信有限公司 Test case management method and system
CN104182335A (en) * 2014-05-09 2014-12-03 中国光大银行 Software testing method and device
CN104991777A (en) * 2015-07-14 2015-10-21 普元信息技术股份有限公司 System and method for implementing view development of Web application automatic testing
US20160085663A1 (en) * 2014-09-23 2016-03-24 Red Hat, Inc. Automatic identification of software test cases
US9304893B1 (en) * 2013-03-08 2016-04-05 Emc Corporation Integrated software development and test case management system
CN107678951A (en) * 2017-09-21 2018-02-09 平安科技(深圳)有限公司 Test exemple automation management method, device, equipment and storage medium
CN107704393A (en) * 2017-09-29 2018-02-16 武汉斗鱼网络科技有限公司 Data test method, apparatus and electronic equipment
US20180150381A1 (en) * 2016-11-29 2018-05-31 Bank Of America Corporation Feature File Validation Tool
CN108874661A (en) * 2018-05-07 2018-11-23 上海陆家嘴国际金融资产交易市场股份有限公司 Test mapping relations library generating method, device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006047741A2 (en) * 2004-10-27 2006-05-04 Bae Systems Land & Armaments L.P. Software test environment for regression testing ground combat vehicle software
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
US9304893B1 (en) * 2013-03-08 2016-04-05 Emc Corporation Integrated software development and test case management system
CN103761189A (en) * 2014-02-17 2014-04-30 广东欧珀移动通信有限公司 Test case management method and system
CN104182335A (en) * 2014-05-09 2014-12-03 中国光大银行 Software testing method and device
US20160085663A1 (en) * 2014-09-23 2016-03-24 Red Hat, Inc. Automatic identification of software test cases
CN104991777A (en) * 2015-07-14 2015-10-21 普元信息技术股份有限公司 System and method for implementing view development of Web application automatic testing
US20180150381A1 (en) * 2016-11-29 2018-05-31 Bank Of America Corporation Feature File Validation Tool
CN107678951A (en) * 2017-09-21 2018-02-09 平安科技(深圳)有限公司 Test exemple automation management method, device, equipment and storage medium
CN107704393A (en) * 2017-09-29 2018-02-16 武汉斗鱼网络科技有限公司 Data test method, apparatus and electronic equipment
CN108874661A (en) * 2018-05-07 2018-11-23 上海陆家嘴国际金融资产交易市场股份有限公司 Test mapping relations library generating method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813679A (en) * 2020-07-10 2020-10-23 北京思特奇信息技术股份有限公司 Method and device for executing test case based on python, electronic equipment and storage medium
CN111813679B (en) * 2020-07-10 2023-06-30 北京思特奇信息技术股份有限公司 Method and device for executing test case based on python, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111352824B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
CN109739934B (en) Difference set account checking method, medium, computer equipment and system
CN106656536B (en) Method and equipment for processing service calling information
US8589884B2 (en) Method and system for identifying regression test cases for a software
CN106951369B (en) Management method and device for joint debugging test
CN109710528B (en) Test script generation method, device, equipment and medium
CN111639101B (en) Method, device and system for correlating rule engine system of internet of things and storage medium
CN107291745B (en) Data index management method and device
CN112925757A (en) Method, equipment and storage medium for tracking operation log of intelligent equipment
CN114385551B (en) Log time-sharing management method, device, equipment and storage medium
CN114510356A (en) Log tracking method, device, equipment and medium for calling operation between microservices
CN111352824B (en) Test method and device and computer equipment
CN113010208A (en) Version information generation method, version information generation device, version information generation equipment and storage medium
CN112631889A (en) Portrayal method, device and equipment for application system and readable storage medium
CN116775488A (en) Abnormal data determination method, device, equipment, medium and product
CN114090372A (en) Fault processing method and device
CN114265883A (en) Method, equipment and storage medium for real-time data management
WO2017117870A1 (en) Processing method and apparatus for trap instruction trap
CN110020348B (en) Early warning method and device for circled events
CN112486461A (en) Information processing system based on springboot frame
JP5444071B2 (en) Fault information collection system, method and program
CN113641523B (en) Log processing method and device
CN112417085A (en) Message comparison method and device, computer equipment and storage medium
CN116662274A (en) Table file export method, system and electronic equipment
CN116226168A (en) Method and system for verifying wide-table data
CN113704229A (en) Data tag management method based on business audit and retrieval

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