TestNG - does not execute tests inside a jar

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

TestNG - does not execute tests inside a jar

Vinoth Selvaraj
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:

https://github.com/vinsguru/arquillian-testng-package


Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNG - does not execute tests inside a jar

Krishnan Mahadevan
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.

TestNG is not finding anything and that perhaps is why it doesn't execute anything.

I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.

You might want to rebuild your uber jar by reading this SO thread : https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven

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 Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <[hidden email]> wrote:
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:



Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNG - does not execute tests inside a jar

Vinoth Selvaraj
Krishnan,

I appreciate your response.

All the test classes are already present inside the jar. I am able to see them. If there is no class, It would have clearly thrown the exception.

Maven assembly plugin provides a way to include the tests which I follow. Please try it yourself from the reproducible project.

Thanks,
Vinoth S.


On Friday, December 15, 2017 at 10:36:25 AM UTC-6, Krishnan Mahadevan wrote:
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.

TestNG is not finding anything and that perhaps is why it doesn't execute anything.

I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.

You might want to rebuild your uber jar by reading this SO thread : <a href="https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F7000812%2Fhow-can-i-make-the-test-jar-include-dependencies-in-maven\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHek5ByUk0cFlBYiWS9JvPQQFSXxQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F7000812%2Fhow-can-i-make-the-test-jar-include-dependencies-in-maven\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHek5ByUk0cFlBYiWS9JvPQQFSXxQ&#39;;return true;">https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="N2UmU3fkAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vino...@...> wrote:
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:

<a href="https://github.com/vinsguru/arquillian-testng-package" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fvinsguru%2Farquillian-testng-package\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGNiFCVz1pXG0EKRjO9r8CsrLKLWw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fvinsguru%2Farquillian-testng-package\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGNiFCVz1pXG0EKRjO9r8CsrLKLWw&#39;;return true;">https://github.com/vinsguru/arquillian-testng-package


Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="N2UmU3fkAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="N2UmU3fkAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@....
Visit this group at <a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNG - does not execute tests inside a jar

SUBRAMANYESWARA RAO BHAVIRISETTY
Hi Vinoth,

I am able to run the tests after few modifications to pom.

