A
A
Antonio2020-07-28 08:35:17
Java
Antonio, 2020-07-28 08:35:17

How to get Testng parameter from console in Java?

Hello!
Tell me, how in Java, when running Testng tests through the console, get the value of the "testnames" parameter?
Tried "System.getProperty("testnames")", but it returns null.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
5
5am, 2020-07-28
​​@5am

-Dtestnames=ContinuousDelivery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question