/*
 * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package io.github.bonigarcia.wdm.test;

import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat;

import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

import io.github.bonigarcia.wdm.WebDriverManager;

/**
 * Test with TestNG in parallel.
 *
 * @author Boni Garcia (boni.gg@gmail.com)
 * @since 1.0.0
 */
public class TestNgChromeTest {

    @BeforeTest(alwaysRun = true)
    public void beforeTest() {
        WebDriverManager.chromedriver().setup();
    }

    @Test
    public void testChrome() {
        assertThat(System.getProperty("webdriver.chrome.driver"),
                containsString("chromedriver"));
    }

}

@@ -678,24 +678,78 @@
 dm.test;%0D%0A%0D%0A
+import static java.lang.invoke.MethodHandles.lookup;%0D%0A
 import stati
@@ -833,24 +833,100 @@
 ssertThat;%0D%0A
+import static org.slf4j.LoggerFactory.getLogger;%0D%0A%0D%0Aimport org.slf4j.Logger;
 %0D%0Aimport org
@@ -1190,24 +1190,92 @@
 meTest %7B%0D%0A%0D%0A
+    static final Logger log = getLogger(lookup().lookupClass());%0D%0A%0D%0A
     @BeforeT
@@ -1325,24 +1325,76 @@
 reTest() %7B%0D%0A
+        log.debug(%22TestNgChromeTest @BeforeTest%22);%0D%0A
         WebD
@@ -1479,24 +1479,70 @@
 Chrome() %7B%0D%0A
+        log.debug(%22TestNgChromeTest @Test%22);%0D%0A
         asse

Include traces in TestNG Chrome Test