CN111290956A - Brain graph-based testing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN111290956A
CN111290956A CN202010100561.4A CN202010100561A CN111290956A CN 111290956 A CN111290956 A CN 111290956A CN 202010100561 A CN202010100561 A CN 202010100561A CN 111290956 A CN111290956 A CN 111290956A
Authority
CN
China
Prior art keywords
test
test case
dimensional array
brain
information
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
CN202010100561.4A
Other languages
Chinese (zh)
Other versions
CN111290956B (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

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/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 testing 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, test personnel information and system time, the test result is generated by testing a system to be tested by using a test case in a brain graph by the test personnel and adding the test result to the brain graph, the brain graph is of 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 picture object data corresponding to the target test case. According to the embodiment of the application, the recording of the related data during the operation of the user is realized, and then the test data of each test case in the brain graph can be traced and counted.

Description

Brain graph-based testing 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 and apparatus, an electronic device, and a 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.
Traditional test case execution can be classified into the following:
firstly, executing a test case maintained in a local tool such as excel; that is, a plurality of test cases are stored in the excel, and the test cases are executed for each function, and the corresponding test result is written in the corresponding position of the excel.
Secondly, test case execution is online in a company; the execution principle is consistent with the mode;
and thirdly, performing annotation of an execution result based on a local or online brain graph.
The former two modes have the defect of low execution speed, and with the development pace of the internet becoming faster and faster, more and more testers tend to write and execute cases through brain diagrams. However, the method has the problem that the test data cannot be traced and counted.
Disclosure of Invention
An object of the embodiments of the present application is to provide a brain graph-based testing method and apparatus, an electronic device, and a storage medium, so as to solve the problem that the testing data cannot be traced and counted through the brain graph 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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 picture object data corresponding to the target test case.
According to the method and the device, 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 pieces of information are inserted into the brain graph object data corresponding to the target test case, so that the recording of the related data during the operation of the user is realized, and then the test data of each test case in the brain graph can be traced and counted.
Further, after receiving a test result addition request corresponding to the target test case, the method further includes: traversing the brain graph object data corresponding to the brain graph 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 which can be identified and stored by the brain graph generating system is used for facilitating the query of later-stage users.
Further, after generating the corresponding two-dimensional array according to the relationship between the nodes, the method further includes: traversing the sub two-dimensional array in the two-dimensional array, and marking the sub two-dimensional array if the number of elements in the sub two-dimensional array is larger than a preset value.
According to the embodiment of the application, the two-dimensional array pair is automatically marked, manual marking is not needed, and the working efficiency of testers is greatly improved.
Further, the marking the sub two-dimensional array with the preset value of 3 includes:
and marking the last element in the sub two-dimensional array as an expected result, marking the last element as a step, marking the last element as a test case, and marking the rest elements as a directory.
According to the embodiment of the application, the categories including catalogs, cases and steps can be automatically distinguished, the types including expected results are 4, manual marking is not needed, and the working efficiency of testers 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 graph object data corresponding to the target test case, the method further includes:
if a plurality of test information are stored in the brain graph object data corresponding to the test case, the test information comprises a test result, tester information and system time, and the test roles in any two test information are the same, the test information with the latest 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, and useless data is prevented from being recorded.
Further, after retaining the test information of the latest system time, the method further comprises: and if a plurality of pieces of test information are stored in the brain graph object data corresponding to the test case, marking the sub two-dimensional array as the self-test case. So that later users can know which test cases are self-test cases.
Further, after inserting the test result, the tester information and the system time into the sub-two-dimensional array corresponding to the target test case, the method further includes: counting the total number of executed test cases, the success rate, the failure rate and the self-testing passing rate in the brain graph, and storing the total number of executed test cases, the success rate, the failure rate, the self-testing passing rate and the test result 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 graph is converted into the two-dimensional array which can be identified by the system, the total number of executed data, the success rate, the failure rate and the self-testing passing rate in the test case can be counted through the two-dimensional array, and the counting of the test data is carried out in four lines.
In a second aspect, an embodiment of the present application provides an electroencephalogram-based testing apparatus, 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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 system comprises a processor, a memory and a bus, wherein the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor being capable of performing the method of the first aspect when invoked by the program instructions.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, including: 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 present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof 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 required to be used 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 therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a brain-based testing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an electroencephalogram provided according to an embodiment of the present application;
fig. 3 is a schematic diagram of brain image object data provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The brain Map is called thinking Map, and English is The Mind Map, which is an effective graphic thinking tool for expressing divergent thinking. The brain graph has wide application, 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 in the prior art, test cases are compiled in a brain graph mode, since general brain graphs are edited locally and do not have a uniform editing standard, even if the brain graphs are uploaded to a server, the brain graphs cannot be analyzed, and test data cannot be traced and counted, the embodiment of the application provides a test method which can achieve acquisition of the test data and further achieve 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 testing method based on a brain diagram 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, and an intelligent wearable device. 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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 picture object data corresponding to the target test case.
The following describes steps 101 to 102 in detail.
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, 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 expected results corresponding to the test cases are also included after the test cases. Before the test case, a directory corresponding to the test case is also included, and the directory can be understood as the type of the test case.
The test can be divided into a functional test and an automatic test; the functional test means that a tester selects a test case in the brain graph and performs corresponding click operation according to the requirements of the selected test case to realize the functional test of the system to be tested. After the test is completed, the tester adds a new node, such as the "success" node framed by the rectangular box in fig. 2, behind the test case. The new node is used to characterize the test result, i.e., can be either successful or failed. The automatic test means that the brain picture is put into a system to be tested, the system to be tested automatically selects a test case from the brain picture for testing, and a test result is automatically added behind the corresponding test case.
It is to be understood that the target test case is a selected one of the test cases in the brain graph. Taking the functional test as an example: when a tester adds a new node behind the target test case, the test apparatus may receive a test result addition request for adding the new node. The test result addition request includes a test result, tester information, and system time. Wherein the test result is success or failure; the tester information may include a user identifier and a test role, where the user identifier may be an account of the tester and represents an identifier of a unique identity of the user. The test role is used to characterize the identity of a tester, such as a developer or tester. And after the tester logs in, the basic information of the tester can be stored in the http header, and the testing device can obtain the user identification of the tester by analyzing the http header. 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 graph is a tree structure displayed at the front end, the brain graph exists in the form of eleven brain graph object data at the back end, fig. 3 is a schematic diagram of brain graph object data provided in the embodiment of the present application, and as can be seen from fig. 3, the original object data corresponding to the brain graph is in the form of date-children. The relation between each node in the brain graph can be seen through the date-children, namely, the node placed in the date is the parent node of the node in children. And after the testing device acquires the testing result, the testing personnel information and the system time, inserting the testing result, the testing personnel information and the system time into brain image object data corresponding to the target testing case.
According to the method and the device, 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 pieces of information are inserted into the brain graph object data corresponding to the target test case, so that the recording of the related data during the operation of the user is realized, and then 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 a test result addition request corresponding to a target test case, the method further includes:
traversing the brain graph object data corresponding to the brain graph 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 a large brain map object data, including the brain map object data corresponding to all test cases in the brain map. The two-dimensional array into which the brain image object data is converted is as follows:
Figure BDA0002385470460000071
it should be noted that the two-dimensional array is only given as a partial data, and is only used as an example. The two-dimensional array is a data structure for converting the data of the brain graph into a flat tile, and mainly comprises the following two key fields: name is the name of the node, and execute records the execution result and the executor. User _ id included in execute following "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 the test cases, and each test case corresponds to one sub two-dimensional array.
According to the embodiment of the application, the two-dimensional array which can be identified and stored by the brain graph generating system is used for facilitating the query of later-stage users.
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 array in the two-dimensional array, and marking the sub two-dimensional array if the number of elements in the sub two-dimensional array is larger than a preset value.
In a specific implementation process, whether the number of elements in each sub two-dimensional array in the two-dimensional array is larger than a preset value or not is judged. The number of elements in the sub two-dimensional array can be determined by calculating the number of names, and the number of the elements in the first sub two-dimensional array of the two-dimensional array is 5. The preset value can be 3, and can also be other positive integers. And 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 of marking is as follows:
and marking the last element in the sub two-dimensional array as an expected result, marking the last element as a step, marking the last element as a test case, and marking the rest elements as a directory.
Still taking the first sub two-dimensional array in the above two-dimensional arrays as an example, the number of elements in the sub two-dimensional array is 5, which is greater than 3, and therefore the sub two-dimensional array needs to be marked. Marking the last element 'expected result 1.1' in the sub two-dimensional array as an expected result, marking the last element 'step 1.1' in the sub two-dimensional array as a step, marking the last element 'test case name 1' in the sub two-dimensional array as a test case, and marking the rest elements 'module 2' and 'I is a requirement name' in the sub two-dimensional array as directories. And marking other two-dimensional sub-arrays with the number of elements larger than 3 according to the method. The marked two-dimensional array is as follows:
Figure BDA0002385470460000091
as can be seen from the above, the type added behind each element in the labeled two-dimensional array is used to label the attribute of each element, i.e. catalog, test case, step, expected result.
The embodiment of the application marks the sub two-dimensional array with the number of the elements larger than the preset value, so that the testing device can quickly know which element is the expected result, obtain the testing result, the testing personnel information and the system time from the expected result, and is also favorable for counting all 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 image object data corresponding to the target test case, the method further includes:
if a plurality of test information are stored in the brain graph object data corresponding to the test case, the test information comprises a test result, tester information and system time, and the test roles in any two test information are the same, the test information with the latest system time is reserved.
In a specific implementation process, since the application scenario of the embodiment of the application is testing, the testing role may include a developer and a tester, and may also include other roles, and the testing role may be increased or decreased according to the actual role setting of a company. In any test role, if the test case in the brain graph is used for testing and a new node is added to the test case, corresponding test information is generated. If two persons with the same test role execute the same test case in sequence, the test information corresponding to the person executing in advance can be considered as useless information, and in order to ensure that the data in the two-dimensional array are all valid and avoid storing redundant invalid data, the test information of the test case executing in advance is deleted.
For example: the testing roles are Zhang III and Li IV of the tester, Zhang III is tested by using a testing case A in a brain graph in 2020, 1, 15, 10:00, new nodes are added to the testing case, and the testing device obtains the testing information corresponding to the testing case A as follows: test failure, Zhang San ID and 2020-1-15-10: 00. In lee IV, a test case A in a brain graph is also used for testing in 1 month, 15 days and 15:00 in 2020, a new node is added to the test case, and the test information obtained by the test device corresponding to the test user A is as follows: successful test, LifourID and 2020-1-15-15: 00. Because the testing roles of Zhang III and Li IV are the same and the system time of Li IV is later than that of Zhang III, the testing device deletes the testing information corresponding to Zhang III and only keeps the testing information of Li IV.
For another example: the testing role of Zhang III is tester (qa), the testing role of Li IV is developer (dev), Zhang III tests with the testing case A in the brain map at 1 month, 15 days and 10:00 in 2020, and adds a new node for the testing case, and the testing device obtains the testing information corresponding to the testing case A as follows: successful test, Zhang three ID and 2020-1-15-10: 00. In lee IV, a test case A in a brain graph is also used for testing in 1 month, 15 days and 15:00 in 2020, a new node is added to the test case, and the test information obtained by the test device corresponding to the test user A is as follows: successful test, LifourID and 2020-1-15-15: 00. Because the testing roles of Zhang III and Li IV are different, the testing roles can be reserved in the brain graph object data corresponding to the testing 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, and useless data is prevented from being recorded.
On the basis of the above embodiment, after retaining the test information of the system time which is most recent, the method further includes:
and if a plurality of pieces of test information are stored in the brain graph object data corresponding to the test case, marking the sub two-dimensional array as the self-test case.
In a specific implementation process, after only the latest test information of the system time is reserved in the test case, if a plurality of pieces of test information are still stored in the brain graph object data corresponding to the test case, it is indicated that the test roles corresponding to the plurality of pieces of test information are different. That is, both the developer and the tester use the test case to perform the test, so the test case is a development self-test case. Developing a self-test case means that the test case is written and tested for itself. By marking the test cases written by the user, the later user can know which test cases are self-test cases.
On the basis of the above embodiment, after inserting the test result, the tester information, and the system time into the sub two-dimensional array corresponding to the target test case, the method further includes:
counting the total number of executed test cases, the success rate, the failure rate and the self-testing passing rate in the brain graph, and storing the total number of executed test cases, the success rate, the failure rate, the self-testing passing rate and the test result 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 times that all test cases in the brain graph have been executed; the success rate is the ratio of the number of successful tests to the total number of executed tests; the failure rate refers to the proportion of the number of times of test failure in the total number of executed tests; the self-test pass rate is the ratio of the number of successful tests of the self-test cases to the total number of times of execution of all the self-test cases, for the self-test cases marked as self-test cases.
According to the embodiment of the application, the brain graph is converted into the two-dimensional array which can be identified by the system, the total number of executed data, the success rate, the failure rate and the self-testing passing rate in the test case can be counted through the two-dimensional array, and the counting of the test data is carried out in 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 code on an electronic device. It should be understood that the apparatus corresponds to the above-mentioned embodiment of the method of fig. 1, and can perform various steps related to the embodiment of the method of fig. 1, and the specific functions of the apparatus can be referred to the description above, and the detailed description is appropriately omitted here to avoid redundancy. The device includes: a receiving module 401 and an inserting module 402, wherein:
the receiving module 401 is configured to receive a test result addition request corresponding to a target test case; the test result adding request comprises a test result, test personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 the brain graph 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 the brain graph object data corresponding to the brain graph 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 configured to:
traversing the sub two-dimensional array in the two-dimensional array, and marking the sub two-dimensional array if the number of elements in the sub two-dimensional array 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 last element in the sub two-dimensional array as an expected result, marking the last element as a step, marking the last element as a test case, and marking the rest elements as a directory.
On the basis of the above embodiment, the tester information includes a test role and a user identifier, and the apparatus further includes a deletion module configured to:
if a plurality of test information are stored in the brain graph object data corresponding to the test case, the test information comprises a test result, tester information and system time, and the test roles in any two test information are the same, the test information with the latest system time is reserved.
On the basis of the above embodiment, the apparatus further includes a second marking module configured to:
and if a plurality of pieces of test information are stored in the brain graph object data corresponding to the test case, marking the sub two-dimensional array as the 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 test cases, the success rate, the failure rate and the self-testing passing rate in the brain graph, and storing the total number of executed test cases, the success rate, the failure rate, the self-testing passing rate and the test result 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, after receiving the test result addition request, the embodiment of the application acquires the test result, the tester information and the system time from the request, and inserts the three pieces of information into the brain graph object data corresponding to the target test case, thereby realizing the recording of the relevant data during the user operation, and further being capable of tracing and counting the test data of each test case in the brain graph.
Fig. 5 is a schematic structural diagram of an entity of an electronic device provided in an embodiment of the present application, and as shown in fig. 5, the electronic device includes: a processor (processor)501, a memory (memory)502, and a bus 503; wherein the content of the first and second substances,
the processor 501 and the memory 502 are communicated with each other through the bus 503;
the processor 501 is configured to call program instructions in the memory 502 to perform the methods provided by the above-mentioned 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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 picture 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 (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 502 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable 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, enable the computer to perform the method provided by the above-mentioned 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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 picture object data corresponding to the target test case.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by 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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 picture 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 ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the 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.
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 changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A brain graph-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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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 picture object data corresponding to the target test case.
2. The method according to claim 1, wherein after receiving a test result addition request corresponding to a target test case, the method further comprises:
traversing the brain graph object data corresponding to the brain graph 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.
3. The method of claim 2, wherein after generating the corresponding two-dimensional array according to the relationship between the nodes, the method further comprises:
traversing the sub two-dimensional array in the two-dimensional array, and marking the sub two-dimensional array if the number of elements in the sub two-dimensional array is larger than a preset value.
4. The method of claim 3, wherein the preset value is 3, and wherein the marking the sub two-dimensional array comprises:
and marking the last element in the sub two-dimensional array as an expected result, marking the last element as a step, marking the last element as a test case, and marking the rest elements as a directory.
5. The method according to any one of claims 1-4, wherein the tester information includes a test role and a user identifier, and after inserting the test result, the tester information and the system time into the brain image object data corresponding to the target test case, the method further comprises:
if a plurality of test information are stored in the brain graph object data corresponding to the test case, the test information comprises a test result, tester information and system time, and the test roles in any two test information are the same, the test information with the latest system time is reserved.
6. The method of claim 5, wherein after retaining the system time most recent test information, the method further comprises:
and if a plurality of pieces of test information are stored in the brain graph object data corresponding to the test case, marking the sub two-dimensional array as the self-test case.
7. The method of claim 6, wherein after inserting the test results, 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 test cases, the success rate, the failure rate and the self-testing passing rate in the brain graph, and storing the total number of executed test cases, the success rate, the failure rate, the self-testing passing rate and the test result 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.
8. An electroencephalogram-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 personnel information and system time, the test result is generated by testing a system to be tested by a test personnel by using a test case in a 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.
9. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated 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 one of claims 1-7.
10. 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 one of claims 1-7.
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 true CN111290956A (en) 2020-06-16
CN111290956B 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)

Cited By (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
CN112579454A (en) * 2020-12-23 2021-03-30 武汉木仓科技股份有限公司 Task data processing method, device and equipment
CN113886241A (en) * 2021-09-29 2022-01-04 上海汇付数据服务有限公司 Brain graph use case set generation method and device
CN115840715A (en) * 2023-02-27 2023-03-24 北京徐工汉云技术有限公司 Software test management method, device and storage medium
CN115934513A (en) * 2022-11-16 2023-04-07 大商所飞泰测试技术有限公司 Demand analysis and test design adaptation method, device, equipment and medium
CN117632771A (en) * 2024-01-24 2024-03-01 苏州元脑智能科技有限公司 Method, device, equipment and medium for generating test cases in real time

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153830A1 (en) * 2002-09-30 2004-08-05 Ensco, Inc. Method and system for object level software testing
US20050257086A1 (en) * 2004-04-21 2005-11-17 Microsoft Corporation Systems and methods for automated classification and analysis of large volumes of test result data
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

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153830A1 (en) * 2002-09-30 2004-08-05 Ensco, Inc. Method and system for object level software testing
US20050257086A1 (en) * 2004-04-21 2005-11-17 Microsoft Corporation Systems and methods for automated classification and analysis of large volumes of test result data
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 (4)

* Cited by examiner, † Cited by third party
Title
I.OTADUY 等: "User acceptance testing for Agile-developed web-based applications: Empowering customers through wikis and mind maps", 《JOURNAL OF SYSTEMS AND SOFTWARE》, vol. 133, pages 212 - 229 *
测试用例设计: "怎么用思维导图设计测试用例", pages 1 - 3 *
符冰 等: "某型飞控组件综合测试软件的设计与实现", 《 航空制造技术 》, no. 25, pages 57 - 59 *
请给小胡大红包: "使用XMind编写测试用例", pages 1, Retrieved from the Internet <URL:《https://blog.csdn.net/tairu/article/details/103479685》> *

Cited By (8)

* 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
CN112579454A (en) * 2020-12-23 2021-03-30 武汉木仓科技股份有限公司 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
CN115840715A (en) * 2023-02-27 2023-03-24 北京徐工汉云技术有限公司 Software test management method, device and storage medium
CN117632771A (en) * 2024-01-24 2024-03-01 苏州元脑智能科技有限公司 Method, device, equipment and medium for generating test cases in real time
CN117632771B (en) * 2024-01-24 2024-04-12 苏州元脑智能科技有限公司 Method, device, equipment and medium for generating test cases in real time

Also Published As

Publication number Publication date
CN111290956B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN111290956B (en) Brain graph-based test method and device, electronic equipment and storage medium
CN107688618B (en) Data comparison method, apparatus, computer equipment and storage medium
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN110737689B (en) Data standard compliance detection method, device, system and storage medium
CN112650533B (en) Interface document generation method and device and terminal equipment
CN111026647B (en) Method and device for acquiring code coverage rate, computer equipment and storage medium
CN110134596A (en) The generation method and terminal device of test document
CN109101412B (en) Test file generation method, test file generation device, test file testing method, test file testing device, storage medium and computer equipment
CN113900955A (en) Automatic testing method, device, equipment and storage medium
CN114266539A (en) File flow processing method, system, device and computer readable storage medium
CN113158118A (en) Page buried point data acquisition method, device and system
CN111124894B (en) Code coverage rate processing method and device and computer equipment
CN112711398A (en) Method, device and equipment for generating buried point file and storage medium
CN112256532A (en) Test interface generation method and device, computer equipment and readable storage medium
CN111737148A (en) Automatic regression testing method and device, computer equipment and storage medium
CN111352821A (en) Service testing method, device, electronic equipment and computer readable storage medium
CN109800147B (en) Test case generation method and terminal equipment
Didriksen Forensic analysis of OOXML documents
CN115455059A (en) Method, device and related medium for analyzing user behavior based on underlying data
CN113051178A (en) Test data construction method, device, equipment and medium
CN114003784A (en) Request recording method, device, equipment and storage medium
CN113791980A (en) Test case conversion analysis method, device, equipment and storage medium
CN111338936A (en) Brain graph data processing method and device, electronic equipment and storage medium
CN113282496A (en) Automatic interface test method, device, equipment and storage medium
CN111382071A (en) User behavior data testing method and system

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