CN110309057B - Automatic script-based flow project testing method and related equipment - Google Patents

Automatic script-based flow project testing method and related equipment Download PDF

Info

Publication number
CN110309057B
CN110309057B CN201910435021.9A CN201910435021A CN110309057B CN 110309057 B CN110309057 B CN 110309057B CN 201910435021 A CN201910435021 A CN 201910435021A CN 110309057 B CN110309057 B CN 110309057B
Authority
CN
China
Prior art keywords
node
flow
detected
tested
test
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
CN201910435021.9A
Other languages
Chinese (zh)
Other versions
CN110309057A (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.)
Lingxiong Technology Shenzhen Co ltd
Shenzhen Lian Intellectual Property Service Center
Original Assignee
Lingxiong Technology Shenzhen 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 Lingxiong Technology Shenzhen Co ltd filed Critical Lingxiong Technology Shenzhen Co ltd
Priority to CN201910435021.9A priority Critical patent/CN110309057B/en
Publication of CN110309057A publication Critical patent/CN110309057A/en
Application granted granted Critical
Publication of CN110309057B publication Critical patent/CN110309057B/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/3676Test management for coverage analysis
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a method, a device, computer equipment and a readable storage medium for testing a flow item based on an automatic script, and relates to the technical field of test flow improvement. Wherein the automation script comprises a reverse flow and a forward flow, the method comprising: acquiring current nodes to be tested of the flow item according to the sequency of each node; judging whether the node to be detected is a detected node or not; if the node is not the detected node, the corresponding reverse flow is called for testing, and the first current response information is obtained; judging whether the first current response information is the same as the first preset response information or not; if the nodes are the same, a re-detection request is initiated, and the nodes to be detected are marked as detected nodes. When the process of the project is tested, the node positioned in front of the node to be tested executes the forward flow, the node to be tested executes the reverse flow, and the test request is reinitiated after the reverse flow is executed, so that the complete coverage of the automation script on the whole project node is realized, and the detection integrity is improved.

Description

