Background
Each software product or software development project needs an excellent set of test schemes and test methods. The test case is the guide of the test work, is the criterion that the software test must obey, and is the fundamental guarantee of the stable quality of the software test. A Test Case (Test Case) is a set of Test inputs, execution conditions, and expected results tailored for a particular target to Test a certain program path or verify whether a certain specific requirement is met. The importance of software testing is undoubted. However, how to complete the test in the shortest time with the least input of manpower and resources, find the defects of the software system and ensure the good quality of the software is the target of the exploration and pursuit of the software company.
However, as software continues to evolve, more and more software systems are integrated, i.e., relatively independent and interdependent. For such an integrated software system, how to complete the test in the shortest time with the least investment of manpower and resources, find the defects of the software system, and ensure the excellent quality of the software is a problem to be solved urgently.
Disclosure of Invention
The invention aims to: aiming at the problems in the prior art, the method for testing software integration based on the combined flow chart is provided, and the problem of how to test the integrated software system with low cost, high efficiency and high quality is solved.
The invention aims to be realized by the following technical scheme:
a method for testing software integration based on a combined flow diagram, the method comprising:
(1) acquiring program flows of all systems used in combination;
(2) drawing a flow chart according to a program flow and combining;
(3) arranging data logic and business logic among different systems according to the flow chart;
(4) and performing source tracing verification on each system according to the data logic and the service logic.
As a further technical solution, the definition of the drawing flow chart is as follows: start and end marks, characterized by oval symbols, for indicating the start or end of a process, the "start" or "end" being written within the symbols; an activity flag, characterized by a rectangle symbol, for indicating that at a single step of the process, a brief description of the activity is written within the rectangle; the decision mark is characterized by a diamond symbol and is used for representing a decision or a bifurcation point in the process, and the description of the decision or the bifurcation is written in the diamond; a streamline indicator represented by a line with an arrow to indicate the progress of the step in the sequence, the arrow of the streamline indicating the flow direction of one process; the file mark is characterized by brackets and is used for representing written information belonging to the process, and the title or the description of the file is written in the symbol; the connection mark is characterized by a circle symbol and is used for representing the standby of the flow chart, a letter or a number is arranged in the circle, and the same letter or number is used for the connection mark in the interconnected flow charts to represent how the processes are connected.
As a further technical solution, the data logic and the service logic include: the data presented by the system A is acquired by the system B in two modes of automatic discovery or manual configuration; the data automatically acquired by the system B is the number of bytes and the time range, and the data required to be presented and recorded into the database by the system A is the bit rate.
As a further technical solution, the tracing verification includes: and finding the byte number and the time range of the data provided on the page of the system B, and obtaining the bit rate through an algorithm so as to verify the function and the data of the system A.
As a further technical solution, the algorithm for obtaining the bit rate is: the bit rate is the number of bytes (B) × 8/time or the bit rate is the number of bytes (KB) × 1024 × 8/time.
Compared with the prior art, the method is visual and intuitive, various operations are clear at a glance, no ambiguity is generated, the method is convenient to understand, the algorithm is easy to find when in error, and the algorithm can be directly converted into a program.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments.
Example 1
The applicant researches and discovers that: before the different systems are used in an integrated mode, most of the different systems pass the test of the systems. Therefore, the test key points of different system integration are not that all integrated software programs are tested once, so that the human resources are wasted, and the final test effect is not remarkable. For this case, the flow chart can be used to arrange the data logic and the business logic between different systems. By utilizing the advantages of visual image and clear operation, under the visual logic, the test case is rapidly perfected, the test key is grasped, and the purpose of high-efficiency test is achieved.
Based on the foregoing research, the applicant provides a method for testing software integration based on a combined flowchart in the present invention, as shown in fig. 1, the method includes:
step 1, acquiring program flows of all systems used in combination;
step 2, drawing a flow chart according to the program flow and combining the flow chart;
step 3, data logic and service logic among different systems are arranged according to the flow chart;
and 4, performing source tracing verification on each system according to the data logic and the service logic.
Example 2
The applicant researches and discovers that: before the different systems are used in an integrated mode, most of the different systems pass the test of the systems. Therefore, the test key points of different system integration are not that all integrated software programs are tested once, so that the human resources are wasted, and the final test effect is not remarkable. For this case, the flow chart can be used to arrange the data logic and the business logic between different systems. By utilizing the advantages of visual image and clear operation, under the visual logic, the test case is rapidly perfected, the test key is grasped, and the purpose of high-efficiency test is achieved.
Based on the foregoing research, the applicant provides a method for testing software integration based on a combined flowchart in the present invention, as shown in fig. 1, the method includes:
and step 1, acquiring program flows of all systems used in combination.
And 2, drawing a flow chart according to the program flow and combining the flow chart. The definition of the drawing flow chart is as follows: start and end marks, characterized by oval symbols, for indicating the start or end of a process, the "start" or "end" being written within the symbols; an activity flag, characterized by a rectangle symbol, for indicating that at a single step of the process, a brief description of the activity is written within the rectangle; the decision mark is characterized by a diamond symbol and is used for representing a decision or a bifurcation point in the process, and the description of the decision or the bifurcation is written in the diamond; a streamline indicator represented by a line with an arrow to indicate the progress of the step in the sequence, the arrow of the streamline indicating the flow direction of one process; the file mark is characterized by brackets and is used for representing written information belonging to the process, and the title or the description of the file is written in the symbol; the connection mark is characterized by a circle symbol and is used for representing the standby of the flow chart, a letter or a number is arranged in the circle, and the same letter or number is used for the connection mark in the interconnected flow charts to represent how the processes are connected.
And 3, organizing data logic and service logic among different systems according to the flow chart.
And 4, performing source tracing verification on each system according to the data logic and the service logic.
Example 3
The applicant researches and discovers that: before the different systems are used in an integrated mode, most of the different systems pass the test of the systems. Therefore, the test key points of different system integration are not that all integrated software programs are tested once, so that the human resources are wasted, and the final test effect is not remarkable. For this case, the flow chart can be used to arrange the data logic and the business logic between different systems. By utilizing the advantages of visual image and clear operation, under the visual logic, the test case is rapidly perfected, the test key is grasped, and the purpose of high-efficiency test is achieved.
Based on the foregoing research, the applicant provides a method for testing software integration based on a combined flowchart in the present invention, as shown in fig. 1, the method includes:
and step 1, acquiring program flows of all systems used in combination.
And 2, drawing a flow chart according to the program flow and combining the flow chart. The definition of the drawing flow chart is as follows: start and end marks, characterized by oval symbols, for indicating the start or end of a process, the "start" or "end" being written within the symbols; an activity flag, characterized by a rectangle symbol, for indicating that at a single step of the process, a brief description of the activity is written within the rectangle; the decision mark is characterized by a diamond symbol and is used for representing a decision or a bifurcation point in the process, and the description of the decision or the bifurcation is written in the diamond; a streamline indicator represented by a line with an arrow to indicate the progress of the step in the sequence, the arrow of the streamline indicating the flow direction of one process; the file mark is characterized by brackets and is used for representing written information belonging to the process, and the title or the description of the file is written in the symbol; the connection mark is characterized by a circle symbol and is used for representing the standby of the flow chart, a letter or a number is arranged in the circle, and the same letter or number is used for the connection mark in the interconnected flow charts to represent how the processes are connected.
And 3, organizing data logic and service logic among different systems according to the flow chart. The data logic and the service logic comprise: the data presented by the system A is acquired by the system B in two modes of automatic discovery or manual configuration; the data automatically acquired by the system B is the number of bytes and the time range, and the data required to be presented and recorded into the database by the system A is the bit rate.
And 4, performing source tracing verification on each system according to the data logic and the service logic.
Example 4
The applicant researches and discovers that: before the different systems are used in an integrated mode, most of the different systems pass the test of the systems. Therefore, the test key points of different system integration are not that all integrated software programs are tested once, so that the human resources are wasted, and the final test effect is not remarkable. For this case, the flow chart can be used to arrange the data logic and the business logic between different systems. By utilizing the advantages of visual image and clear operation, under the visual logic, the test case is rapidly perfected, the test key is grasped, and the purpose of high-efficiency test is achieved.
Based on the foregoing research, the applicant provides a method for testing software integration based on a combined flowchart in the present invention, as shown in fig. 1, the method includes:
and step 1, acquiring program flows of all systems used in combination.
And 2, drawing a flow chart according to the program flow and combining the flow chart. The definition of the drawing flow chart is as follows: start and end marks, characterized by oval symbols, for indicating the start or end of a process, the "start" or "end" being written within the symbols; an activity flag, characterized by a rectangle symbol, for indicating that at a single step of the process, a brief description of the activity is written within the rectangle; the decision mark is characterized by a diamond symbol and is used for representing a decision or a bifurcation point in the process, and the description of the decision or the bifurcation is written in the diamond; a streamline indicator represented by a line with an arrow to indicate the progress of the step in the sequence, the arrow of the streamline indicating the flow direction of one process; the file mark is characterized by brackets and is used for representing written information belonging to the process, and the title or the description of the file is written in the symbol; the connection mark is characterized by a circle symbol and is used for representing the standby of the flow chart, a letter or a number is arranged in the circle, and the same letter or number is used for the connection mark in the interconnected flow charts to represent how the processes are connected.
Fig. 1 is a flow chart of a combination of two systems.
And 3, organizing data logic and service logic among different systems according to the flow chart. The data logic and the service logic comprise: the data presented by the system A is acquired by the system B in two modes of automatic discovery or manual configuration; the data automatically acquired by the system B is the number of bytes and the time range, and the data required to be presented and recorded into the database by the system A is the bit rate.
For example, it is obvious from fig. 1 that the data presented by system a is obtained by system B through automatic discovery or manual configuration.
And 4, performing source tracing verification on each system according to the data logic and the service logic. The source tracing verification comprises the following steps: and finding the byte number and the time range of the data provided on the page of the system B, and obtaining the bit rate through an algorithm so as to verify the function and the data of the system A. The algorithm to get the bit rate is: the bit rate is the number of bytes (B) × 8/time or the bit rate is the number of bytes (KB) × 1024 × 8/time.
For example, according to the detailed design of the system A, B in fig. 1, the logical method of data integration of the system is grasped: the data automatically acquired by the system B is the byte number and the time range, and the byte number and the time range are displayed on the page. System a requires the data presented and entered into the database to be at the bit rate. The algorithm is as follows: the bit rate is the number of bytes (B) × 8/time, the bit rate is the number of bytes (KB) × 1024 × 8/time, and so on. And compiling a test case, performing source tracing verification in an acquisition mode provided by the system B when verifying the function and the data correctness, finding the number of bytes and the time range of data provided on a page of the system B, and obtaining the bit rate through an algorithm so as to verify the function and the data of the system A.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, it should be noted that any modifications, equivalents and improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.