java -cp target/arquillian-testng.jar:target/arquillian-testng-tests.jar:target/lib/* org.testng.TestNG -testclass com.test.SearchTest -verbose 10

I added the following to pom.xml and this made sure like tests.jar is separate and all the dependencies are in target/lib folder. Once I do this, it seems to work fine. TestNG requires all the external dependencies and jars with test cases to be separate

<plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>3.0.2</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>test-jar</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <!-- Puts all dependencies in the target/classes/lib folder -->
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-dependency-plugin</artifactId>
                            <version>3.0.2</version>
                            <executions>
                                <execution>
                                    <id>copy-dependencies</id>
                                    <phase>prepare-package</phase>
                                    <goals>
                                        <goal>copy-dependencies</goal>
                                    </goals>
                                    <configuration>
                                        <outputDirectory>${project.build.directory}/lib</outputDirectory>
                                        <overWriteReleases>false</overWriteReleases>
                                        <overWriteSnapshots>false</overWriteSnapshots>
                                        <overWriteIfNewer>true</overWriteIfNewer>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>

Hope this helps.

Subramanyam

On Fri, Dec 15, 2017 at 8:44 AM, Vinoth Selvaraj <[hidden email]> wrote:
Krishnan,

I appreciate your response.

All the test classes are already present inside the jar. I am able to see them. If there is no class, It would have clearly thrown the exception.

Maven assembly plugin provides a way to include the tests which I follow. Please try it yourself from the reproducible project.

Thanks,
Vinoth S.


On Friday, December 15, 2017 at 10:36:25 AM UTC-6, Krishnan Mahadevan wrote:
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.

TestNG is not finding anything and that perhaps is why it doesn't execute anything.

I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.

You might want to rebuild your uber jar by reading this SO thread : https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven

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 Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <[hidden email]> wrote:
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:



Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNG - does not execute tests inside a jar

Vinoth Selvaraj
Thanks a lot Subramanyam for looking into this. I really appreciate your help on this.

I am kinda curious why TestNG behaves like this that passing all the tests without even executing them . I am sure you would have noticed that. 




On Sunday, December 17, 2017 at 7:33:19 PM UTC-6, SUBRAMANYESWARA RAO BHAVIRISETTY wrote:
Hi Vinoth,

I am able to run the tests after few modifications to pom.

java -cp target/arquillian-testng.jar:target/arquillian-testng-tests.jar:target/lib/* org.testng.TestNG -testclass com.test.SearchTest -verbose 10

I added the following to pom.xml and this made sure like tests.jar is separate and all the dependencies are in target/lib folder. Once I do this, it seems to work fine. TestNG requires all the external dependencies and jars with test cases to be separate

<plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>3.0.2</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>test-jar</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <!-- Puts all dependencies in the target/classes/lib folder -->
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-dependency-plugin</artifactId>
                            <version>3.0.2</version>
                            <executions>
                                <execution>
                                    <id>copy-dependencies</id>
                                    <phase>prepare-package</phase>
                                    <goals>
                                        <goal>copy-dependencies</goal>
                                    </goals>
                                    <configuration>
                                        <outputDirectory>${project.build.directory}/lib</outputDirectory>
                                        <overWriteReleases>false</overWriteReleases>
                                        <overWriteSnapshots>false</overWriteSnapshots>
                                        <overWriteIfNewer>true</overWriteIfNewer>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>

Hope this helps.

Subramanyam

On Fri, Dec 15, 2017 at 8:44 AM, Vinoth Selvaraj <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="isql-uyeAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vino...@...> wrote:
Krishnan,

I appreciate your response.

All the test classes are already present inside the jar. I am able to see them. If there is no class, It would have clearly thrown the exception.

Maven assembly plugin provides a way to include the tests which I follow. Please try it yourself from the reproducible project.

Thanks,
Vinoth S.


On Friday, December 15, 2017 at 10:36:25 AM UTC-6, Krishnan Mahadevan wrote:
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.

TestNG is not finding anything and that perhaps is why it doesn't execute anything.

I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.

You might want to rebuild your uber jar by reading this SO thread : <a href="https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F7000812%2Fhow-can-i-make-the-test-jar-include-dependencies-in-maven\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHek5ByUk0cFlBYiWS9JvPQQFSXxQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F7000812%2Fhow-can-i-make-the-test-jar-include-dependencies-in-maven\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHek5ByUk0cFlBYiWS9JvPQQFSXxQ&#39;;return true;">https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <[hidden email]> wrote:
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:

<a href="https://github.com/vinsguru/arquillian-testng-package" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fvinsguru%2Farquillian-testng-package\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGNiFCVz1pXG0EKRjO9r8CsrLKLWw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fvinsguru%2Farquillian-testng-package\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGNiFCVz1pXG0EKRjO9r8CsrLKLWw&#39;;return true;">https://github.com/vinsguru/arquillian-testng-package


Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite <a href="http://org.jboss.arquillian.testng.Ar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jboss.arquillian.testng.Ar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRydS8n-O5Xgdy9ILWYmyrzVdScA&#39;;return true;">org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 post to this group, send email to [hidden email].
Visit this group at <a href="https://groups.google.com/group/testng-users" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="isql-uyeAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="isql-uyeAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@....
Visit this group at <a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Subramanyam

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNG - does not execute tests inside a jar

Krishnan Mahadevan
I think not finding any tests, is equal to no tests being executed. And that is what TestNG is doing it here.

You should be able to simulate the same behavior by specifying some test class name pattern via your surefire plugin (for which there are no matching test classes in your project) and simulate this behavior easily.

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 Scribbings @ http://rationaleemotions.wordpress.com/

On Wed, Dec 20, 2017 at 10:43 AM, Vinoth Selvaraj <[hidden email]> wrote:
Thanks a lot Subramanyam for looking into this. I really appreciate your help on this.

I am kinda curious why TestNG behaves like this that passing all the tests without even executing them . I am sure you would have noticed that. 




On Sunday, December 17, 2017 at 7:33:19 PM UTC-6, SUBRAMANYESWARA RAO BHAVIRISETTY wrote:
Hi Vinoth,

I am able to run the tests after few modifications to pom.

java -cp target/arquillian-testng.jar:target/arquillian-testng-tests.jar:target/lib/* org.testng.TestNG -testclass com.test.SearchTest -verbose 10

I added the following to pom.xml and this made sure like tests.jar is separate and all the dependencies are in target/lib folder. Once I do this, it seems to work fine. TestNG requires all the external dependencies and jars with test cases to be separate

<plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>3.0.2</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>test-jar</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <!-- Puts all dependencies in the target/classes/lib folder -->
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-dependency-plugin</artifactId>
                            <version>3.0.2</version>
                            <executions>
                                <execution>
                                    <id>copy-dependencies</id>
                                    <phase>prepare-package</phase>
                                    <goals>
                                        <goal>copy-dependencies</goal>
                                    </goals>
                                    <configuration>
                                        <outputDirectory>${project.build.directory}/lib</outputDirectory>
                                        <overWriteReleases>false</overWriteReleases>
                                        <overWriteSnapshots>false</overWriteSnapshots>
                                        <overWriteIfNewer>true</overWriteIfNewer>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>

Hope this helps.

Subramanyam

On Fri, Dec 15, 2017 at 8:44 AM, Vinoth Selvaraj <[hidden email]> wrote:
Krishnan,

I appreciate your response.

All the test classes are already present inside the jar. I am able to see them. If there is no class, It would have clearly thrown the exception.

Maven assembly plugin provides a way to include the tests which I follow. Please try it yourself from the reproducible project.

Thanks,
Vinoth S.


On Friday, December 15, 2017 at 10:36:25 AM UTC-6, Krishnan Mahadevan wrote:
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.

TestNG is not finding anything and that perhaps is why it doesn't execute anything.

I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.

You might want to rebuild your uber jar by reading this SO thread : https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven

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 Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <[hidden email]> wrote:
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:



Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 [hidden email]om.
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNG - does not execute tests inside a jar

SUBRAMANYESWARA RAO BHAVIRISETTY
Agree with Krishnan. That could be the case here. Expectation is we have to give the jars containing test classes separately and all dependencies like testng.jar etc separately.

Subramanyam

On Wed, Dec 20, 2017 at 2:08 AM, ⇜Krishnan Mahadevan⇝ <[hidden email]> wrote:
I think not finding any tests, is equal to no tests being executed. And that is what TestNG is doing it here.

You should be able to simulate the same behavior by specifying some test class name pattern via your surefire plugin (for which there are no matching test classes in your project) and simulate this behavior easily.

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 Scribbings @ http://rationaleemotions.wordpress.com/

On Wed, Dec 20, 2017 at 10:43 AM, Vinoth Selvaraj <[hidden email]> wrote:
Thanks a lot Subramanyam for looking into this. I really appreciate your help on this.

I am kinda curious why TestNG behaves like this that passing all the tests without even executing them . I am sure you would have noticed that. 




On Sunday, December 17, 2017 at 7:33:19 PM UTC-6, SUBRAMANYESWARA RAO BHAVIRISETTY wrote:
Hi Vinoth,

I am able to run the tests after few modifications to pom.

java -cp target/arquillian-testng.jar:target/arquillian-testng-tests.jar:target/lib/* org.testng.TestNG -testclass com.test.SearchTest -verbose 10

I added the following to pom.xml and this made sure like tests.jar is separate and all the dependencies are in target/lib folder. Once I do this, it seems to work fine. TestNG requires all the external dependencies and jars with test cases to be separate

<plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>3.0.2</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>test-jar</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <!-- Puts all dependencies in the target/classes/lib folder -->
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-dependency-plugin</artifactId>
                            <version>3.0.2</version>
                            <executions>
                                <execution>
                                    <id>copy-dependencies</id>
                                    <phase>prepare-package</phase>
                                    <goals>
                                        <goal>copy-dependencies</goal>
                                    </goals>
                                    <configuration>
                                        <outputDirectory>${project.build.directory}/lib</outputDirectory>
                                        <overWriteReleases>false</overWriteReleases>
                                        <overWriteSnapshots>false</overWriteSnapshots>
                                        <overWriteIfNewer>true</overWriteIfNewer>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>

Hope this helps.

Subramanyam

On Fri, Dec 15, 2017 at 8:44 AM, Vinoth Selvaraj <[hidden email]> wrote:
Krishnan,

I appreciate your response.

All the test classes are already present inside the jar. I am able to see them. If there is no class, It would have clearly thrown the exception.

Maven assembly plugin provides a way to include the tests which I follow. Please try it yourself from the reproducible project.

Thanks,
Vinoth S.


On Friday, December 15, 2017 at 10:36:25 AM UTC-6, Krishnan Mahadevan wrote:
My first guess is that your uber jar [ jar with dependencies ] doesn't contain your test classes at all.

TestNG is not finding anything and that perhaps is why it doesn't execute anything.

I believe that if you use Maven assembly plugin, it doesnt package the tests in the jar.

You might want to rebuild your uber jar by reading this SO thread : https://stackoverflow.com/questions/7000812/how-can-i-make-the-test-jar-include-dependencies-in-maven

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 Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Dec 15, 2017 at 8:48 PM, Vinoth Selvaraj <[hidden email]> wrote:
Hi,

I have been using TestNG + Arquillian for a while. Both are great frameworks. 

Good News:

I am able to successfully run my test through my IDE or maven command line without any issues.

Sample Project:



Bad News:

I would like to package all the page objects, tests and dependencies in a single jar which i was able to do using maven. I was also able to see my page objects and tests inside the jar.

Whenever I run this below command , testng does not execute anything and passes all the tests within few milliseconds. (usually the test will take 1 min to complete - also I have few debug statements to print - they are also not displayed)

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest 

I was curious - enabled the verbose level.

java -cp arquillian-testng.jar org.testng.TestNG -testclass com.test.SearchTest -verbose 10


I could not figure out what could be causing this? Why does TestNG behave like this - without even throwing any exception?


OUTPUT:

[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite() finished in 93 ms
[TestNG] RUNNING: Suite: "Command line test" containing "1" Tests (config: null)
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass() finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 3 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 5 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 4 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 2 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 2 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation guru") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "selenium webdriver") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "dockerized selenium grid") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 1 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "test automation blog") finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker")
[TestNG] PASSED: "Command line test" - com.test.SearchTest.googleTest(java.lang.String)(value(s): "jmeter docker") finished in 1 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String))
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(java.lang.reflect.Method)(value(s): public void com.test.SearchTest.googleTest(java.lang.String)) finished in 0 ms
[TestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass()
[TestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass org.jboss.arquillian.testng.Arquillian.arquillianAfterClass() finished in 1 ms
===== Invoked methods
  Arquillian.arquillianBeforeSuite()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation guru  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]selenium webdriver  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]dockerized selenium grid  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]test automation blog  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianBeforeTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
    SearchTest.googleTest(java.lang.String)[pri:0, instance:com.test.SearchTest@c39f790]jmeter docker  205125520
  Arquillian.arquillianAfterTest(java.lang.reflect.Method)[pri:0, instance:com.test.SearchTest@c39f790]public void com.test.SearchTest.googleTest(java.lang.String)  205125520
  Arquillian.arquillianAfterClass()[pri:0, instance:com.test.SearchTest@c39f790] 205125520
=====
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")
PASSED: googleTest("test automation guru")
PASSED: googleTest("selenium webdriver")
PASSED: googleTest("dockerized selenium grid")
PASSED: googleTest("test automation blog")
PASSED: googleTest("jmeter docker")

===============================================
    Command line test
    Tests run: 10, Failures: 0, Skips: 0
===============================================

[TestNG] 
[TestNG] ===============================================
[TestNG]     Command line test
[TestNG]     Tests run: 10, Failures: 0, Skips: 0
[TestNG] ===============================================
[TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite()
[TestNG] PASSED CONFIGURATION: "UNKNOWN" - @AfterSuite org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite() finished in 2 ms

===============================================
Command line suite
Total tests run: 10, Failures: 0, Skips: 0
===============================================

--
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 [hidden email]om.
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email]om.
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.