♥ Foreword
To do automated testing, you must understand that it is DDT data-driven testing. The advantage of this is that you can perform flexible testing through one or more sets of data without hard coding.
So today we will explain how Katalon reads test data.
Data formats supported by Katalon
Excel
CSV
database data
internal data
prerequisite preparation
-
Create an Excel file and enter the test data
-
Record the executed test cases through katalon, and remove the recorded test data in the input
1. Create a testdata in Excel format in Data Files
If you want to learn automated testing, here I recommend a set of videos for you. This video can be said to be the first interface automation testing tutorial on the entire network at station B. At the same time, the number of online users has reached 1,000, and there are notes to collect and various Lu Dashen Technical Exchange: 798478386
Key knowledge:
After adding the Excel file, there are three setting items:
Use first row as header: Checking it will automatically remove the title of Excel for you (checked by default)
Use relative path: If you put Excel in the folder corresponding to the katalon project, you can use a relative path, that is, after checking it, you only need to enter the file name, and you don’t need an absolute path (not checked by default)
Bind to test case as string: Bind to the test case as a string (checked by default)
Finally: Be sure to remember to save this datafiles file after adding Excel
2. Create a variable in the test case to receive the data in Excel, the default value can not be filled in
Key knowledge:
Be sure to save the test case
3. Create a TestSuite and configure a test case
4. Bind the variables in the test case to Excel data
Key knowledge:
Be sure to save the Testsuite
5. Run the test case to see that multiple test cases will be executed according to the amount of data in Excel
So far, katalon has implemented DDT data-driven testing~~~