Timeline for using @parameter annotation in testng test case throwing exception
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 16, 2016 at 20:16 | comment | added | CodeBreaker | There must be a config error or typo somewhere if it isn't picking it up. Make sure your maven config is registering the xml file or it is being passed correctly via command line | |
Mar 16, 2016 at 6:27 | comment | added | QAMember | Yes I have defined the parameter attribute with its value in TestNG.xml file | |
Mar 16, 2016 at 5:27 | history | edited | CodeBreaker | CC BY-SA 3.0 |
added 130 characters in body
|
Mar 16, 2016 at 5:25 | comment | added | CodeBreaker | @QAMember per TestNG docs "If no parameter is found in your testng.xml file, your test method will receive the default value specified inside the @ Optional annotation." You need to define a folder name parameter in your TestNG Xml file | |
Mar 16, 2016 at 5:21 | comment | added | QAMember | Hello @CodeBreaker, I have tried your solution, Now it is not throwing any exception but it always taking the "Insert folder name here or leave empty" value instead of folderName | |
Mar 16, 2016 at 4:23 | history | answered | CodeBreaker | CC BY-SA 3.0 |