You can test multi-lang data patterns using the following procedure.
Table of contents
Create data patterns
Move to the Settings > Multi-lang data patterns screen, and download a data pattern template by clicking Export CSV. (figure 1)
Figure 1, Multi-lang data patterns screen.
After describing the data pattern in CSV format in the template, as shown in figure 2, import it by clicking Import CSV.
Figure 2. Data pattern CSV file.
- When editing the CSV, in the case of Mac, you can either use TextEdit, or edit the spreadsheet using an application such as Numbers, LibreOffice, or Excel.
- When you want to edit the imported data, you can export and then import again.
Utilize data patterns
After creating a data pattern, the Multi-lang Data Pattern item will be displayed on the test run settings panel, allowing the user to select the language pattern to be used in the test. (figure 3)
Figure 3. Select the language pattern.
The language pattern value can be referenced using ${...} in the test script. (figure 4)
Figure 4. Reference language patterns.