You can test multiple data patterns in one scenario by using the function called [Data].
Procedure
Prepare a csv that describes the data pattern you want to execute.
"first name","last name","email","company name","size of company","error message"
"makiko","makiko","makiko@autify.com","Autify"," 1-10","This email address has too many recent signup requests"
"makiko","satoh","","test"," 5,000+","Please input your email address"
"satoh","satoh","makiko+nocompanyname@autify.com",""," 201-500","Please input your company name"
The value in the first line will be available as the variable name at each step of the [Scenario]. The character code of the file must be UTF-8.
One line is treated as one data pattern, and in the case of the above sample, three data patterns are given.
It cannot be combined with the value set on another line.
For the above CSV, for example, a combination such as sato,makiko,makiko+nocompanyname@autify.com, ........
is not executed.
If you want to execute with this pattern, please add the pattern as a new line.
Click ︙ on the right side of the Save button on the [Scenario Details Page], and click Add [Data].
Upload the csv.
If the upload is successful, the imported values will be displayed as shown below.
Modify so that the CSV value is referenced in the step where you want to use the data pattern.
If you click the thumbnail of the step you want to use the value given in CSV and open the step details and change from specify value to [Data], the value described in the first line of CSV will be displayed in the pull-down. By specifying the name of the column you want to use, you will be able to use the CSV value described in that column.
- Input step
- Validation steps for text
- Step specifying the URL
Values can be used in fields such as the above.
Click [Save].
Click the [Save] button on the upper right of the screen to save the edited contents. If you forget to save it, you will have to restart from CSV upload!
Now you can test multiple data patterns together in one [scenario].
In scenarios where data was uploaded, all configured patterns will be tested. In the sample CSV presented above, three patterns of data are registered, so the test is executed three times .
Tips
It is not necessary to use all set columns, so it is possible to prepare and use the columns for explanation as follows.