Precise testing and automated testing of seamless

 Modern professional software testing center, with the iteration of the project, each system typically built for a large number of automated test suite, and start a full amount of automated tests to CI trigger level, so that the ratio by large, very difficult. Test engineers often need to invest a very high cost, put a lot of effort spent on automation use cases above failure investigation, however, found that the probability is very low effective BUG. In the case of repeated fruitless investigation, mind all tired, almost desperate heart generate automated, regarded as tasteless, with the useless, wasteful to discard, to make the test center is extremely headache.
 
 How to make automation use cases exert their desired effects, so that QA work is not so heavy it? Nebula tested for this problem, were accurate testing and automated testing of seamless technology research and development program. After a large number of enterprises and verification, accurate test data stream ultimately "no sense" to receive automated testing, greatly extend the benefits of automated testing, automated testing change radically improved the difficulty of management short board.
 
 The introduction of this technology program, just to the automated test equipment "accurate test," the eyes and wings, leap instantly with a variety of functions. For example:
 1) automated test cases automatically associated with the source
 2) simultaneously with return intelligent selection Example
 3) reduce the effective range of automated test execution
 4) real-time analysis is required to maintain set of test
 5) automatic tracking is performed for each test case code path
 6) may be performed after the end of the auxiliary automation positioned directly automation point error codes example
 7) automated test set for analysis, cluster analysis, for example, and a minimum set of analysis with example
 8) gives the optimization of the test set guidance
 9) gives the test suite run overall information coverage
 10) assist in the effective set of use cases make additions
 incremental code coverage analysis, etc. 11).
 
 This article focuses on precision test product with Nebula and unit testing framework JUnit example.
 
 Generally test unit testing by writing test cases: a core class method, exception handling, business logic. After seamlessly with Junit unit testing and precise tests, which can ensure that the real test of adequacy. Because the test cell run time, the system will automatically generate test precise test, and each unit test code coverage detailed records to accurately test system, since accurate testing and test codes each carrying traceability coverage and visualization features, you can present written unit tests the adequacy glance.
 
The figure is accurate test and the test unit Junit seamlessly implemented architecture diagram of automated testing.
Tests for the automated test equipment accurate "wings
  The program main features are: full use of the characteristics of inheritance JUnit framework, accurate testing all the necessary communications and control logic can be achieved by all of the base class. In other words, all automated test suite for the original, only need to add a package of inheritance for ParentTest. Namely: you do not need to make any changes to the original test case implementation code, can be achieved with the nebula precise docking test platform. After pairing is complete, the process of running JUnit tests, the test will automatically be created in the nebula precision test system, and automatic recording of each automated test code coverage information.
 
  The following is a description of the main methods ParentTest extend the base class, the solution is mainly extended for the annotation approach Junit framework itself:
@Before: initialization method once, executed before each test method for each test method to be executed, @ after: the release of resources, performed after each test method, @ BeforeClass: executed before all the test methods of the current class, @ AfterClass: after the execution of all testing methods in the current class. A test unit in the execution order JUnit4:
 
 @BeforeClass -> @Before -> @Test -> @After -> @AfterClass;
 
 Thus this feature can be different for the annotation tag customization, customizing a common class, while other tests are inherited from the unit class, also operating in the same manner. By adding annotations to log in different versions, and begin to create test cases, test cases, and out the end of the command version and send it to TTFront components interact with TT, it does not affect the test procedures and test results of unit testing itself.
 
 TTfront after receiving the command, log records the user name and the corresponding version, created after the completion of the test case test case run time by collecting real-time software oscilloscope when the test case coverage data corresponding to the portion of the data matching the user name test Example. In the TT test cases, and the client can see the test unit corresponding to the function code is coverage and coverage.
 
 Only you need to inherit from already good package ParentTest class when the class is created unit tests can be automated and seamless TT docking test.
 Junit unit test cases to TT and effects interfacing embodiment of FIG:
 1, when the class inherits from ParentTest create test cases
Tests for the automated test equipment accurate "wings
 2, items ParentTest modified version, the user password and TT server the IP
Tests for the automated test equipment accurate "wings
 . 3, corresponding to the introduced modifying packets (in mvn project, for example), JavaPaser package contains a reference to the main instrumentation code and the processing logic TT ParentTest class must be required libraries.
Tests for the automated test equipment accurate "wings
Code to be tested by packing insertion TT, note Junit automated test instrumentation code does not only need to instrumentation business logic code Junit test.
 4, unit testing starts, during the execution of a test case, the client opens TT assembly oscilloscope, the waveform display real-time acquisition of coverage, seen in the TT test system is automatically established. TT renderings client (corresponding to test generation and coverage of the test)

Tests for the automated test equipment accurate "wings
 Above tells the story of how accurate the test system seamlessly with existing automation testing framework. In addition to Junit, other automated testing framework, can be achieved with reference to this idea (Login nebula website www.teststars.cc offline businesses Test Center to a free trial). After precise and automated test system for docking, you can automate test execution state of the black box could not see in, it becomes a pattern. Accurate test powerful test and analysis system that can be sustained optimization of automated test execution and planning processes, this program can be an effective solution to automate testing of high input-output ratio of the industry's problems.

Guess you like

Origin www.cnblogs.com/davidtest/p/11535483.html