Closed youming-lin closed 1 year ago
@youming-lin , thanks for reporting the issue, i can reproduce it with your sample, let me see if i can fix it quickly
issue fixed, pls update to the latest version 7.8.0.202308061717
@missedone Thank you for fixing this so fast! Downloaded the latest plugin version and I can confirm using static var in array works now.
Problem Statement
please read https://github.com/cbeust/testng-eclipse/blob/master/docs/Troubleshooting.md first Example code:
Using
@Parameters({ PROPERTY })
would cause error when running the test:Code compiles, but test cannot run in Eclipse using this plugin. Based on the error message it seems to be issue with Eclipse plugin instead of TestNG itself.
No error if static variable is used by itself (as opposed to wrapped inside array), or if string literal is used instead (array or not).
Similar(same?) issue reported back in 2018: https://github.com/testng-team/testng-eclipse/issues/294#issuecomment-387052780
Any relate message in "Error Log" view
The Dependency Management tool for your project
Operating System