Reputation: 49
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
2.Variables in test case
Upvotes: 2
Views: 4044
Reputation: 36
This can be the case that your variables are not setup properly in Variables section of your Test Case.
Upvotes: 2
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