CN110716858A - Industrial control software testing system and software testing method - Google Patents
Industrial control software testing system and software testing method Download PDFInfo
- Publication number
- CN110716858A CN110716858A CN201910815946.6A CN201910815946A CN110716858A CN 110716858 A CN110716858 A CN 110716858A CN 201910815946 A CN201910815946 A CN 201910815946A CN 110716858 A CN110716858 A CN 110716858A
- Authority
- CN
- China
- Prior art keywords
- test
- testing
- unit
- program
- software
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an industrial control software testing system and a software testing method, which comprise a system testing log, a program structure testing unit, a program running unit, a stage testing unit and a cloud remote testing unit; the program structure test unit comprises a black box test unit and a white box test unit which are respectively used for testing results and an internal structure; the program operation unit has a static test and a dynamic test, the static test is carried out when the program is not operated, and the dynamic test is carried out when the program is operated; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; the invention provides an industrial control software testing system and a software testing method, which cover the establishment of a system testing log, the testing of a program structure, the testing of program operation, staged testing and cloud remote testing, test the software more comprehensively, scientifically and reasonably and are beneficial to the normal operation of the software.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to an industrial control software testing system and a software testing method.
Background
Industrial control software is so-called industrial control software in a narrow sense. Since the programmable controller is adopted, industrial control software becomes an inseparable part of industrial automation, but in practical application, the control software is not isolated, but is integrated with other software to play the due role, so that the control software broadly comprises data acquisition, a human-computer interface, software application, process control, a database, data communication and the like, the covered content is continuously enriched along with the development of the technology, and the pure control is integrated with management to form factory informatization.
Software testing is an execution process of a program, and aims to find and correct errors in tested software as much as possible and improve the reliability of the software. The method is very important and complex work in the software life cycle, and has extremely important significance for ensuring the software reliability. In the case where the current formalization methods and program correctness proofing techniques are not expected to be practical methods, software testing remains an effective method for software reliability assurance for a considerable period of time in the future. The general goal of software engineering is to efficiently and qualitatively complete software development projects by fully utilizing limited human and material resources. Insufficient testing tends to cause the software to run with some hidden errors not revealed, which would mean a greater risk to the user. Over-testing wastes a lot of valuable resources. By the late stage of testing, even if errors are found, they are paid an excessive cost. Therefore, the industrial control software testing system and the software testing method are provided.
Disclosure of Invention
The invention aims to: in order to solve the problem of industrial control software testing, an industrial control software testing system and a software testing method are provided.
The technical scheme adopted by the invention is as follows:
an industrial control software test system comprises a system test log; the device is used for recording the result of each test, and comparing and analyzing the test result; the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure; the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; a cloud remote test unit; the method is used for cloud remote testing.
An industrial control software testing method comprises the following steps:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; and synchronizing the test result to the system test log, perfecting the system test log and facilitating the next test on the software.
The S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, knows the internal working process of a product, detects the condition that the internal action of the product normally works according to the specification through the test, tests the unit program according to the structure in the program, and verifies the condition that each channel in the program can correctly work according to the preset requirement regardless of the function of the white box test unit.
The S3 static and dynamic test comprises the following specific steps:
s301, static testing; the method comprises code walkthrough, code review and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports;
s302, dynamic testing; the method is a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent.
Wherein, the S4 is tested according to stages, and the specific steps are as follows:
s401, performing integration test; the integration test mainly aims at the internal structure of the program to test, particularly tests the interface between the programs, and has higher requirements on the script writing capability of testers;
s402, unit testing; the object is the minimum unit of software design-module; the unit test is designed to test cases corresponding to all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel;
s403, testing the system; the method refers to that the whole software system is regarded as a whole to be tested, the functions, the performance and the software and hardware environment in which the software runs are tested, and the main basis of the system test is a document of system requirement specification.
Wherein, S5 connects the internet and carries out the long-range test unit in high in the clouds, and its specific step is as follows:
s501, connecting the Internet with a cloud; connecting the cloud terminal through the Internet for further testing;
s502, remotely testing by cloud professionals; a professional carries out remote operation through a network and tests the running condition of software;
s503, recording and summarizing test results; and storing the final test result record for uploading a system test log.
Wherein, the S6 test result is synchronized to the system test log, and the specific steps are as follows:
s601, synchronously uploading a test result; synchronously uploading the test result to a system test log;
s602, updating a system test log; and the uploaded test result is used as the update data of the system test log, so that comparison can be conveniently provided for the next test.
The S502 cloud professional performs remote testing, and the professional provides a professional maintenance tester for a software developer, so that the software is comprehensively known.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. the invention provides an industrial control software testing system and a software testing method, which cover the establishment of a system testing log, the testing of a program structure, the testing of program operation, staged testing and cloud remote testing, test the software more comprehensively, scientifically and reasonably and are beneficial to the normal operation of the software.
2. The system test log is created, the result of each test is recorded by creating the system test log, the system test log is used for comparing and analyzing the test result, and time can be saved for the next test.
3. The black-and-white box test unit tests the internal and external structures of the program through two tests of the black box test unit and the white box test unit; the black box test unit is also called a function test and detects the normal use condition of each function through the test; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure; the white box test unit, also called structure test unit or logic drive test, is to know the internal working process of the product, detect the condition that the internal action of the product normally proceeds according to the specification through the test, test the unit procedure according to the structure inside the procedure, check the condition that every channel in the procedure can correctly operate according to the predetermined requirement, and no matter its function, the main method of the white box test unit has logic drive, base path test, mainly used for software verification.
4. The invention further relates to static and dynamic tests, which test the two states of the program when the program is not operated and is operated by static tests and dynamic tests; static test, which comprises code walk-through, code examination and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports; the dynamic test refers to a process of actually running a tested program, inputting corresponding test data, and checking whether an output result and an expected result can not be consistent.
5. The invention further discloses the step-by-step test, and the step-by-step test unit of the software is completed through the system test, the unit test and the integrated test; the method comprises the steps of (1) performing integrated test, wherein the integrated test mainly aims at the internal structure of a program, particularly tests an interface between the programs, and has higher requirements on the script writing capability of testers; the unit test is a module which is the minimum unit of software design, the unit test is used for designing test cases for all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel; the system test refers to taking the whole software system as a whole to test, and testing functions, performance and software and hardware environments in which software runs, and the main basis of the system test is a document of specification of system requirements.
6. The invention further relates to a cloud remote testing unit connected with the Internet, wherein the cloud remote testing unit is connected with the cloud through the Internet, and the cloud is provided with a professional specially responsible for providing online testing for software; the Internet is connected with the cloud end, and the cloud end is connected through the Internet for further testing; the cloud professional carries out remote testing, and carries out remote operation through a network by the professional to test the running condition of software; and recording and summarizing the test result, and storing the final test result record for uploading a system test log.
7. The invention further synchronizes the test result to the system test log, perfects the system test log and is convenient for testing the software next time; synchronously uploading the test result, and synchronously uploading the test result to a system test log; and updating the system test log, wherein the uploaded test result is used as the update data of the system test log, so that comparison is conveniently provided for the next test.
Drawings
FIG. 1 is a simplified schematic flow diagram of an industrial control software test system according to the present invention;
FIG. 2 is a simplified schematic flow chart of an industrial control software testing method according to the present invention;
FIG. 3 is a schematic flow chart of a black and white box test unit according to the present invention;
FIG. 4 is a simplified schematic illustration of a static and dynamic test procedure according to the present invention;
FIG. 5 is a simplified schematic illustration of a staged test procedure according to the present invention;
FIG. 6 is a schematic flow chart of a unit for connecting to the Internet to perform cloud remote testing according to the present invention;
FIG. 7 is a schematic diagram illustrating a process of synchronizing test results to system test logs according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention; the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance; furthermore, unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, as they may be fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the first embodiment, referring to fig. 1 to 2, an industrial control software test system includes a system test log; the device is used for recording the result of each test, and comparing and analyzing the test result; the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure; the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; a cloud remote test unit; the method is used for cloud remote testing.
An industrial control software test comprising the steps of:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; synchronizing the test result to a system test log, perfecting the system test log and facilitating the next test on software;
the S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, knows the internal working process of a product, detects the condition that the internal action of the product normally works according to the specification through the test, tests the unit program according to the structure in the program, and verifies the condition that each channel in the program can correctly work according to the preset requirement regardless of the function of the white box test unit.
In the second embodiment, referring to fig. 1 to 3, an industrial control software test system includes a system test log; the device is used for recording the result of each test, and comparing and analyzing the test result; the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure; the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; a cloud remote test unit; the method is used for cloud remote testing.
An industrial control software test comprising the steps of:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; synchronizing the test result to a system test log, perfecting the system test log and facilitating the next test on software;
the S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, which is characterized in that the internal working process of a product is known, the condition that the internal action of the product is normally carried out according to the specification is detected through the test, and according to the structure test unit program in the program, the condition that each channel in the program can correctly work according to the preset requirement is checked, regardless of the function of the white box test unit;
the S3 static and dynamic test comprises the following specific steps:
s301, static testing; the method comprises code walkthrough, code review and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports;
s302, dynamic testing; the method is a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent.
In the third embodiment, referring to fig. 1 to 4, an industrial control software test system includes a system test log; the device is used for recording the result of each test, and comparing and analyzing the test result; the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure; the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; a cloud remote test unit; the method is used for cloud remote testing.
An industrial control software test comprising the steps of:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; synchronizing the test result to a system test log, perfecting the system test log and facilitating the next test on software;
the S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, which is characterized in that the internal working process of a product is known, the condition that the internal action of the product is normally carried out according to the specification is detected through the test, and according to the structure test unit program in the program, the condition that each channel in the program can correctly work according to the preset requirement is checked, regardless of the function of the white box test unit;
the S3 static and dynamic test comprises the following specific steps:
s301, static testing; the method comprises code walkthrough, code review and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports;
s302, dynamic testing; the method is a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent;
wherein, the S4 is tested according to stages, and the specific steps are as follows:
s401, performing integration test; the integration test mainly aims at the internal structure of the program to test, particularly tests the interface between the programs, and has higher requirements on the script writing capability of testers;
s402, unit testing; the object is the minimum unit of software design-module; the unit test is designed to test cases corresponding to all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel;
s403, testing the system; the method refers to that the whole software system is regarded as a whole to be tested, the functions, the performance and the software and hardware environment in which the software runs are tested, and the main basis of the system test is a document of system requirement specification.
In the fourth embodiment, referring to fig. 1 to 5, an industrial control software test system includes a system test log; the device is used for recording the result of each test, and comparing and analyzing the test result; the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure; the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; a cloud remote test unit; the method is used for cloud remote testing.
An industrial control software test comprising the steps of:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; synchronizing the test result to a system test log, perfecting the system test log and facilitating the next test on software;
the S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, which is characterized in that the internal working process of a product is known, the condition that the internal action of the product is normally carried out according to the specification is detected through the test, and according to the structure test unit program in the program, the condition that each channel in the program can correctly work according to the preset requirement is checked, regardless of the function of the white box test unit;
the S3 static and dynamic test comprises the following specific steps:
s301, static testing; the method comprises code walkthrough, code review and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports;
s302, dynamic testing; the method is a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent;
wherein, the S4 is tested according to stages, and the specific steps are as follows:
s401, performing integration test; the integration test mainly aims at the internal structure of the program to test, particularly tests the interface between the programs, and has higher requirements on the script writing capability of testers;
s402, unit testing; the object is the minimum unit of software design-module; the unit test is designed to test cases corresponding to all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel;
s403, testing the system; the method comprises the steps of taking the whole software system as a whole to test, and testing functions, performances and software and hardware environments in which software runs, wherein the main basis of system test is a document of system requirement specification;
wherein, S5 connects the internet and carries out the long-range test unit in high in the clouds, and its specific step is as follows:
s501, connecting the Internet with a cloud; connecting the cloud terminal through the Internet for further testing;
s502, remotely testing by cloud professionals; a professional carries out remote operation through a network and tests the running condition of software;
s503, recording and summarizing test results; and storing the final test result record for uploading a system test log.
In the fifth embodiment, referring to fig. 1 to 6, an industrial control software test system includes a system test log; the device is used for recording the result of each test, and comparing and analyzing the test result; the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure; the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run; the staged test unit comprises three tests, namely a system test, a unit test and an integrated test; a cloud remote test unit; the method is used for cloud remote testing.
An industrial control software test comprising the steps of:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; synchronizing the test result to a system test log, perfecting the system test log and facilitating the next test on software;
the S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, which is characterized in that the internal working process of a product is known, the condition that the internal action of the product is normally carried out according to the specification is detected through the test, and according to the structure test unit program in the program, the condition that each channel in the program can correctly work according to the preset requirement is checked, regardless of the function of the white box test unit;
the S3 static and dynamic test comprises the following specific steps:
s301, static testing; the method comprises code walkthrough, code review and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports;
s302, dynamic testing; the method is a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent;
wherein, the S4 is tested according to stages, and the specific steps are as follows:
s401, performing integration test; the integration test mainly aims at the internal structure of the program to test, particularly tests the interface between the programs, and has higher requirements on the script writing capability of testers;
s402, unit testing; the object is the minimum unit of software design-module; the unit test is designed to test cases corresponding to all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel;
s403, testing the system; the method comprises the steps of taking the whole software system as a whole to test, and testing functions, performances and software and hardware environments in which software runs, wherein the main basis of system test is a document of system requirement specification;
wherein, S5 connects the internet and carries out the long-range test unit in high in the clouds, and its specific step is as follows:
s501, connecting the Internet with a cloud; connecting the cloud terminal through the Internet for further testing;
s502, remotely testing by cloud professionals; a professional carries out remote operation through a network and tests the running condition of software;
s503, recording and summarizing test results; storing the final test result record for uploading a system test log;
wherein, the S6 test result is synchronized to the system test log, and the specific steps are as follows:
s601, synchronously uploading a test result; synchronously uploading the test result to a system test log;
s602, updating a system test log; and the uploaded test result is used as the update data of the system test log, so that comparison can be conveniently provided for the next test.
The working principle is as follows: the invention provides an industrial control software test system and a software test method, which cover the establishment of a system test log, the test of a program structure, the test of program operation, the staged test and the remote test of a cloud end, test the software more comprehensively, scientifically and reasonably and are beneficial to the normal operation of the software; the system test log is created, the result of each test is recorded by creating the system test log, the system test log is used for comparing and analyzing the test result, and time can be saved for the next test; the black-and-white box test unit tests the internal and external structures of the program through two tests of the black box test unit and the white box test unit; the black box test unit is also called a function test and detects the normal use condition of each function through the test; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure; the white box test unit, the white box test unit is also called structural test unit or logic drive test, it knows the internal working process of the product, detect the situation that the internal action of the product is normally carried on according to the rule of the specification through the test, according to the structural test unit procedure in the procedure, every route in the test procedure can be according to the situation that the predetermined requirement works correctly, and do not regard its function, the main method of the white box test unit has logic drive, base circuit test, mainly used for software verification; the invention further relates to static and dynamic tests, which test the two states of the program when the program is not operated and is operated by static tests and dynamic tests; static test, which comprises code walk-through, code examination and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports; the dynamic test refers to a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent; the invention further discloses the step-by-step test, and the step-by-step test unit of the software is completed through the system test, the unit test and the integrated test; the method comprises the steps of (1) performing integrated test, wherein the integrated test mainly aims at the internal structure of a program, particularly tests an interface between the programs, and has higher requirements on the script writing capability of testers; the unit test is a module which is the minimum unit of software design, the unit test is used for designing test cases for all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel; the system test refers to taking the whole software system as a whole to test, and testing functions, performances and software and hardware environments in which software runs, wherein the main basis of the system test is a document of specification of system requirements; the invention further relates to a cloud remote testing unit connected with the Internet, wherein the cloud remote testing unit is connected with the cloud through the Internet, and the cloud is provided with a professional specially responsible for providing online testing for software; the Internet is connected with the cloud end, and the cloud end is connected through the Internet for further testing; the cloud professional carries out remote testing, and carries out remote operation through a network by the professional to test the running condition of software; recording and summarizing test results, and storing the final test result record for uploading a system test log; the invention further synchronizes the test result to the system test log, perfects the system test log and is convenient for testing the software next time; synchronously uploading the test result, and synchronously uploading the test result to a system test log; and updating the system test log, wherein the uploaded test result is used as the update data of the system test log, so that comparison is conveniently provided for the next test.
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, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (8)
1. An industrial control software test system, characterized by: including system test logs; the device is used for recording the result of each test, and comparing and analyzing the test result;
the program structure testing unit comprises a black box testing unit and a white box testing unit which are respectively used for testing results and an internal structure;
the program running unit is provided with a static test and a dynamic test, the static test is carried out when the program is not run, and the dynamic test is carried out when the program is run;
the staged test unit comprises three tests, namely a system test, a unit test and an integrated test;
a cloud remote test unit; the method is used for cloud remote testing.
2. The method for testing an industrial control software test system according to claim 1, wherein: the method comprises the following steps:
s1, creating a system test log; recording the result of each test by creating a system test log for comparing and analyzing the test results;
s2, a black and white box test unit; testing the internal and external structures of the program through two tests of a black box test unit and a white box test unit;
s3, static and dynamic testing; testing the two states of the program which is not operated and is operated by static test and dynamic test;
s4, testing according to stages; the software stage test unit is completed through system test, unit test and integrated test;
s5, connecting the Internet to perform a cloud remote testing unit; the system comprises a cloud end, a server and a server, wherein the cloud end is connected through the Internet and is provided with a professional specially responsible for providing online test for software;
s6, synchronizing the test result to a system test log; and synchronizing the test result to the system test log, perfecting the system test log and facilitating the next test on the software.
3. The industrial control software testing method of claim 2, wherein: the S2 black-and-white box test unit comprises the following specific steps:
s201, a black box testing unit; the black box test unit is also called a functional test, and detects the normal use condition of each function through testing; in the test, the program is regarded as a black box which cannot be opened, and the test is carried out at a program interface under the condition that the internal structure and the internal characteristics of the program are not considered completely; the black box testing unit mainly tests a software interface and software functions by focusing on an external structure of a program and not considering an internal logic structure;
s202, a white box testing unit; the white box test unit is also called a structure test unit or a logic drive test, knows the internal working process of a product, detects the condition that the internal action of the product normally works according to the specification through the test, tests the unit program according to the structure in the program, and verifies the condition that each channel in the program can correctly work according to the preset requirement regardless of the function of the white box test unit.
4. The industrial control software testing method of claim 3, wherein: the S3 static and dynamic test comprises the following specific steps:
s301, static testing; the method comprises code walkthrough, code review and technical review; code walking, wherein error searching activities are carried out in a development group in a mode of explanation, discussion and simulation operation; code review, which is performed inside a development group, adopts the activities of explaining, questioning and searching for errors by using a coding template and has formal plans, processes and result reports; the technical evaluation is carried out by combining a development group, a test group and related personnel, and adopts the activities of explaining, questioning and searching for errors by using a coding template, and the activities comprise formal plans, processes and result reports;
s302, dynamic testing; the method is a process of actually running a tested program, inputting corresponding test data, and checking that an output result and an expected result cannot be consistent.
5. The industrial control software testing method of claim 4, wherein: the S4 test is carried out according to stages, and the specific steps are as follows:
s401, performing integration test; the integration test mainly aims at the internal structure of the program to test, particularly tests the interface between the programs, and has higher requirements on the script writing capability of testers;
s402, unit testing; the object is the minimum unit of software design-module; the unit test is designed to test cases corresponding to all important control paths in the module, errors in the module are found, the unit test adopts a white box test unit technology, and a plurality of modules in the system can be tested in parallel;
s403, testing the system; the whole software system is regarded as a whole to be tested, and the functions, the performance and the software and hardware environment in which the software runs are tested.
6. The industrial control software testing method of claim 5, wherein: s5 connects the internet and carries out the long-range test unit in high in the clouds, its concrete step is as follows:
s501, connecting the Internet with a cloud; connecting the cloud terminal through the Internet for further testing;
s502, remotely testing by cloud professionals; a professional carries out remote operation through a network and tests the running condition of software;
s503, recording and summarizing test results; and storing the final test result record for uploading a system test log.
7. The industrial control software testing method of claim 6, wherein: the S6 test result is synchronized to a system test log, and the specific steps are as follows:
s601, synchronously uploading a test result; synchronously uploading the test result to a system test log;
s602, updating a system test log; and the uploaded test result is used as the update data of the system test log, so that comparison can be conveniently provided for the next test.
8. The industrial control software testing method of claim 6, wherein: and S502, the cloud professional performs remote test on the industrial control software and feeds back test information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910815946.6A CN110716858A (en) | 2019-08-30 | 2019-08-30 | Industrial control software testing system and software testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910815946.6A CN110716858A (en) | 2019-08-30 | 2019-08-30 | Industrial control software testing system and software testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110716858A true CN110716858A (en) | 2020-01-21 |
Family
ID=69210193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910815946.6A Withdrawn CN110716858A (en) | 2019-08-30 | 2019-08-30 | Industrial control software testing system and software testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110716858A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111767225A (en) * | 2020-06-29 | 2020-10-13 | 厦门力含信息技术服务有限公司 | Third-party software testing system and method in cloud computing environment |
-
2019
- 2019-08-30 CN CN201910815946.6A patent/CN110716858A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111767225A (en) * | 2020-06-29 | 2020-10-13 | 厦门力含信息技术服务有限公司 | Third-party software testing system and method in cloud computing environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106597947B (en) | Transformer substation equipment testing method, server, tester and system | |
CN107729243B (en) | Application programming interface automatic test method, system, equipment and storage medium | |
CN106330593B (en) | Protocol detection method and device | |
CN102141962B (en) | Safety distributed test framework system and test method thereof | |
CN109542769A (en) | A kind of automated testing method of continuous integrating | |
JP7289334B2 (en) | Methods and apparatus, electronic devices, storage media and computer programs for testing code | |
CN101847123A (en) | Construction method of airborne computer software testing general system | |
EP3379436A1 (en) | Method and apparatus for testing design of satellite wiring harness and signal processing units | |
CN111108481B (en) | Fault analysis method and related equipment | |
CN110740071B (en) | Method, device and system for monitoring network interface | |
CN104375934A (en) | Method for testing reliability of Android mobile phone software | |
CN107656872A (en) | Method for testing software, device, equipment and computer-readable storage medium | |
CN103678116A (en) | Method and system for facilitating automated program testing | |
CN111966587A (en) | Data acquisition method, device and equipment | |
CN110716858A (en) | Industrial control software testing system and software testing method | |
CN109189679A (en) | Interface test method and system, electronic equipment, storage medium | |
US11132286B1 (en) | Dynamic reordering of test case execution | |
CN111966665A (en) | Data migration test method and device | |
CN110543415A (en) | Computer software technology development and debugging system | |
CN115454826A (en) | Regression testing method, device, electronic equipment and storage medium | |
CN112699035B (en) | Multi-partition airborne application software association index testing method and device | |
CN113934626A (en) | Model process debugging method, device and storage medium | |
KR20220083252A (en) | A apparatus for verificating advanced distribution automation system | |
US11611500B2 (en) | Automated network analysis using a sensor | |
Mian et al. | A Dependability Modeling and Analysis Approach for an IoP-Based Service System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200121 |
|
WW01 | Invention patent application withdrawn after publication |