Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
1.8k views
by
retagged by
( im using ubuntu 14.04  64-bit. java jdk 1.8 , java-selenium-2.53.0)

program run successful when using main(String[] args) method ...

but,  getting exception  when using testng ...

exception like:

Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -protocol

at com.beust.jcommander.JCommander.parseValues(JCommander.java:742)

at com.beust.jcommander.JCommander.parse(JCommander.java:282)

at com.beust.jcommander.JCommander.parse(JCommander.java:265)

at com.beust.jcommander.JCommander.<init>(JCommander.java:210)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:162)

----------------------------------- Please helpe me -----------------
by The go-to Tester (181 points)
Can you paste your code? I want to see where have you used @Paramter annotation.

1 Answer

0 like 0 dislike
by
Hi,

Thanq for your response.

i've been resolved that issue.

 

Regards

Glk003
by The go-to Tester (181 points)
Can you kindly post your solution by replying to this comment so that others can benefit out of it?


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...