Automatic script-based flow project testing method and related equipment
Technical Field
The application relates to the technical field of test flow improvement, in particular to a flow project test method based on an automatic script and related equipment.
Background
In the field of project testing, it is common to run or test a system using manual or automated means with the aim of checking whether it meets a specified requirement or to ascertain the difference between the expected and actual results. For some flow projects, such as order system production flow, auditing flow and other systems, when a manual testing means is adopted, a manual tester needs to test the flow by feeling according to own testing experience and business familiarity, and can cause direct economic loss due to fatigue or project time pressure, so that coverage rate is not very high, missed testing or missed testing is easy to occur, and on-line accidents are caused.
For such problems, some automated test tools have been developed in the project testing industry to accomplish testing tasks by executing automated scripts. However, when the existing test tool based on the automatic script tests the project, the test tool only tests the forward flow of the project, namely, the scene and the data meeting the project requirements, and has lower test integrity on the project.
Disclosure of Invention
The application mainly aims to provide a method, a device, computer equipment and a readable storage medium for testing a flow project based on an automatic script, and aims to solve the defect of low integrity of the existing testing method for the flow project.
In order to achieve the above object, the present application provides a method for testing a flow item based on an automation script, the automation script including a reverse flow and a forward flow, the reverse flow being a scenario in which the flow item is tested using a reverse case, the forward flow being a scenario in which the flow item is tested using a forward case, the reverse case being test data that does not meet the requirement of the flow item, the forward case being test data that meets the requirement of the flow item, the flow item including a plurality of nodes, the nodes having a sequence, the method comprising:
acquiring the current node to be tested of the flow item according to the sequency of each node;
judging whether the node to be detected is a detected node or not, wherein the detected node is a node which is detected by using the reverse flow;
if the node is not the detected node, calling a reverse flow corresponding to the node to be detected to test the node to be detected, and obtaining first current response information, wherein the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
Judging whether the first current response information is the same as first preset response information or not, wherein the first preset response information is feedback information which is preset by a developer and is output by the node to be tested in a reverse flow;
if the detected node is the same as the first preset response information, starting detection from a start node of the flow item, and marking the node to be detected as a detected node, wherein the start node is a first node which needs to be detected and is marked in advance in the flow item by a developer.
The application also provides a flow item testing device based on an automatic script, wherein the automatic script comprises a reverse flow and a forward flow, the reverse flow is a scene of testing the flow item by using a reverse case, the forward flow is a scene of testing the flow item by using a forward case, the reverse case is test data which does not meet the requirement of the flow item, the forward case is test data which meets the requirement of the flow item, the flow item comprises a plurality of nodes, and each node has sequentiality, and the testing device comprises:
the first acquisition module is used for acquiring the current node to be tested of the flow item according to the sequence of each node;
The first judging module is used for judging whether the node to be detected is a detected node, the detected node is a node which completes detection by using the reverse flow, and the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
the first testing module is used for calling a reverse flow corresponding to the node to be tested to test the node to be tested to obtain first current response information;
the second judging module is used for judging whether the first current response information is the same as first preset response information, wherein the first preset response information is feedback information which is preset by a developer and is output by the node to be tested in a reverse flow;
the marking module is used for starting detection from a starting node of the flow project and marking the node to be detected as a detected node, wherein the starting node is a first node which needs to be detected and is marked in the flow project in advance by a developer.
The application also provides a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of any of the methods described above when the computer program is executed.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the preceding claims.
The application provides a method, a device, computer equipment and a readable storage medium for testing a flow item based on an automation script, wherein the automation script is provided with a forward flow and a reverse flow. When the process of the program project is tested, the rest nodes positioned in front of the current node to be tested execute the forward flow, the current node to be tested executes the reverse flow, and the test request is restarted after the reverse flow is executed. After the rest undetected nodes of the flow project are sequentially traversed in a circulating way, the complete coverage of the automation script on the whole flow project node is realized, so that each node can complete the detection of the forward and reverse flows, the integrity of project detection is improved, and corresponding modification is facilitated according to the modification of the project node in the later period.
Drawings
FIG. 1 is a schematic diagram showing steps of a method for testing a flow item based on an automation script according to an embodiment of the present application;
FIG. 2 is a block diagram of a flow project testing apparatus based on an automation script in accordance with an embodiment of the present application;
Fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, in one embodiment of the present application, there is provided a method for testing a flow item based on an automation script, where the automation script includes a reverse flow and a forward flow, the reverse flow is a scenario for testing the flow item using a reverse case, the forward flow is a scenario for testing the flow item using a forward case, the reverse case is test data not meeting the requirement of the flow item, the forward case is test data meeting the requirement of the flow item, the flow item includes a plurality of nodes, and the nodes have sequentiality, and the method includes:
s1: acquiring the current node to be tested of the flow item according to the sequency of each node;
S2: judging whether the node to be detected is a detected node or not, wherein the detected node is a node which is detected by using the reverse flow;
s3: if the node is not the detected node, invoking a reverse flow corresponding to the node to be detected to test the node to be detected, and obtaining first current response information, wherein the first current response information is feedback information output after the node to be detected operates according to the reverse flow, and the first preset response information is feedback information preset by a developer and output by the node to be detected in the reverse flow;
s4: judging whether the first current response information is identical to first preset response information or not;
s5: if the detected node is the same as the first preset response information, starting detection from a start node of the flow item, and marking the node to be detected as a detected node, wherein the start node is a first node which needs to be detected and is marked in advance in the flow item by a developer.
In an embodiment, after the project is completed for the first time or modified later, an automation script is required to perform corresponding tests on the flow of the project, and the automation script sequentially performs the tests according to the sequence of each node in the project. When the project runs, namely, in a process of transmitting data input by a user, the test system needs to detect different aspects of the data, namely, the data detection points in the different aspects are nodes, and the nodes have corresponding sequentiality. The automation script in this embodiment includes a forward flow and a reverse flow. The forward flow is a scene of testing a flow project by using a forward case, an input mode and input data meeting project requirements are needed, and the test data meeting the flow project requirements is the forward case; the reverse flow is a scene of testing the flow project by using a reverse case, the input mode and the input data during the test do not meet the project requirement, and the test data which do not meet the flow project requirement are the reverse case. For example, when the card binding operation is performed, the system requests to input a valid card number of a bank supported by the system for binding, and if the card number of the input bank card and the length of the card number are correct, the input flow is a forward flow; if any one of the number of the inputted bank card or the length of the card number is different, the input flow is a reverse flow. The flow project comprises a plurality of nodes, each node has sequence, and the arrangement sequence of each node is preset by a developer. When the testing system tests the flow project, the testing system runs an automation script corresponding to the flow project, and simultaneously obtains the node to be tested, which is required to be tested currently, of the flow project according to the sequence of each node. When testing items, the testing system needs to record the detection completion degree of each node to form a detection record so as to judge whether each node completes the detection of the automation script, namely whether the node has completed the detection by using a reverse flow, and marks the node which completes the detection as a detected node. Therefore, the test system can directly judge whether the current node to be tested is the detected node or not by inquiring the detection record. If the node to be tested has no corresponding detection data in the detection record, the test system judges that the node to be tested is not the detected node, and the node of the item does not perform reverse flow detection yet. The testing system calls the reverse flow of the automatic script, and inputs the reverse case into the node to be tested for testing. After the reverse case is input, the node to be tested of the project responds to the reverse case to output corresponding feedback information, namely first current response information. The test system retrieves the first preset response information corresponding to the current node to be tested of the item in the reverse flow from the response database, and compares the first preset response information with the first current response information to judge whether the contents of the first preset response information and the first preset response information are consistent. The first preset response information is feedback information which is preset by a developer and output by the node to be tested in a reverse flow. If the current node to be tested is provided with a plurality of reverse sub-flows, the test system needs to compare the response sub-information of each reverse sub-flow with the corresponding preset response information in the response database. If one or more than one response messages are inconsistent in comparison, the node to be tested is judged to be abnormal. For example, when the binding operation is performed, the system requests to input a valid card number of a bank supported by the system to bind, and if the number of the input bank card is incorrect, the first preset response information is output: "please re-enter the correct card number", and the first current response information is: "directly eject the bank card". If the first current response information is inconsistent with the first preset response information, it is indicated that the response of the node to be tested of the project after receiving the reverse case is different from the expectation of the developer, the content of the project at the node to be tested may be modified or other errors occur, and the developer needs to correspondingly adjust the project or the automation script according to specific situations. For example, if the first preset response information of the node to be tested is modified, the automation script needs to be adjusted, and a developer can make the first preset response information consistent with the first current response information by modifying the first preset response information of the current node to be tested in the automation script, so that the current node to be tested is not judged to be abnormal when the automation test is performed; if the process of the project itself is wrong, the project needs to be adjusted. If the first current response information is consistent with the first preset response information, the response of the current node to be tested in the project when the reverse flow is executed is identical to the expected response. The test system initiates a re-detection request, and the automatic script is run again and circularly from the starting node of the project, the nodes of the project are sequentially detected, and the current node to be detected is marked as the detected node so as to run the forward flow in the next circular test process. Wherein the start node is the first node of the project.
Further, after the step of determining whether the node to be detected is a detected node, the method includes:
s6: if the node is detected, calling a forward flow corresponding to the node to be detected to test the node to be detected, and obtaining second current response information;
s7: judging whether the second current response information is consistent with second preset response information, wherein the second preset response information is feedback information which is preset by a developer and output by the node to be tested in a forward flow;
s8: if the node to be detected is consistent with the second preset response information, judging whether the node to be detected is an end node of the flow project according to the sequence of each node, wherein the end node is the last node to be detected, which is marked in the flow project in advance by a developer;
s9: and if the node is the ending node of the flow item, ending the test.
In this embodiment, the test system may directly determine whether the current node to be tested is a detected node through the detection record. If the node to be tested has corresponding detection data in the detection record, the test system judges that the node to be tested is the detected node, invokes a forward flow of an automatic script to detect the node to be tested, and inputs a forward case into the node to be tested for testing. After the forward case is input, the node to be tested of the project can respond to the forward case to output corresponding feedback information, namely second current response information. The test system retrieves second preset response information corresponding to the current node to be tested of the item in the forward flow from the response database, and compares the second preset response information with the second current response information to judge whether the contents of the second preset response information and the second current response information are consistent. The second preset response information is feedback information which is preset by a developer and output by the forward flow of the node to be detected. If the second current response information is inconsistent with the second preset response information, it is indicated that the response of the node to be tested of the project when the forward flow is operated is different from the expectation of the developer, the content of the project may be modified or other errors occur, and corresponding adjustment is performed on the project or the automation script according to specific situations. For example, if the response information of the node to be tested is modified, the automation script needs to be adjusted; if the process of the project itself is wrong, the project needs to be adjusted. If the second current response information is consistent with the second preset response information, the response of the node to be tested of the item when the forward flow is operated is identical with the expected response, and the node to be tested is normal. After the test system determines that the node to be tested is normal, it needs to determine whether the node to be tested is an end node of the flow item. The end node is the last node to be detected marked in advance by the developer in the current flow project. Because the automation script tests the project sequentially according to the sequence of the nodes in the project. Meanwhile, because the reverse flow of the automatic script needs to initiate a re-detection request after detecting the nodes of the project, the first node in the project is to run the reverse flow of the automatic script first and then run the forward flow, and re-initiate the request after finishing the reverse flow, and enter the next round of detection. If the test system detects that the current node to be tested is the ending node of the project, the current test of the forward flow and the reverse flow of all nodes of the whole project is finished, and the test can be ended. If the current node to be detected is not the ending node of the project, the automatic script continues to run to detect the next node, so that the automatic script is ensured to run forward flow before the next node to be detected, a re-detection request does not need to be initiated, and the automatic script can run to the next node to be detected to test reverse flow.
Further, the step of calling a preset reverse flow corresponding to the node to be tested to test the node to be tested includes:
s301: judging whether the node to be tested is preset with more than one reverse sub-flow, wherein the reverse sub-flow is a different parallel reverse test flow set by the automatic script on the node to be tested;
s302: if more than one reverse sub-flow is preset, detecting the nodes to be detected by the reverse sub-flows through independent threads respectively to obtain current response sub-information corresponding to the reverse sub-flows;
s303: and generating the first current response information according to each piece of the current response sub-information.
In this embodiment, a plurality of area modules are provided for individual nodes in the project, and each area module may execute different reverse cases simultaneously, i.e. the nodes are divided into a plurality of reverse sub-flows. When the area modules input different reverse cases, different response modes are preset. For example, when a user applies for binding a card, according to the flow of a project, the node to be tested can inquire about the binding condition in the background of an operating system to obtain different scenes: 1. unbound cards; 2. the card is bound but not successfully bound; 3. the card is bound. According to different scenes, the nodes to be tested of the project have different response modes: 1. prompting an operation user that the card is not bound; 2. prompting an operation user to check whether the card binding process is wrong; 3. the operating user is prompted to bind the card and inquire whether to enter the next flow. Therefore, according to different response modes of the project node, the automation script is provided with corresponding reverse sub-flows, which correspond to the different response modes of the node to be tested. Because the automatic script is written after the project is completed, the test system can directly judge whether the automatic script is divided into more than one reverse sub-flow at the current node to be tested according to the pre-recorded information. If the test system judges that the automation script is divided into more than one reverse sub-flow in the node to be tested, each reverse sub-flow is called at the same time, and the corresponding reverse sub-cases are input into the node to be tested through the corresponding independent threads, so that the current response sub-information corresponding to each reverse sub-flow is obtained. And the test system generates first current response information according to each response sub-information. For example, the first current response information includes: the response sub-information A, the response sub-information B and the response sub-information C are in parallel.
Further, after the step of determining whether the first current response information is the same as the first preset response information, the method includes:
s10: if the development information and the first preset response information are inconsistent, acquiring development information and test records of the node to be tested;
s11: generating alarm information according to the development information and the test record, and outputting the alarm information to a display interface.
In this embodiment, if the test system determines that the first current response information is inconsistent with the first preset response information, it indicates that the response of the current node to be tested in the project when the reverse flow is running is different from the expectation of the developer, and the content of the project may be modified or other errors occur, and corresponding adjustment is performed on the flow project or the automation script according to the specific situation. Therefore, the test system screens and obtains the development information corresponding to the current node to be tested according to the pre-recorded development information of the flow project. For example, the developer information of the project, such as the project has 5 nodes in total, wherein the node to be tested is node No. 3, and the developer responsible for node No. 3 is node C, the test system outputs the corresponding information of developer C, such as the contact information. Meanwhile, the test system can acquire the test record of the current test of the node to be tested, generate alarm information according to the development information and the test record, and output the alarm information to a display interface of the test system so as to enable a tester to perform corresponding processing. Furthermore, the test system can send the alarm information to the mobile terminal of the developer corresponding to the current node to be tested according to the developer information, so that the developer can know the test condition of the current node to be tested of the project in time.
Further, before the step of obtaining the current node to be tested of the flow item according to the sequency of each node, the method includes:
s12: acquiring the item number of the flow item;
s13: and acquiring an automation script corresponding to the item number from a pre-constructed script database so as to use the automation script for detecting the flow item, wherein a mapping relation table of the automation script and the item number is stored in the script database.
In this embodiment, a preset script library is built in the test system. The preset script library stores an automation script and project number mapping relation table so as to indicate the association relation between each automation script and the project number of the corresponding project, so that the corresponding automation script can be directly called according to the project number in the later stage of testing. For example, item No. 1 is associated with automated script No. 1. Before testing the flow item, the testing system needs to acquire the item number of the item, then matches and acquires the corresponding automation script from the preset script library according to the item number so as to use the automation script for detecting the flow item,
Further, after the step of ending the test, the method includes:
s14: obtaining test records corresponding to each node in the flow item respectively;
s15: analyzing each test record to obtain the operation performance corresponding to each node in the flow project.
In this embodiment, after the test system completes testing all nodes of the project, a test record of the whole project is formed according to various data such as response information and response speed of each node when running the automation script. The test record comprises test data when each node runs a forward flow and a reverse flow in the automation script. The test system can automatically analyze the test performance of each node in the project according to the test record, for example, the response information of the forward flow of the node 1 is correct, the response speed is moderate, the response information of the reverse flow is correct, and the response speed is slow; the response information of the forward flow of the node No. 2 is wrong, the response speed is slow, the response information of the reverse flow is correct, and the response speed is fast. The tester can judge whether to communicate with the developer of the project according to the test performance of each node analyzed by the test system, and correspondingly adjust each node. For example, the response speed of the forward flow of the node No. 1 is slow, and a developer is required to modify and adjust the forward flow so that the response speed is at least medium.
Further, the test record includes error information of the node to be tested when the automation script is run, and after the step of outputting the alarm information to a display interface, the method includes:
s16: updating the error times of the node to be tested according to the error information;
s17: judging whether the error times are larger than preset times or not;
s18: and if the number of errors is greater than the preset number of times, sending the test record corresponding to the node to be tested and the updated number of errors to a preset terminal.
In this embodiment, the test system determines that the first current response information is inconsistent with the first preset response information, and one is that a developer modifies the first preset response information of the current node to be tested when the reverse flow is operated, so that the first current response information obtained by the test system is inconsistent with the first preset response information when the automation script is operated; the other is that the internal data of the current node to be tested is in error, the whole system is blocked and cannot continue to run when the automatic script runs everywhere, and the test system records the error information of the node to be tested. The test system records the error times corresponding to each node, and when the alarm information output by the test system contains the error information, the error times corresponding to the current node to be tested can be automatically updated. Meanwhile, the test system calls preset times, and the preset times are set by a tester and are used for judging whether related test data of the node to be tested need to be sent to a preset terminal or not. The test system compares the updated error times of the nodes to be tested with preset times to judge the magnitude relation between the updated error times and the preset times. If the updated error times are greater than the preset times, the test system sends the error times of the test file of the node to be tested to the preset terminal. The preset terminal is preset by a tester and can be a contact terminal of a technical consultant of the project, so that the node to be tested can be adjusted in time after a plurality of errors occur.
The embodiment provides a method for testing a flow item based on an automation script, wherein the automation script is provided with a forward flow and a reverse flow. When the process of the program project is tested, the rest nodes positioned in front of the current node to be tested execute the forward flow, the current node to be tested executes the reverse flow, and the test request is restarted after the reverse flow is executed. After the rest undetected nodes of the flow project are sequentially traversed in a circulating way, the complete coverage of the automation script on the whole flow project node is realized, so that each node can complete the detection of the forward and reverse flows, the integrity of project detection is improved, and corresponding modification is facilitated according to the modification of the project node in the later period.
Referring to fig. 2, in an embodiment of the present application, there is further provided a flow item testing apparatus based on an automation script, where the automation script includes a reverse flow and a forward flow, the reverse flow is a scenario for testing the flow item using a reverse case, the forward flow is a scenario for testing the flow item using a forward case, the reverse case is test data not meeting the requirement of the flow item, the forward case is test data meeting the requirement of the flow item, the flow item includes a plurality of nodes, and the nodes have sequentiality, and the testing apparatus includes:
The first acquisition module 1 is used for acquiring the current node to be tested of the flow item according to the sequence of each node;
the first judging module 2 is configured to judge whether the node to be detected is a detected node, where the detected node is a node that completes detection by using the reverse flow, and the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
the first test module 3 is used for calling a reverse flow corresponding to the node to be tested to test the node to be tested to obtain first current response information;
the second judging module 4 is configured to judge whether the first current response information is the same as a first preset response information, where the first preset response information is feedback information preset by a developer and output by the node to be tested in a reverse flow;
and the marking module 5 is used for starting detection from a starting node of the flow project and marking the node to be detected as a detected node, wherein the starting node is a first node which needs to be detected and is marked in the flow project in advance by a developer.
In an embodiment, after the project is completed for the first time or modified later, an automation script is required to perform corresponding tests on the flow of the project, and the automation script sequentially performs the tests according to the sequence of each node in the project. When the project runs, namely, in a process of transmitting data input by a user, the test system needs to detect different aspects of the data, namely, the data detection points in the different aspects are nodes, and the nodes have corresponding sequentiality. The automation script in this embodiment includes a forward flow and a reverse flow. The forward flow is a scene of testing a flow project by using a forward case, an input mode and input data meeting project requirements are needed, and the test data meeting the flow project requirements is the forward case; the reverse flow is a scene of testing the flow project by using a reverse case, the input mode and the input data during the test do not meet the project requirement, and the test data which do not meet the flow project requirement are the reverse case. For example, when the card binding operation is performed, the system requests to input a valid card number of a bank supported by the system for binding, and if the card number of the input bank card and the length of the card number are correct, the input flow is a forward flow; if any one of the number of the inputted bank card or the length of the card number is different, the input flow is a reverse flow. The flow project comprises a plurality of nodes, each node has sequence, and the arrangement sequence of each node is preset by a developer. When the testing system tests the flow project, the testing system runs an automation script corresponding to the flow project, and simultaneously obtains the node to be tested, which is required to be tested currently, of the flow project according to the sequence of each node. When testing items, the testing system needs to record the detection completion degree of each node to form a detection record so as to judge whether each node completes the detection of the automation script, namely whether the node has completed the detection by using a reverse flow, and marks the node which completes the detection as a detected node. Therefore, the test system can directly judge whether the current node to be tested is the detected node or not by inquiring the detection record. If the node to be tested has no corresponding detection data in the detection record, the test system judges that the node to be tested is not the detected node, and the node of the item does not perform reverse flow detection yet. The testing system calls the reverse flow of the automatic script, and inputs the reverse case into the node to be tested for testing. After the reverse case is input, the node to be tested of the project responds to the reverse case to output corresponding feedback information, namely first current response information. The test system retrieves the first preset response information corresponding to the current node to be tested of the item in the reverse flow from the response database, and compares the first preset response information with the first current response information to judge whether the contents of the first preset response information and the first preset response information are consistent. If the current node to be tested is provided with a plurality of reverse sub-flows, the test system needs to compare the response sub-information of each reverse sub-flow with the corresponding preset response information in the response database. If one or more than one response messages are inconsistent in comparison, the node to be tested is judged to be abnormal. For example, when the binding operation is performed, the system requests to input a valid card number of a bank supported by the system to bind, and if the number of the input bank card is incorrect, the first preset response information is output: "please re-enter the correct card number", and the first current response information is: "directly eject the bank card". If the first current response information is inconsistent with the first preset response information, it is indicated that the response of the node to be tested of the project after receiving the reverse case is different from the expectation of the developer, the content of the project at the node to be tested may be modified or other errors occur, and the developer needs to correspondingly adjust the project or the automation script according to specific situations. For example, if the first preset response information of the node to be tested is modified, the automation script needs to be adjusted, and a developer can make the first preset response information consistent with the first current response information by modifying the first preset response information of the current node to be tested in the automation script, so that the current node to be tested is not judged to be abnormal when the automation test is performed; if the process of the project itself is wrong, the project needs to be adjusted. If the first current response information is consistent with the first preset response information, the response of the current node to be tested in the project when the reverse flow is executed is identical to the expected response. The test system initiates a re-detection request, and the automatic script is run again and circularly from the starting node of the project, the nodes of the project are sequentially detected, and the current node to be detected is marked as the detected node so as to run the forward flow in the next circular test process. Wherein the start node is the first node of the project.
Further, the test device further includes:
the second testing module 6 is used for calling a forward flow corresponding to the node to be tested to test the node to be tested to obtain second current response information;
a third judging module 7, configured to judge whether the second current response information is consistent with second preset response information, where the second preset response information is feedback information preset by a developer and output by the node to be tested in a forward flow;
a fourth judging module 8, configured to judge, according to the sequency of each node, whether the node to be detected is an end node of the flow project, where the end node is a last node to be detected marked in the flow project in advance by a developer;
a termination module 9 for ending the test.
In this embodiment, the test system may directly determine whether the current node to be tested is a detected node through the detection record. If the node to be tested has corresponding detection data in the detection record, the test system judges that the node to be tested is the detected node, invokes a forward flow of an automatic script to detect the node to be tested, and inputs a forward case into the node to be tested for testing. After the forward case is input, the node to be tested of the project can respond to the forward case to output corresponding feedback information, namely second current response information. The test system retrieves second preset response information corresponding to the current node to be tested of the item in the forward flow from the response database, and compares the second preset response information with the second current response information to judge whether the contents of the second preset response information and the second current response information are consistent. If the second current response information is inconsistent with the second preset response information, it is indicated that the response of the node to be tested of the project when the forward flow is operated is different from the expectation of the developer, the content of the project may be modified or other errors occur, and corresponding adjustment is performed on the project or the automation script according to specific situations. For example, if the response information of the node to be tested is modified, the automation script needs to be adjusted; if the process of the project itself is wrong, the project needs to be adjusted. If the second current response information is consistent with the second preset response information, the response of the node to be tested of the item when the forward flow is operated is identical with the expected response, and the node to be tested is normal. After the test system determines that the node to be tested is normal, it needs to determine whether the node to be tested is an end node of the flow item. The end node is the last node to be detected marked in advance by the developer in the current flow project. Because the automation script tests the project sequentially according to the sequence of the nodes in the project. Meanwhile, because the reverse flow of the automatic script needs to initiate a re-detection request after detecting the nodes of the project, the first node in the project is to run the reverse flow of the automatic script first and then run the forward flow, and re-initiate the request after finishing the reverse flow, and enter the next round of detection. If the test system detects that the current node to be tested is the ending node of the project, the current test of the forward flow and the reverse flow of all nodes of the whole project is finished, and the test can be ended. If the current node to be detected is not the ending node of the project, the automatic script continues to run to detect the next node, so that the automatic script is ensured to run forward flow before the next node to be detected, a re-detection request does not need to be initiated, and the automatic script can run to the next node to be detected to test reverse flow.
Further, the first test module 3 includes:
the judging unit is used for judging whether the node to be tested is preset with more than one reverse sub-flow, wherein the reverse sub-flow is a different parallel reverse test flow set by the automatic script on the node to be tested;
the detection unit is used for detecting the nodes to be detected through independent threads respectively to obtain current response sub-information corresponding to each reverse sub-flow;
and the generating unit is used for generating the first current response information according to each piece of the current response sub-information.
In this embodiment, a plurality of area modules are provided for individual nodes in the project, and each area module may execute different reverse cases simultaneously, i.e. the nodes are divided into a plurality of reverse sub-flows. When the area modules input different reverse cases, different response modes are preset. For example, when a user applies for binding a card, according to the flow of a project, the node to be tested can inquire about the binding condition in the background of an operating system to obtain different scenes: 1. unbound cards; 2. the card is bound but not successfully bound; 3. the card is bound. According to different scenes, the nodes to be tested of the project have different response modes: 1. prompting an operation user that the card is not bound; 2. prompting an operation user to check whether the card binding process is wrong; 3. the operating user is prompted to bind the card and inquire whether to enter the next flow. Therefore, according to different response modes of the project node, the automation script is provided with corresponding reverse sub-flows, which correspond to the different response modes of the node to be tested. Because the automatic script is written after the project is completed, the test system can directly judge whether the automatic script is divided into more than one reverse sub-flow at the current node to be tested according to the pre-recorded information. If the test system judges that the automation script is divided into more than one reverse sub-flow in the node to be tested, each reverse sub-flow is called at the same time, and the corresponding reverse sub-cases are input into the node to be tested through the corresponding independent threads, so that the current response sub-information corresponding to each reverse sub-flow is obtained. And the test system generates first current response information according to each response sub-information. For example, the first current response information includes: the response sub-information A, the response sub-information B and the response sub-information C are in parallel.
Further, the test device further includes:
the second obtaining module 10 is configured to obtain development information and test records of the node to be tested;
and the output module 11 is used for generating alarm information according to the development information and the test record and outputting the alarm information to a display interface.
In this embodiment, if the test system determines that the first current response information is inconsistent with the first preset response information, it indicates that the response of the current node to be tested in the project when the reverse flow is running is different from the expectation of the developer, and the content of the project may be modified or other errors occur, and corresponding adjustment is performed on the flow project or the automation script according to the specific situation. Therefore, the test system screens and obtains the development information corresponding to the current node to be tested according to the pre-recorded development information of the flow project. For example, the developer information of the project, such as the project has 5 nodes in total, wherein the node to be tested is node No. 3, and the developer responsible for node No. 3 is node C, the test system outputs the corresponding information of developer C, such as the contact information. Meanwhile, the test system can acquire the test record of the current test of the node to be tested, generate alarm information according to the development information and the test record, and output the alarm information to a display interface of the test system so as to enable a tester to perform corresponding processing. Furthermore, the test system can send the alarm information to the mobile terminal of the developer corresponding to the current node to be tested according to the developer information, so that the developer can know the test condition of the current node to be tested of the project in time.
Further, the test device further includes:
a third obtaining module 12, configured to obtain a project number of the flow project;
and a fourth obtaining module 13, configured to obtain an automation script corresponding to the item number from a script database constructed in advance, so that the automation script is used for detecting the flow item, and a mapping relationship table between the automation script and the item number is stored in the script database.
In this embodiment, a preset script library is built in the test system. The preset script library stores an automation script and project number mapping relation table so as to indicate the association relation between each automation script and the project number of the corresponding project, so that the corresponding automation script can be directly called according to the project number in the later stage of testing. For example, item No. 1 is associated with automated script No. 1. Before the testing system tests the program item, the item number of the item needs to be obtained, and then the corresponding automation script is obtained by matching from a preset script library according to the item number. The test system runs the automation script, starting the test from the first node of the project, to use the automation script for the detection of the procedural project.
Further, the test device further includes:
a fifth obtaining module 14, configured to obtain test records corresponding to each node in the flowchart item respectively;
and the analysis module 15 is used for analyzing each test record to obtain the operation performance corresponding to each node in the flow project.
In this embodiment, after the test system completes testing all nodes of the project, a test record of the whole project is formed according to various data such as response information and response speed of each node when running the automation script. The test record comprises test data when each node runs a forward flow and a reverse flow in the automation script. The test system can automatically analyze the test performance of each node in the project according to the test record, for example, the response information of the forward flow of the node 1 is correct, the response speed is moderate, the response information of the reverse flow is correct, and the response speed is slow; the response information of the forward flow of the node No. 2 is wrong, the response speed is slow, the response information of the reverse flow is correct, and the response speed is fast. The tester can judge whether to communicate with the developer of the project according to the test performance of each node analyzed by the test system, and correspondingly adjust each node. For example, the response speed of the forward flow of the node No. 1 is slow, and a developer is required to modify and adjust the forward flow so that the response speed is at least medium.
Further, the test device further includes:
an updating module 16, configured to update the number of errors of the node to be tested according to the error information;
a fifth judging module 17, configured to judge whether the number of errors is greater than a preset number;
and the sending module 18 is used for sending the test record corresponding to the node to be tested and the updated error times to a preset terminal.
In this embodiment, the test system determines that the first current response information is inconsistent with the first preset response information, and one is that a developer modifies the first preset response information of the current node to be tested when the reverse flow is operated, so that the first current response information obtained by the test system is inconsistent with the first preset response information when the automation script is operated; the other is that the internal data of the current node to be tested is in error, the whole system is blocked and cannot continue to run when the automatic script runs everywhere, and the test system records the error information of the node to be tested. The test system records the error times corresponding to each node, and when the alarm information output by the test system contains the error information, the error times corresponding to the current node to be tested can be automatically updated. Meanwhile, the test system calls preset times, and the preset times are set by a tester and are used for judging whether related test data of the node to be tested need to be sent to a preset terminal or not. The test system compares the updated error times of the nodes to be tested with preset times to judge the magnitude relation between the updated error times and the preset times. If the updated error times are greater than the preset times, the test system sends the error times of the test file of the node to be tested to the preset terminal. The preset terminal is preset by a tester and can be a contact terminal of a technical consultant of the project, so that the node to be tested can be adjusted in time after a plurality of errors occur.
The embodiment provides a flow project testing device based on an automation script, wherein a forward flow and a reverse flow are set in the automation script. When the process of the program project is tested, the rest nodes positioned in front of the current node to be tested execute the forward flow, the current node to be tested executes the reverse flow, and the test request is restarted after the reverse flow is executed. After the rest undetected nodes of the flow project are sequentially traversed in a circulating way, the complete coverage of the automation script on the whole flow project node is realized, so that each node can complete the detection of the forward and reverse flows, the integrity of project detection is improved, and corresponding modification is facilitated according to the modification of the project node in the later period.
Referring to fig. 3, in an embodiment of the present application, there is further provided a computer device, which may be a server, and an internal structure thereof may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as script database. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for automated script-based testing of a flow item.
The processor executes the steps of the automated script-based flow project testing method: the automation script comprises a reverse flow and a forward flow, the reverse flow is a scene of testing the flow item by using a reverse case, the forward flow is a scene of testing the flow item by using a forward case, the reverse case is test data which does not meet the requirement of the flow item, the forward case is test data which meets the requirement of the flow item, the flow item comprises a plurality of nodes, and each node has sequence, and the test method comprises the following steps:
s1: acquiring the current node to be tested of the flow item according to the sequency of each node;
s2: judging whether the node to be detected is a detected node or not, wherein the detected node is a node which is detected by using the reverse flow;
s3: if the node is not the detected node, calling a reverse flow corresponding to the node to be detected to test the node to be detected, and obtaining first current response information, wherein the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
s4: judging whether the first current response information is the same as first preset response information or not, wherein the first preset response information is feedback information which is preset by a developer and is output by the node to be tested in a reverse flow;
S5: if the detected node is the same as the first preset response information, starting detection from a start node of the flow item, and marking the node to be detected as a detected node, wherein the start node is a first node which needs to be detected and is marked in advance in the flow item by a developer.
Further, after the step of determining whether the node to be detected is a detected node, the method includes:
s6: if the node is detected, calling a forward flow corresponding to the node to be detected to test the node to be detected, and obtaining second current response information;
s7: judging whether the second current response information is consistent with second preset response information, wherein the second preset response information is feedback information which is preset by a developer and output by the node to be tested in a forward flow;
s8: if the node to be detected is consistent with the second preset response information, judging whether the node to be detected is an end node of the flow project according to the sequence of each node, wherein the end node is the last node to be detected, which is marked in the flow project in advance by a developer;
s9: and if the node is the ending node of the flow item, ending the test.
Further, the step of calling a preset reverse flow corresponding to the node to be tested to test the node to be tested includes:
s301: judging whether the node to be tested is preset with more than one reverse sub-flow, wherein the reverse sub-flow is a different parallel reverse test flow set by the automatic script on the node to be tested;
s302: if more than one reverse sub-flow is preset, detecting the nodes to be detected by the reverse sub-flows through independent threads respectively to obtain current response sub-information corresponding to the reverse sub-flows;
s303: and generating the first current response information according to each piece of the current response sub-information.
Further, after the step of determining whether the first current response information is the same as the first preset response information, the method includes:
s10: if the development information and the first preset response information are inconsistent, acquiring development information and test records of the node to be tested;
s11: generating alarm information according to the development information and the test record, and outputting the alarm information to a display interface.
Further, before the step of obtaining the current node to be tested of the flow item according to the sequency of each node, the method includes:
S12: acquiring the item number of the flow item;
s13: and acquiring an automation script corresponding to the item number from a pre-constructed script database so as to use the automation script for detecting the flow item, wherein a mapping relation table of the automation script and the item number is stored in the script database.
Further, after the step of ending the test, the method includes:
s14: obtaining test records corresponding to each node in the flow item respectively;
s15: analyzing each test record to obtain the operation performance corresponding to each node in the flow project.
Further, the test record includes error information of the node to be tested when the automation script is run, and after the step of outputting the alarm information to a display interface, the method includes:
s16: updating the error times of the node to be tested according to the error information;
s17: judging whether the error times are larger than preset times or not;
s18: and if the number of errors is greater than the preset number of times, sending the test record corresponding to the node to be tested and the updated number of errors to a preset terminal.
An embodiment of the present application further provides a computer readable storage medium having a computer program stored thereon, where the computer program when executed by a processor implements a method for testing a flow item based on an automation script, specifically: the automation script comprises a reverse flow and a forward flow, the reverse flow is a scene of testing the flow item by using a reverse case, the forward flow is a scene of testing the flow item by using a forward case, the reverse case is test data which does not meet the requirement of the flow item, the forward case is test data which meets the requirement of the flow item, the flow item comprises a plurality of nodes, and each node has sequence, and the test method comprises the following steps:
S1: acquiring the current node to be tested of the flow item according to the sequency of each node;
s2: judging whether the node to be detected is a detected node or not, wherein the detected node is a node which is detected by using the reverse flow;
s3: if the node is not the detected node, calling a reverse flow corresponding to the node to be detected to test the node to be detected, and obtaining first current response information, wherein the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
s4: judging whether the first current response information is the same as first preset response information or not, wherein the first preset response information is feedback information which is preset by a developer and is output by the node to be tested in a reverse flow;
s5: if the detected node is the same as the first preset response information, starting detection from a start node of the flow item, and marking the node to be detected as a detected node, wherein the start node is a first node which needs to be detected and is marked in advance in the flow item by a developer.
Further, after the step of determining whether the node to be detected is a detected node, the method includes:
S6: if the node is detected, calling a forward flow corresponding to the node to be detected to test the node to be detected, and obtaining second current response information;
s7: judging whether the second current response information is consistent with second preset response information, wherein the second preset response information is feedback information which is preset by a developer and output by the node to be tested in a forward flow;
s8: if the node to be detected is consistent with the second preset response information, judging whether the node to be detected is an end node of the flow project according to the sequence of each node, wherein the end node is the last node to be detected, which is marked in the flow project in advance by a developer;
s9: and if the node is the ending node of the flow item, ending the test.
Further, the step of calling a preset reverse flow corresponding to the node to be tested to test the node to be tested includes:
s301: judging whether the node to be tested is preset with more than one reverse sub-flow, wherein the reverse sub-flow is a different parallel reverse test flow set by the automatic script on the node to be tested;
s302: if more than one reverse sub-flow is preset, detecting the nodes to be detected by the reverse sub-flows through independent threads respectively to obtain current response sub-information corresponding to the reverse sub-flows;
S303: and generating the first current response information according to each piece of the current response sub-information.
Further, after the step of determining whether the first current response information is the same as the first preset response information, the method includes:
s10: if the development information and the first preset response information are inconsistent, acquiring development information and test records of the node to be tested;
s11: generating alarm information according to the development information and the test record, and outputting the alarm information to a display interface.
Further, before the step of obtaining the current node to be tested of the flow item according to the sequency of each node, the method includes:
s12: acquiring the item number of the flow item;
s13: and acquiring an automation script corresponding to the item number from a pre-constructed script database so as to use the automation script for detecting the flow item, wherein a mapping relation table of the automation script and the item number is stored in the script database.
Further, after the step of ending the test, the method includes:
s14: obtaining test records corresponding to each node in the flow item respectively;
s15: analyzing each test record to obtain the operation performance corresponding to each node in the flow project.
Further, the test record includes error information of the node to be tested when the automation script is run, and after the step of outputting the alarm information to a display interface, the method includes:
s16: updating the error times of the node to be tested according to the error information;
s17: judging whether the error times are larger than preset times or not;
s18: and if the number of errors is greater than the preset number of times, sending the test record corresponding to the node to be tested and the updated number of errors to a preset terminal.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by hardware associated with a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present application and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application or direct or indirect application in other related technical fields are included in the scope of the present application.

