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

こ雲淡風輕ζ 提交于 2019-12-20 03:41:51

问题


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


回答1:


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




回答2:


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)
}


来源:https://stackoverflow.com/questions/49607085/katalon-studio-cant-load-my-variables-at-variable-binding-section

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!