Skip to content

Instantly share code, notes, and snippets.

@saikrishna321
Created January 18, 2016 10:26
Show Gist options
  • Save saikrishna321/79d220e0724f6a334276 to your computer and use it in GitHub Desktop.
Save saikrishna321/79d220e0724f6a334276 to your computer and use it in GitHub Desktop.
...
... TestNG 6.9.10 by Cédric Beust (cedric@beust.com)
...
[TestRunner] Running the tests in 'Test' with parallel mode:methods
[RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@47fd17e3 priority: 10
[TestClass] Creating TestClass for [ClassImpl class=com.test.classes.TestNGMethodSelector]
[TestClass] Adding method TestNGMethodSelector.methodThree()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[TestClass] Adding method TestNGMethodSelector.methodFive()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[TestClass] Adding method TestNGMethodSelector.methodSeven()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[TestClass] Adding method TestNGMethodSelector.methodTwo()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[TestClass] Adding method TestNGMethodSelector.methodFour()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[TestClass] Adding method TestNGMethodSelector.methodOne()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[TestClass] Adding method TestNGMethodSelector.methodSix()[pri:0, instance:null] on TestClass class com.test.classes.TestNGMethodSelector
[XmlMethodSelector] Including method com.test.classes.finalEnd()
[XmlMethodSelector] Including method com.test.classes.beforeClass()
[XmlMethodSelector] Including method com.test.classes.afterClass()
[XmlMethodSelector] Including method com.test.classes.beforeMethod()
[XmlMethodSelector] Including method com.test.classes.afterMethod()
[TestClass] Creating TestClass for [ClassImpl class=com.test.classes.DemoClassWithManyMethodsTest]
[TestClass] Adding method DemoClassWithManyMethodsTest.methodTwo_2()[pri:0, instance:null] on TestClass class com.test.classes.DemoClassWithManyMethodsTest
[TestClass] Adding method DemoClassWithManyMethodsTest.methodOne_1()[pri:0, instance:null] on TestClass class com.test.classes.DemoClassWithManyMethodsTest
[XmlMethodSelector] Including method com.test.classes.methodThree()
[XmlMethodSelector] Including method com.test.classes.methodFive()
[XmlMethodSelector] Excluding method com.test.classes.methodSeven()
[XmlMethodSelector] Including method com.test.classes.methodTwo()
[XmlMethodSelector] Including method com.test.classes.methodFour()
[XmlMethodSelector] Including method com.test.classes.methodOne()
[XmlMethodSelector] Including method com.test.classes.methodSix()
[XmlMethodSelector] Including method com.test.classes.methodTwo_2()
[XmlMethodSelector] Including method com.test.classes.methodOne_1()
[TestNG] Running:
/Users/saikrisv/Documents/workspace/workspace1/TestNGParallelThreadBeforeClass/testng.xml
[SuiteRunner] Created 1 TestRunners
[TestRunner] Running test Test on 2 classes, included groups:[] excluded groups:[]
===== Test class
com.test.classes.TestNGMethodSelector
@BeforeClass BaseTest.beforeClass()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@BeforeMethod BaseTest.beforeMethod()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodThree()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodFive()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodSeven()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodTwo()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodFour()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodOne()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@Test TestNGMethodSelector.methodSix()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@AfterMethod BaseTest.afterMethod()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
@AfterClass BaseTest.afterClass()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
======
===== Test class
com.test.classes.DemoClassWithManyMethodsTest
@BeforeClass BaseTest.beforeClass()[pri:0, instance:com.test.classes.DemoClassWithManyMethodsTest@174d20a]
@BeforeMethod BaseTest.beforeMethod()[pri:0, instance:com.test.classes.DemoClassWithManyMethodsTest@174d20a]
@Test DemoClassWithManyMethodsTest.methodTwo_2()[pri:0, instance:com.test.classes.DemoClassWithManyMethodsTest@174d20a]
@Test DemoClassWithManyMethodsTest.methodOne_1()[pri:0, instance:com.test.classes.DemoClassWithManyMethodsTest@174d20a]
@AfterMethod BaseTest.afterMethod()[pri:0, instance:com.test.classes.DemoClassWithManyMethodsTest@174d20a]
@AfterClass BaseTest.afterClass()[pri:0, instance:com.test.classes.DemoClassWithManyMethodsTest@174d20a]
======
[TestRunner] Starting executor for test Test with time out:2147483647 milliseconds.
[Invoker 1980861471] Invoking @BeforeClass BaseTest.beforeClass()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
Before ClassesCommand line hello world. Thread id = 11
[Invoker 2030647532] Invoking @BeforeMethod BaseTest.beforeMethod()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
[Invoker 1980861471] Invoking @BeforeMethod BaseTest.beforeMethod()[pri:0, instance:com.test.classes.TestNGMethodSelector@7921b0a2]
Starting Appium Server
192.168.56.103:5555
Attempt to get port..
Port 58812
Attempt to get chrome port..
Chrome port 58813
Attempt to get bootstrap port..
Bootstrap port58814
Attempt to start server
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 0.0.0.0:58812
info: Console LogLevel: info
info: File LogLevel: info
info: --> GET /wd/hub/status {}
info: <-- GET /wd/hub/status 200 6.121 ms - 105 {"status":0,"value":{"build":{"version":"1.4.16","revision":"ae6877eff263066b26328d457bd285c0cc62430d"}}}
Server has been started
info: --> GET /wd/hub/status {}
Server has been started
info: <-- GET /wd/hub/status 200 1.911 ms - 105 {"status":0,"value":{"build":{"version":"1.4.16","revision":"ae6877eff263066b26328d457bd285c0cc62430d"}}}
info: --> GET /wd/hub/status {}
info: <-- GET /wd/hub/status 200 0.566 ms - 105 {"status":0,"value":{"build":{"version":"1.4.16","revision":"ae6877eff263066b26328d457bd285c0cc62430d"}}}
true
io.appium.java_client.service.local.AppiumServiceBuilder@4c3be05d
info: --> GET /wd/hub/status {}
info: <-- GET /wd/hub/status 200 0.416 ms - 105 {"status":0,"value":{"build":{"version":"1.4.16","revision":"ae6877eff263066b26328d457bd285c0cc62430d"}}}
true
io.appium.java_client.service.local.AppiumServiceBuilder@4c3be05d
info: --> POST /wd/hub/session {"desiredCapabilities":{"appActivity":"com.android2.calculator3.Calculator","package":"com.android2.calculator3","platformName":"Android","deviceName":"Android","platformVersion":"5.X"}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: --> POST /wd/hub/session {"desiredCapabilities":{"appActivity":"com.android2.calculator3.Calculator","package":"com.android2.calculator3","platformName":"Android","deviceName":"Android","platformVersion":"5.X"}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: Starting android appium
info: Starting android appium
info: Java version is: 1.8.0_51
info: Java version is: 1.8.0_51
info: Retrieving device
info: Retrieving device
info: Found device 192.168.56.103:5555
info: Found device 192.168.56.103:5555
warn: UiAutomator did not shut down fast enough, calling it gone
error: Failed to start an Appium session, err was: Error: Trying to start logcat capture but it's already started!
info: <-- POST /wd/hub/session 500 7215.133 ms - 234 
Failed to invoke configuration method com.test.classes.BaseTest.beforeMethod:A new session could not be created. (Original error: Trying to start logcat capture but it's already started!) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 7.35 seconds
Build info: version: '2.48.2', revision: '41bccdd10cf2c0560f637404c2d96164b67d9d67', time: '2015-10-09 13:08:06'
System info: host: 'INsaikrisv.local', ip: '10.4.21.40', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.4', java.version: '1.8.0_51'
Driver info: io.appium.java_client.android.AndroidDriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment