Some specific practices for software test automation

zhaozj2021-02-08  324

Some specific practices for software test automation

(This article is reproduced from Software Engineering Expert Network

Www.21cmm.com)

Because the software test has a large workload (40% to 60% of the total development time), it is very suitable for automation. Therefore, the testing improvement will have very significant results of the quality, cost and cycle of the entire development. Effect. First, talk about the design problem of test cases with graphical interfaces in the case of testing automation. Because the output display of the graphical interface is not easy to do to test the test results automation, the general practice is to establish a test case with the portion output from the graphical interface to manually run. All non-graphics outputs can be automated. Some examples of test automation are mentioned below: 1. Test case (TEST CASE, or test case) generating a programming language or more convenient script language (Script language, such as Perl, etc.) to write short programs to generate a large number of programs Test input (including input data and operational instructions). Or also generate standard output at a certain logic law. The input and output file name is paired in accordance with the specified, so that the procedure for automated testing and results is easy to operate. Here is a naming problem for test cases. If you make a unified planning in the project's documentation, the demand and function of software products should be a naming basis for the middle product of the subsequent development process. In this way, it will bring great convenience to document management and configuration management, making the development process of the entire product more organized and more logical. Any novice will also be easier to enter the development of the development work. 2. Perform a write control unit test or integration test of the test may run multiple stand-alone. But for system testing or regression testing, it is possible to run multiple sets of machines to run simultaneously on the network. Remember such a principle, at any time during the development process, if you need to wait for the results of the test, it is a chance to shorten the development time. For a single test run, the chance to dig the potential in the test and the comparison and display of starting operations and results. Sometimes, you need to repeatedly modify the program, re-assemble and retest. In this way, each looped manual setting is very considerable to the time spent on the instruction. If you can help with Make or similar software tools, you can save a lot of time. For system testing or regression testing such a situation involving a large number of test cases, the opportunity to dig the dive is except for the use of software tools to achieve automation, how to make full use of all hardware resources. Often, even in the daytime work time, the load of each computer is not fully utilized. It is possible to save a large number of test cases to each machine and save a lot of time. In addition, the large number of system tests and regression tests are arranged to run at night and weekend, which can improve efficiency. If you don't buy a commercial tool, you should comply with regular software development requirements to develop a good software test automation tool. In practice, many automation tools developed by the company are constructed using some ready-made software tools to add their own procedures. These tools that have been developed are all tailored for the company, so it is very good. At the same time, improvements can be improved as needed without being subject to people. Of course, this requires a certain amount of human investment. When designing software automatic test tools, path control is a very important feature. The ideal use is: This tool can be run on any path location, can go to any path location to get the test case, and can also put the results of the test to any path position. Such a design allows you to operate different tests without interference with each other, or you can flexibly use the space of your hard drive, and make the backup save work is easy to control. At the same time, software automatic test tools must be able to easily select all or part of the test case library to run, and must also be able to freely select the test-tested product or intermediate product as a test object.

转载请注明原文地址:https://www.9cbs.com/read-561.html

New Post(0)