Claims (10)

1. The utility model provides a flow item test method based on automated script, characterized in that, automated script includes reverse flow and forward flow, reverse flow is the scene of using reverse case to test flow item, forward flow is the scene of using forward case to test flow item, reverse case is the test data that does not accord with the flow item requirement, forward case is the test data that accords with the flow item requirement, flow item includes a plurality of nodes, each node has the sequentiality, the test method includes:
Acquiring the current node to be tested of the flow item according to the sequency of each node;
judging whether the node to be detected is a detected node or not, wherein the detected node is a node which is detected by using the reverse flow;
if the node is not the detected node, calling a reverse flow corresponding to the node to be detected to test the node to be detected, and obtaining first current response information, wherein the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
judging whether the first current response information is the same as first preset response information or not, wherein the first preset response information is feedback information which is preset by a developer and is output by the node to be tested in a reverse flow;
if the detected node is the same as the first preset response information, starting detection from a start node of the flow item, and marking the node to be detected as a detected node, wherein the start node is a first node which needs to be detected and is marked in advance in the flow item by a developer.
2. The automated script-based flow project testing method of claim 1, wherein after the step of determining whether the node under test is a detected node, comprising:
If the node is detected, calling a forward flow corresponding to the node to be detected to test the node to be detected, and obtaining second current response information;
judging whether the second current response information is consistent with second preset response information, wherein the second preset response information is feedback information which is preset by a developer and output by the node to be tested in a forward flow;
if the node to be detected is consistent with the second preset response information, judging whether the node to be detected is an end node of the flow project according to the sequence of each node, wherein the end node is the last node to be detected, which is marked in the flow project in advance by a developer;
and if the node is the ending node of the flow item, ending the test.
3. The method for testing a flow item based on an automation script according to claim 1, wherein the step of calling a preset reverse flow corresponding to the node to be tested to test the node to be tested comprises:
judging whether the node to be tested is preset with more than one reverse sub-flow, wherein the reverse sub-flow is a different parallel reverse test flow set by the automatic script on the node to be tested;
If more than one reverse sub-flow is preset, detecting the nodes to be detected by the reverse sub-flows through independent threads respectively to obtain current response sub-information corresponding to the reverse sub-flows;
and generating the first current response information according to each piece of the current response sub-information.
4. The automated script-based flow item testing method of claim 1, wherein after the step of determining whether the first current response information is the same as a first preset response information, comprising:
if the development information and the first preset response information are inconsistent, acquiring development information and test records of the node to be tested;
generating alarm information according to the development information and the test record, and outputting the alarm information to a display interface.
5. The method for testing a flow item based on an automation script according to claim 1, wherein before the step of obtaining the current node to be tested of the flow item according to the sequence of the nodes, the method comprises:
acquiring the item number of the flow item;
and acquiring an automation script corresponding to the item number from a pre-constructed script database so as to use the automation script for detecting the flow item, wherein a mapping relation table of the automation script and the item number is stored in the script database.
6. The automated script-based flow project testing method of claim 2, wherein after the step of ending the test, comprising:
obtaining test records corresponding to each node in the flow item respectively;
analyzing each test record to obtain the operation performance corresponding to each node in the flow project.
7. The automated script-based flow project testing method of claim 4, wherein the test record comprises error information of the node under test when the automated script is run, and wherein after the step of outputting the alarm information to a display interface, the method comprises:
updating the error times of the node to be tested according to the error information;
judging whether the error times are larger than preset times or not;
and if the number of errors is greater than the preset number of times, sending the test record corresponding to the node to be tested and the updated number of errors to a preset terminal.
8. An automated script-based flow item testing device, wherein the automated script comprises a reverse flow and a forward flow, the reverse flow is a scenario in which the flow item is tested by using a reverse case, the forward flow is a scenario in which the flow item is tested by using a forward case, the reverse case is test data which does not meet the requirement of the flow item, the forward case is test data which meets the requirement of the flow item, the flow item comprises a plurality of nodes, and each node has a sequence, the testing device comprises:
The first acquisition module is used for acquiring the current node to be tested of the flow item according to the sequence of each node;
the first judging module is used for judging whether the node to be detected is a detected node, the detected node is a node which is detected by using the reverse flow, and the first current response information is feedback information output after the node to be detected operates according to the reverse flow;
the first testing module is used for calling a reverse flow corresponding to the node to be tested to test the node to be tested to obtain first current response information;
the second judging module is used for judging whether the first current response information is the same as first preset response information, wherein the first preset response information is feedback information which is preset by a developer and is output by the node to be tested in a reverse flow;
the marking module is used for starting detection from a starting node of the flow project and marking the node to be detected as a detected node, wherein the starting node is a first node which needs to be detected and is marked in the flow project in advance by a developer.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN201910435021.9A 2019-05-23 2019-05-23 Automatic script-based flow project testing method and related equipment Active CN110309057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910435021.9A CN110309057B (en) 2019-05-23 2019-05-23 Automatic script-based flow project testing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910435021.9A CN110309057B (en) 2019-05-23 2019-05-23 Automatic script-based flow project testing method and related equipment

