| Software testing is an important part of software quality assurance, and it can bethe standard of software reliability. Nuclear power software has its own particularity asan computer application works in the field of nuclear, such as it has a large amount ofdata. Due to the particularity of nuclear power, nuclear power software must be withhigh reliability, which depends on software testing.Software testing is a very tedious work, and needs to repeat the work. If all thework done by artificial, it will not only take up a lot of time and labor, but also manyerrors may occur. Therefore, it is very important to use the technology of automatictesting. Most of automated testing tools cannot test by itself, and they need the help ofus, especially the part of design of test cases. Test cases are the most important part ofsoftware testing. It will save a lot of resources if we can automatically generate testcases.In this paper, taking testing to the software of FSC as the project background, andpresents a new method which based on the local continuity principle in the process ofunit testing to solve the problem how to generate test cases automatically. The systemreads the source code of the software at first, and it will analyze the base paths of thesoftware, get the value of the step length and divided into test space combined with therange of variables. Then the value of step length and test space would pass to the nextmodule as its’ input. And finally, the system will output all the test cases generated inall test space.In order to validate the performance of the system, we compared the number oftest cases generated by both systems with the method present in this paper and therandom method. And we also compared the differences in the number of the targetvalue of the system in different complexity to generate test cases. The experimentalresults show that the system works well while the range of parameter variables is small,and it is suitable for the testing of the nuclear power software, but may not beapplicable to others. |