CN111290956B - Brain graph-based test method and device, electronic equipment and storage medium - Google Patents

Brain graph-based test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111290956B
CN111290956B CN202010100561.4A CN202010100561A CN111290956B CN 111290956 B CN111290956 B CN 111290956B CN 202010100561 A CN202010100561 A CN 202010100561A CN 111290956 B CN111290956 B CN 111290956B
Authority
CN
China
Prior art keywords
test
brain
test case
information
dimensional array
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
Application number
CN202010100561.4A
Other languages
Chinese (zh)
Other versions
CN111290956A (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.)
Guiyang Huochebang Technology Co ltd
Original Assignee
Guiyang Huochebang 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 Guiyang Huochebang Technology Co ltd filed Critical Guiyang Huochebang Technology Co ltd
Priority to CN202010100561.4A priority Critical patent/CN111290956B/en
Publication of CN111290956A publication Critical patent/CN111290956A/en
Application granted granted Critical
Publication of CN111290956B publication Critical patent/CN111290956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a brain graph-based test method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, tester information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a tester, and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; and inserting the test result, the tester information and the system time into brain graph object data corresponding to the target test case. The embodiment of the application realizes the recording of related data of user operation, and further can trace and count the test data of each test case in the brain graph.

Description

Brain graph-based test method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a brain graph-based testing method, device, electronic apparatus, and storage medium.
Background
In order to determine whether each function in a system can be normally executed, a corresponding test case can be written for each function, and the corresponding function is tested through the test case.
Conventional test case execution can be divided into the following:
1. executing test cases maintained in local tools such as excel; that is, a plurality of test cases are stored in the excel, the test cases are performed on the respective functions, and the corresponding test results are written into the corresponding positions of the excel.
2. The method comprises the steps that online test case execution is carried out inside a company; the execution principle is consistent with the mode;
3. the execution is based on a local or online brain graph, and the labeling of the execution result is carried out.
The former two modes have the defect of low execution speed, and along with the development of the Internet, more and more testers tend to write and execute the use cases through brain pictures. However, it is not possible to trace back and count test data.
Disclosure of Invention
The embodiment of the application aims to provide a brain graph-based test method, a brain graph-based test device, electronic equipment and a storage medium, which are used for solving the problem that test data cannot be traced and counted through brain graph test in the prior art.
In a first aspect, an embodiment of the present application provides a brain map-based testing method, including: receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; and inserting the test result, the tester information and the system time into brain graph object data corresponding to the target test case.
According to the embodiment of the application, after the test result adding request is received, the test result, the tester information and the system time are obtained from the request, and the three information are inserted into the brain graph object data corresponding to the target test case, so that the record of relevant data in user operation is realized, and the test data of each test case in the brain graph can be traced and counted.
Further, after receiving the test result adding request corresponding to the target test case, the method further includes: traversing brain map object data corresponding to the brain map to generate a corresponding two-dimensional array; the two-dimensional array comprises at least one sub-two-dimensional array, and one test case corresponds to one sub-two-dimensional array.
According to the embodiment of the application, the two-dimensional array can be identified and stored by the brain map generation system, so that a later-stage user can conveniently inquire.
Further, after generating the corresponding two-dimensional array according to the relationship between the nodes, the method further includes: traversing the sub-two-dimensional arrays in the two-dimensional arrays, and marking the sub-two-dimensional arrays if the number of elements in the sub-two-dimensional arrays is larger than a preset value.
According to the embodiment of the application, the sub two-dimensional array is automatically marked, so that manual marking is not needed, and the working efficiency of a tester is greatly improved.
Further, the preset value is 3, and the marking the sub two-dimensional array includes:
and marking the first element of the penultimate element in the sub two-dimensional array as a desired result, marking the second element of the penultimate element as a step, marking the third element of the penultimate element as a test case, and marking the rest elements as a catalog.
The embodiment of the application can automatically distinguish the catalogue, the use cases and the steps, the expected result is 4 types, manual marking is not needed, and the working efficiency of the tester is greatly improved.
Further, the tester information includes a test role and a user identifier, and after the test result, the tester information and the system time are inserted into the brain map object data corresponding to the target test case, the method further includes:
if a plurality of pieces of test information are stored in brain chart object data corresponding to the test cases, the test information comprises a test result, tester information and system time, and the test roles in any two pieces of test information are the same, the test information with the nearest system time is reserved.
In the embodiment of the application, if different testers with the same test role execute the same test case, only the test result information of the last tester is reserved, so that useless data is prevented from being recorded.
Further, after the latest test information of the system time is retained, the method further includes: and if a plurality of pieces of test information are stored in the brain map object data corresponding to the test cases, marking the sub two-dimensional array as a self-test case. So that the later user knows which test cases are self-test cases.
Further, after the test result, the tester information and the system time are inserted into the sub two-dimensional array corresponding to the target test case, the method further comprises: counting the total number of executed cases, success rate, failure rate and self-test passing rate in the brain graph, and storing the total number of executed cases, success rate, failure rate, self-test passing rate and test results corresponding to each test case into a specified database; the self-test passing rate is obtained by counting the test cases marked as the self-test cases.
According to the embodiment of the application, the brain map is converted into the two-dimensional array which can be identified by the system, and the two-dimensional array can be used for counting the total number of executed, the success rate, the failure rate and the self-test passing rate in the test case, so that the statistics of test data is realized by four lines.
In a second aspect, an embodiment of the present application provides a brain map-based testing device, including: the receiving module is used for receiving a test result adding request corresponding to the target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; and the inserting module is used for inserting the test result, the tester information and the system time into the brain graph object data corresponding to the target test case.
In a third aspect, an embodiment of the present application provides an electronic device, including: the device comprises a processor, a memory and a bus, wherein the processor and the memory complete communication with each other through the bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer readable storage medium comprising: the non-transitory computer-readable storage medium stores computer instructions that cause the computer to perform the method of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a brain-graph-based testing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a brain diagram according to an embodiment of the present application;
FIG. 3 is a schematic diagram of brain map object data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a device structure according to an embodiment of the present application;
fig. 5 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
Brain Map, also called thinking guide Map, english is The Mind Map, is an effective graphic thinking tool for expressing divergent thinking. The brain graph is widely applied, for example, the test case can be displayed in the form of the brain graph, and the creation is simple and efficient.
In order to solve the problem that test cases are written in the prior art in a brain graph form, because the general brain graph is edited based on local and has no unified editing standard, even if the general brain graph is uploaded to a server, the general brain graph cannot be analyzed and cannot trace and count test data, the embodiment of the application provides a test method, which can realize acquisition of the test data and further realize tracing and counting of the test data, and the specific method is described in detail below.
Fig. 1 is a schematic flow chart of a brain graph-based testing method according to an embodiment of the present application, and as shown in fig. 1, the method is applied to a testing device, where the testing device may be an intelligent electronic device such as a desktop computer, a tablet computer, a notebook computer, a smart phone, an intelligent wearable device, etc. The method comprises the following steps:
step 101: receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes;
step 102: and inserting the test result, the tester information and the system time into brain graph object data corresponding to the target test case.
The following is a detailed description of steps 101-102.
In step 101, the brain graph includes at least one test case, and the structure of the test case is a tree structure, as shown in fig. 2, and the brain graph includes a root node, a parent node connected to the root node, and a leaf node connected to the parent node. A test case object in the brain graph to be processed refers to a node set contained in any path from the root directory to any last leaf node. Still taking fig. 2 as an example, the "test case name 1" and the "test case name 2" are all test cases, and the steps and the expected results corresponding to the test cases are further included behind the test cases. Before the test case, the method also comprises a catalog corresponding to the test case, and the catalog can be understood as the type of the test case.
Testing can be categorized into functional testing and automated testing; the functional test is to select one test case from the brain chart by a tester, and perform corresponding clicking operation according to the requirement of the selected test case so as to realize the functional test of the system to be tested. After the test is completed, the tester adds a new node behind the test case, such as the "successful" node framed by the rectangular box in FIG. 2. The new node is used to characterize the test results, i.e. success or failure. The automatic test means that the brain chart is put into a system to be tested, the system to be tested automatically selects test cases from the brain chart to test, and the test results are automatically added behind the corresponding test cases.
It will be appreciated that the target test case is a selected one of the test cases in the brain map. Taking a functional test as an example: when a tester adds a new node behind the target test case, the test device may receive a test result addition request to add the new node. The test result addition request includes a test result, tester information, and a system time. Wherein the test result is success or failure; the tester information may include a user identification and a test role, where the user identification may be an account number of the tester, used to represent an identification of the unique identity of the user. The test roles are used to characterize the identity of a tester, such as a developer or tester. After logging in, the basic information of the tester is stored on the http head, and the testing device can obtain the user identification of the tester by analyzing the http head. And then obtaining the corresponding test role of the tester through other interfaces. The system time may be the time when the test result addition request is received.
In step 102, the brain map is a tree structure displayed at the front end, the brain map exists in the form of eleven brain map object data at the rear end, fig. 3 is a schematic diagram of brain map object data provided by the embodiment of the present application, and as can be seen from fig. 3, original object data corresponding to the brain map is in the form of date-child. The relationship between the nodes in the brain graph can be seen by date-child, i.e., the node placed in date is the parent of the node in child. After the test device acquires the test result, the tester information and the system time, the test result, the tester information and the system time are inserted into the brain graph object data corresponding to the target test case.
According to the embodiment of the application, after the test result adding request is received, the test result, the tester information and the system time are obtained from the request, and the three information are inserted into the brain graph object data corresponding to the target test case, so that the record of relevant data in user operation is realized, and the test data of each test case in the brain graph can be traced and counted.
On the basis of the above embodiment, after receiving the test result adding request corresponding to the target test case, the method further includes:
traversing brain map object data corresponding to the brain map to generate a corresponding two-dimensional array; the two-dimensional array comprises at least one sub-two-dimensional array, and one test case corresponds to one sub-two-dimensional array.
In a specific implementation process, the whole brain map corresponds to one large brain map object data, and the brain map object data corresponding to all the test cases in the brain map are included. The two-dimensional array into which brain map object data is converted is as follows:
it should be noted that the above two-dimensional array is given only as part of the data, as just one example. The two-dimensional array is a data structure for converting the data of the brain map into a tiled data structure, and mainly comprises the following two key fields: the name is the node name, and execution results and executives are recorded by execution. User_id included in execution after "expected result 1.1" and "expected result 1.2" is user identification, result is test result, and time is system time.
In addition, the two-dimensional array comprises two sub-two-dimensional arrays of test cases, and each test case corresponds to one sub-two-dimensional array.
According to the embodiment of the application, the two-dimensional array can be identified and stored by the brain map generation system, so that a later-stage user can conveniently inquire.
On the basis of the above embodiment, after generating the corresponding two-dimensional array according to the relationship between the nodes, the method further includes:
traversing the sub-two-dimensional arrays in the two-dimensional arrays, and marking the sub-two-dimensional arrays if the number of elements in the sub-two-dimensional arrays is larger than a preset value.
In a specific implementation process, for each sub-two-dimensional array in the two-dimensional array, whether the number of elements in the sub-two-dimensional array is larger than a preset value is judged. The number of elements in the sub two-dimensional array can be determined by calculating the number of names, and the first sub two-dimensional array of the two-dimensional array has 5 elements in total. The preset value may be 3, or may be another positive integer. If the number of the elements in the sub two-dimensional array is larger than a preset value, marking each element in the sub two-dimensional array. Wherein, the preset value is 3, and the specific method for marking is as follows:
marking the first element of the two-dimensional array as a desired result, marking the second element as a step, marking the third element as a test case, and marking the rest elements as a catalog.
Taking the first sub-two-dimensional array in the two-dimensional array as an example, the number of elements in the sub-two-dimensional array is 5 and greater than 3, so that the sub-two-dimensional array needs to be marked. The last element 'expected result 1.1' in the sub two-dimensional array is marked as an expected result, the last element 'step 1.1' in the sub two-dimensional array is marked as a step, the last third element 'test case name 1' in the sub two-dimensional array is marked as a test case, and the remaining elements 'module 2' and 'I are a demand name' in the sub two-dimensional array are marked as catalogues. And marking other sub two-dimensional arrays with the number of elements being more than 3 according to the method. The marked two-dimensional array is as follows:
as can be seen from the above, the type added behind each element in the labeled two-dimensional array is used for labeling the attribute of each element, namely the catalog, the test case, the step and the expected result.
The embodiment of the application can enable the testing device to quickly acquire which element is the expected result by marking the sub two-dimensional array with the number of elements larger than the preset value, acquire the testing result, the tester information and the system time from the expected result, and is also beneficial to statistics of each testing data.
On the basis of the above embodiment, the tester information includes a test role and a user identifier, and after the test result, the tester information and the system time are inserted into the brain map object data corresponding to the target test case, the method further includes:
if a plurality of pieces of test information are stored in brain chart object data corresponding to the test cases, the test information comprises a test result, tester information and system time, and the test roles in any two pieces of test information are the same, the test information with the nearest system time is reserved.
In a specific implementation process, because the application scenario of the embodiment of the application is a test, the test role may include a developer and a tester, and of course may also include other roles, and the test role may be increased or decreased according to the actual role setting of the company. Regardless of the test role, the corresponding test information is generated by using the test case in the brain map to perform the test and adding a new node to the test case. If two persons in the same test role execute the same test case successively, the test information corresponding to the person who executes the test case first can be regarded as useless information, and in order to ensure that the data in the two-dimensional array are valid, so that redundant invalid data are not saved, the test information of the test case is deleted.
For example: the test roles are Zhang three and Lifour of the tester, zhang three is tested by the test case A in the brain chart 10:00 at 15 days of 1 month in 2020, and new nodes are added for the test case, and the test device acquires the test information corresponding to the test case A as follows: test failure, zhang SanID and 2020-1-15-10:00. And in the method, the test is carried out by using the test case A in the brain chart in 15 days of 15 months of 1 in 2020, and new nodes are added for the test case, and the test device acquires the test information corresponding to the test user A as follows: successful test, lifour ID and 2020-1-15-15:00. Because the test roles of Zhang three and Liu four are the same, and because the system time of Liu four is later than that of Zhang three, the test device deletes the test information corresponding to Zhang three, and only the test information of Liu four is reserved.
Another example is: the test role of Zhang III is a tester (qa), the test role of Liv IV is a developer (dev), zhang III is tested by a test case A in a brain chart 10:00 at 1 month and 15 days in 2020, new nodes are added for the test case, and the test device acquires the test information corresponding to the test case A as follows: test success, zhang SanID and 2020-1-15-10:00. And in the method, the test is carried out by using the test case A in the brain chart in 15 days of 15 months of 1 in 2020, and new nodes are added for the test case, and the test device acquires the test information corresponding to the test user A as follows: successful test, lifour ID and 2020-1-15-15:00. Because the test roles of Zhang III and Lifour are different, the test roles can be reserved in brain graph object data corresponding to the test case A.
In the embodiment of the application, if different testers with the same test role execute the same test case, only the test result information of the last tester is reserved, so that useless data is prevented from being recorded.
On the basis of the above embodiment, after the latest test information of the system time is retained, the method further includes:
and if a plurality of pieces of test information are stored in the brain map object data corresponding to the test cases, marking the sub two-dimensional array as a self-test case.
In a specific implementation process, after only the test information with the latest system time is reserved in the test case, if a plurality of test information is still stored in the brain map object data corresponding to the test case, the test roles corresponding to the plurality of test information are different. That is, both the developer and the tester use the test case to perform the test, and therefore, the test case is a self-test case. Developing a self-test case means that the test case is written and tested for itself. The self-written test cases are marked, so that a later user can know which test cases are self-test cases.
On the basis of the above embodiment, after the test result, the tester information and the system time are inserted into the sub two-dimensional array corresponding to the target test case, the method further includes:
counting the total number of executed cases, success rate, failure rate and self-test passing rate in the brain graph, and storing the total number of executed cases, success rate, failure rate, self-test passing rate and test results corresponding to each test case into a specified database; the self-test passing rate is obtained by counting the test cases marked as the self-test cases.
In a specific implementation process, the total number of executed test cases refers to the total number of executed test cases in the brain chart; success rate refers to the ratio of the number of times the test is successful to the total number of times the test is executed; the failure rate refers to the ratio of the number of test failures to the total number of executions; the self-test passing rate refers to the ratio of the number of successful tests for the self-test case marked as the self-test case to the total number of times all the self-test cases are executed.
According to the embodiment of the application, the brain map is converted into the two-dimensional array which can be identified by the system, and the two-dimensional array can be used for counting the total number of executed, the success rate, the failure rate and the self-test passing rate in the test case, so that the statistics of test data is realized by four lines.
Fig. 4 is a schematic structural diagram of an apparatus provided in an embodiment of the present application, where the apparatus may be a module, a program segment, or a code on an electronic device. It should be understood that the apparatus corresponds to the embodiment of the method of fig. 1 described above, and is capable of performing the steps involved in the embodiment of the method of fig. 1, and specific functions of the apparatus may be referred to in the foregoing description, and detailed descriptions thereof are omitted herein as appropriate to avoid redundancy. The device comprises: a receiving module 401 and an inserting module 402, wherein:
the receiving module 401 is configured to receive a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; the inserting module 402 is configured to insert the test result, the tester information and the system time into brain chart object data corresponding to the target test case.
On the basis of the above embodiment, the apparatus further includes an array generating module, configured to:
traversing brain map object data corresponding to the brain map to generate a corresponding two-dimensional array; the two-dimensional array comprises at least one sub-two-dimensional array, and one test case corresponds to one sub-two-dimensional array.
On the basis of the above embodiment, the apparatus further includes a first marking module for:
traversing the sub-two-dimensional arrays in the two-dimensional arrays, and marking the sub-two-dimensional arrays if the number of elements in the sub-two-dimensional arrays is larger than a preset value.
On the basis of the above embodiment, the preset value is 3, and the first marking module is specifically configured to:
and marking the first element of the penultimate element in the sub two-dimensional array as a desired result, marking the second element of the penultimate element as a step, marking the third element of the penultimate element as a test case, and marking the rest elements as a catalog.
On the basis of the above embodiment, the tester information includes a test role and a user identifier, and the device further includes a deletion module, configured to:
if a plurality of pieces of test information are stored in brain chart object data corresponding to the test cases, the test information comprises a test result, tester information and system time, and the test roles in any two pieces of test information are the same, the test information with the nearest system time is reserved.
On the basis of the above embodiment, the apparatus further includes a second marking module for:
and if a plurality of pieces of test information are stored in the brain map object data corresponding to the test cases, marking the sub two-dimensional array as a self-test case.
On the basis of the above embodiment, the apparatus further includes a data statistics module, configured to:
counting the total number of executed cases, success rate, failure rate and self-test passing rate in the brain graph, and storing the total number of executed cases, success rate, failure rate, self-test passing rate and test results corresponding to each test case into a specified database; the self-test passing rate is obtained by counting the test cases marked as the self-test cases.
In summary, in the embodiment of the present application, after receiving a test result adding request, a test result, test personnel information and system time are obtained from the request, and the three pieces of information are inserted into brain chart object data corresponding to a target test case, so that recording of relevant data during user operation is achieved, and further, the test data of each test case in the brain chart can be traced and counted.
Fig. 5 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present application, as shown in fig. 5, where the electronic device includes: a processor (processor) 501, a memory (memory) 502, and a bus 503; wherein, the liquid crystal display device comprises a liquid crystal display device,
the processor 501 and the memory 502 complete communication with each other via the bus 503;
the processor 501 is configured to invoke the program instructions in the memory 502 to perform the methods provided in the above method embodiments, for example, including: receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; and inserting the test result, the tester information and the system time into brain graph object data corresponding to the target test case.
The processor 501 may be an integrated circuit chip having signal processing capabilities. The processor 501 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. Which may implement or perform the various methods, steps, and logical blocks disclosed in embodiments of the application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 502 may include, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), and the like.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising: receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; and inserting the test result, the tester information and the system time into brain graph object data corresponding to the target test case.
The present embodiment provides a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above-described method embodiments, for example, including: receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes; and inserting the test result, the tester information and the system time into brain graph object data corresponding to the target test case.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
In this document, 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.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A brain map-based testing method, comprising:
receiving a test result adding request corresponding to a target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes;
inserting the test result, the tester information and the system time into brain chart object data corresponding to the target test case; the brain map object data is in a data-child format;
after receiving the test result adding request corresponding to the target test case, the method further comprises the following steps:
traversing brain map object data corresponding to the brain map to generate a corresponding two-dimensional array; the two-dimensional array comprises at least one sub-two-dimensional array, and one test case corresponds to one sub-two-dimensional array;
after generating the corresponding two-dimensional array according to the relationship between the nodes, the method further comprises:
traversing the sub two-dimensional arrays in the two-dimensional arrays, and marking the sub two-dimensional arrays if the number of elements in the sub two-dimensional arrays is larger than a preset value;
the preset value is 3, and the marking the sub two-dimensional array includes:
marking the first element of the two-dimensional array as a desired result, marking the second element as a step, marking the third element as a test case, and marking the rest elements as a catalog;
the step of inserting the test result, the tester information and the system time into the brain map object data corresponding to the target test case includes:
and inserting the test result, the tester information and the system time into the element marked as the expected result corresponding to the target test case.
2. The method of claim 1, wherein the tester information includes a test character and a user identification, and wherein after inserting the test result, tester information, and system time into brain map object data corresponding to the target test case, the method further comprises:
if a plurality of pieces of test information are stored in brain chart object data corresponding to the test cases, the test information comprises a test result, tester information and system time, and the test roles in any two pieces of test information are the same, the test information with the nearest system time is reserved.
3. The method of claim 2, wherein after retaining the most recent test information of the system time, the method further comprises:
and if a plurality of pieces of test information are stored in the brain map object data corresponding to the test cases, marking the sub two-dimensional array as a self-test case.
4. The method of claim 3, wherein after inserting the test result, tester information, and system time into the sub-two-dimensional array corresponding to the target test case, the method further comprises:
counting the total number of executed cases, success rate, failure rate and self-test passing rate in the brain graph, and storing the total number of executed cases, success rate, failure rate, self-test passing rate and test results corresponding to each test case into a specified database; the self-test passing rate is obtained by counting the test cases marked as the self-test cases.
5. A brain map-based testing device, comprising:
the receiving module is used for receiving a test result adding request corresponding to the target test case; the test result adding request comprises a test result, test person information and system time, wherein the test result is generated by using a test case in a brain graph to test a system to be tested by a test person and adding the test result to the brain graph, the brain graph is a tree structure comprising at least one test case, and each test case object comprises a plurality of nodes;
the inserting module is used for inserting the test result, the tester information and the system time into the brain chart object data corresponding to the target test case; the brain map object data is in a data-child format;
the apparatus further comprises:
the array generation module is used for traversing brain map object data corresponding to the brain map and generating a corresponding two-dimensional array; the two-dimensional array comprises at least one sub-two-dimensional array, and one test case corresponds to one sub-two-dimensional array;
the first marking module is used for traversing the sub-two-dimensional arrays in the two-dimensional arrays, and marking the sub-two-dimensional arrays if the number of elements in the sub-two-dimensional arrays is larger than a preset value;
the preset value is 3, and the first marking module is specifically configured to:
marking the first element of the two-dimensional array as a desired result, marking the second element as a step, marking the third element as a test case, and marking the rest elements as a catalog;
the insertion module is specifically configured to:
and inserting the test result, the tester information and the system time into the element marked as the expected result corresponding to the target test case.
6. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory complete communication with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-4.
7. A non-transitory computer readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-4.
CN202010100561.4A 2020-02-17 2020-02-17 Brain graph-based test method and device, electronic equipment and storage medium Active CN111290956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010100561.4A CN111290956B (en) 2020-02-17 2020-02-17 Brain graph-based test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010100561.4A CN111290956B (en) 2020-02-17 2020-02-17 Brain graph-based test method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111290956A CN111290956A (en) 2020-06-16
CN111290956B true CN111290956B (en) 2023-09-01

