문제

Currently I have to know the no. of parameters I'm passing to the test function. Is there a way to pass parameters to the test function from the Data Provider as an array of indefinite number of elements? I'm reading rows of data from an excel sheet, and the idea is to execute each row as a separate test. I'm using testNG to run these tests.

도움이 되었습니까?

해결책

Why not simply pass this parameter as an array? (which is in effect what the JVM does when you declare a varargs parameter)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top