Lacie Yu
Lacie Yu

Reputation: 49

katalon studio can't load my variables at variable binding section

I wrote a test case and save all text field as variables then I filled in the values in excel, but after I add my Test case and test data to test suite,the variable section can't load my variables. How does this comes out ?

1.Test suite screenshot enter image description here

2.Variables in test case enter image description here

Upvotes: 2

Views: 4044

Answers (2)

Leonhart
Leonhart

Reputation: 36

This can be the case that your variables are not setup properly in Variables section of your Test Case.

Add Variables to Test Cases

Upvotes: 2

plaidshirt
plaidshirt

Reputation: 5681

After you created your data file you have to use getter to use up values in a test case. A short example:

TestData accounts = findTestData('Data Files/Your data file');
int rows = accounts.getRowNumbers()
for (i in 1..rows) {
    println accounts.getObjectValue('username', i)
}

Upvotes: 0

Related Questions