Family

ID=71026788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010100561.4A Active CN111290956B (en) 2020-02-17 2020-02-17 Brain graph-based test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111290956B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881036A (en) * 2020-07-23 2020-11-03 云账户技术(天津)有限公司 Test case management method and device and electronic equipment
CN112380139A (en) * 2020-12-08 2021-02-19 深圳开源互联网安全技术有限公司 Recording method, system, equipment and storage medium of test case process document
CN112579454B (en) * 2020-12-23 2023-02-24 武汉木仓科技股份有限公司 Task data processing method, device and equipment
CN113886241A (en) * 2021-09-29 2022-01-04 上海汇付数据服务有限公司 Brain graph use case set generation method and device
CN115934513A (en) * 2022-11-16 2023-04-07 大商所飞泰测试技术有限公司 Demand analysis and test design adaptation method, device, equipment and medium
CN115840715B (en) * 2023-02-27 2023-05-05 北京徐工汉云技术有限公司 Software test management method, device and storage medium
CN117632771B (en) * 2024-01-24 2024-04-12 苏州元脑智能科技有限公司 Method, device, equipment and medium for generating test cases in real time

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377759A (en) * 2008-08-26 2009-03-04 中国工商银行股份有限公司 Automatic interface test system
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system
CN106033389A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 A test use case display method and device
CN107741911A (en) * 2017-11-01 2018-02-27 广州爱九游信息技术有限公司 Interface test method, device, client and computer-readable recording medium
CN108038054A (en) * 2017-12-01 2018-05-15 大唐微电子技术有限公司 A kind of automated testing method and device, computer-readable recording medium
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN109614313A (en) * 2018-10-25 2019-04-12 平安科技(深圳)有限公司 Automated testing method, device and computer readable storage medium
CN109740122A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The conversion method and device of mind map use-case file
CN110096444A (en) * 2019-05-06 2019-08-06 重庆天蓬网络有限公司 A kind of management system, application method and equipment generating test case based on excel

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334219B2 (en) * 2002-09-30 2008-02-19 Ensco, Inc. Method and system for object level software testing
US7509538B2 (en) * 2004-04-21 2009-03-24 Microsoft Corporation Systems and methods for automated classification and analysis of large volumes of test result data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377759A (en) * 2008-08-26 2009-03-04 中国工商银行股份有限公司 Automatic interface test system
CN106033389A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 A test use case display method and device
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN107741911A (en) * 2017-11-01 2018-02-27 广州爱九游信息技术有限公司 Interface test method, device, client and computer-readable recording medium
CN108038054A (en) * 2017-12-01 2018-05-15 大唐微电子技术有限公司 A kind of automated testing method and device, computer-readable recording medium
CN109614313A (en) * 2018-10-25 2019-04-12 平安科技(深圳)有限公司 Automated testing method, device and computer readable storage medium
CN109740122A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The conversion method and device of mind map use-case file
CN110096444A (en) * 2019-05-06 2019-08-06 重庆天蓬网络有限公司 A kind of management system, application method and equipment generating test case based on excel

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
某型飞控组件综合测试软件的设计与实现;符冰 等;《 航空制造技术 》(第25期);57-59 *