Publications (2)

Publication Number Publication Date
CN110309057A CN110309057A (en) 2019-10-08
CN110309057B true CN110309057B (en) 2023-09-15

Family

ID=68075494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910435021.9A Active CN110309057B (en) 2019-05-23 2019-05-23 Automatic script-based flow project testing method and related equipment

Country Status (1)

Country Link
CN (1) CN110309057B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786854B (en) * 2020-06-30 2022-08-16 曙光信息产业(北京)有限公司 Network card testing method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468655A (en) * 2013-09-18 2015-03-25 阿里巴巴集团控股有限公司 Method and system for testing reverse proxy software
CN107368412A (en) * 2017-07-03 2017-11-21 上海前隆信息科技有限公司 Automated testing method/system, computer-readable recording medium and electronic equipment
CN108563567A (en) * 2018-04-09 2018-09-21 平安普惠企业管理有限公司 Automated testing method, device, equipment and computer readable storage medium
CN109710517A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Integration test method, device and computer equipment based on automated test tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468655A (en) * 2013-09-18 2015-03-25 阿里巴巴集团控股有限公司 Method and system for testing reverse proxy software
CN107368412A (en) * 2017-07-03 2017-11-21 上海前隆信息科技有限公司 Automated testing method/system, computer-readable recording medium and electronic equipment
CN108563567A (en) * 2018-04-09 2018-09-21 平安普惠企业管理有限公司 Automated testing method, device, equipment and computer readable storage medium
CN109710517A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Integration test method, device and computer equipment based on automated test tool

