Data-driven testing concept?

What is a test data generation? How do we produce it?

In our test scenario we often need to test more fully, and create test data.

Test data including input and output, the output of the automatic verification.

 

Test data creation method:

1. Manual.

2. The amount of data to copy from the production test environment.

3. Automatic test data generation tool.

 

Why do we need data-driven testing?

Test data driving method for use in a software testing, test input directly describe the set output condition table verifiable, and the test environment as well as process control coding.

 

The benefits of data-driven testing include:

1. Even if the application development is still in progress, the test can still carry out the preparation of the script.

2. To reduce redundant and unnecessary test scripts.

3. Generate test scripts with less code.

4. All information, such as input, output and expected results are stored in a suitable recording format text.

5. Maintenance of the application offers the flexibility Li conditions. 

6. If the function has changed, only need to adjust a specific function in the script is sufficient.

 

Some tips for data-driven testing:

1. The test should create your own scene data.

2. Data Helper free to use and scene setup.

3. Do not use your own data access layer data access layer to test the system.

4. The data driver includes a verification test each module to the database validation process.

 

In fact, it can be data-driven understanding:

Fixed or constant flow test, different input parameters or values, output results of different tests, for verification.

 

Guess you like

Origin www.cnblogs.com/testertechnology/p/10981228.html