Also Published As

Publication number Publication date
CN111290956A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN111290956B (en) Brain graph-based test method and device, electronic equipment and storage medium
CN107562620B (en) Automatic buried point setting method and device
EP2778929B1 (en) Test script generation system
CN110908890A (en) Automatic test method and device for interface
CN110019116B (en) Data tracing method, device, data processing equipment and computer storage medium
CN112597018A (en) Interface test case generation method, device, equipment and storage medium
CN110134596A (en) The generation method and terminal device of test document
CN111694561A (en) Interface management method, device, equipment and storage medium
CN111966587A (en) Data acquisition method, device and equipment
US20200293592A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN109189849B (en) Standardized and streamlined data entry method and system
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN112685316A (en) Code execution path acquisition method and device, computer equipment and storage medium
CN111737148A (en) Automatic regression testing method and device, computer equipment and storage medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN109840213B (en) Test data creating method, device, terminal and storage medium for GUI test
CN113435830A (en) Mail information summarizing method, system, electronic device and storage medium
CN113051178A (en) Test data construction method, device, equipment and medium
CN113791980A (en) Test case conversion analysis method, device, equipment and storage medium
CN113485689A (en) Buried point processing method and device
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
CN111382071A (en) User behavior data testing method and system
CN113419739B (en) Node map difference detection method and device, electronic equipment and storage medium
CN113238966A (en) Report platform front end testing method, device, equipment and storage medium

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