Data Drive
A flowchart path often involves filling of form fields with some data values. When we record such paths, the data we used during recording, gets hard coded in the steps. When we play this path back, the same values get input again and again in the form fields. There are 2 issues with it.- Some form fields may need to be unique. Eg. You may not be able to register again using the same email address. Hence the test won't work with the same values.
- There is limited value in running a test with the same set of inputs. We need to exercise tests with different sets of data. Eg. We may need to check for various invalid email formats to check if validations are triggered correctly.
- Data Generators - For Uniqueness and Repeatability
- Positive Validations - For boundary values and validating against specific valid data
- Negative Validations - For UI validations
- Datasets - For data setup and inter-dependent entity objects
What is an Entity in Flowcharts?
Entities are objects that interact with each other in an application. Let's say, you need to create the following flow in an online shopping application.- Login to the application
- Add a product to the shopping cart
- Apply discount coupon
- Logout
- Check if the user is logged in or not
- Check if the product details shown are correct
- Check if the coupon gets applied
- Check the cart total computed by the application is correct
- Check if the user is logged out
All such objects that would interact with each other in your flows can be called entities.
next
User Registration Example to understand Data Drive