Also Published As

Publication number Publication date
CN110309057A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110908909B (en) Automatic test method, device, storage medium and equipment
CN108400978B (en) Vulnerability detection method and device, computer equipment and storage medium
CN112115005B (en) Test data acquisition method and device, computer equipment and storage medium
CN112597016A (en) Recording method, device and equipment of automatic test script and storage medium
CN111026080A (en) Hardware-in-loop test method and device for controller
CN112395202A (en) Interface automation test method and device, computer equipment and storage medium
CN110309057B (en) Automatic script-based flow project testing method and related equipment
CN113282513B (en) Interface test case generation method and device, computer equipment and storage medium
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN112486811A (en) Interface test method, device, equipment and medium
CN112612706A (en) Automated testing method, computer device and storage medium
CN116431522A (en) Automatic test method and system for low-code object storage gateway
KR101252358B1 (en) Apparatus and method for testing plc command
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software
CN113886262A (en) Software automation test method and device, computer equipment and storage medium
CN115878448A (en) Database test method, distributed database and storage medium
CN110046067B (en) Interface testing method and device
CN113094258A (en) Precise test method and device, computer equipment and medium
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN112416781A (en) Cross-system interface determination method and device, computer equipment and storage medium
CN112486838A (en) Interface testing method and device, computer equipment and storage medium
CN114297058B (en) Test method and device
CN110908903A (en) Test method based on editable YAML file
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN111209187B (en) Service request processing method, device, computer 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
TA01 Transfer of patent application right

Effective date of registration: 20230823

Address after: 518000, 501, 5th Floor, Cuilin Building, No. 10 Kaifeng Road, Maling Community, Meilin Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Lingxiong Technology (Shenzhen) Co.,Ltd.

Address before: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen LIAN intellectual property service center

Effective date of registration: 20230823

Address after: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen LIAN intellectual property service center

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant