org.testng.TestNGException: Cannot inject @Test annotated Method [f] with [interface java.util.Map]. For more information on native dependency injection please refer to https://testng.org/doc/documentation-main.html#native-dependency-injection

17 views
Skip to first unread message

Vaishnavi Dontha

unread,
Oct 10, 2022, 10:30:00 PM10/10/22
to testng-users
Hello,

I am having a problem to pass Object[] as parameter in @BeforeMethod and use the same in @Test method. 

Throws error as DependencyInjection Error


⇜Krishnan Mahadevan⇝

unread,
Oct 10, 2022, 10:31:31 PM10/10/22
to testng...@googlegroups.com
Short answer: You cant do it. 

Can you please elaborate what are you trying to do along with some code snippets?

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/42d47d22-b4e2-4857-92c4-5cd026c23134n%40googlegroups.com.
--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/
Reply all
Reply to author
Forward
0 new messages