package io.tromba.samples;

import io.tromba.testdriver.BaseTestdriverTest;
import io.tromba.testdriver.TestdriverManager;
import org.testng.annotations.Test;

/**
 * Smoke test.
 */
public class SampleTests extends BaseTestdriverTest {

    public SampleTests() {
        super(new TestdriverManager());
    }

    @Test
    public void testGetAPage() {
        driver().get("http://tromba.io");
    }
}
@@ -116,16 +116,117 @@
 anager;%0A
+import org.openqa.selenium.By;%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.DataProvider;%0A
 import o
@@ -496,10 +496,542 @@
 );%0A    %7D
+%0A%0A    @Test(dataProvider = %22queries%22)%0A    public void testSearchGoogle(String query) %7B%0A        driver().get(%22https://google.com%22);%0A        driver().findElement(By.id(%22lst-ib%22)).sendKeys(query);%0A        Assert.assertTrue(driver().getTitle().contains(%22Google%22));%0A    %7D%0A%0A    @DataProvider(name = %22queries%22, parallel = true)%0A    public Object%5B%5D%5B%5D provideQueries() %7B%0A        return new Object%5B%5D%5B%5D %7B %7B %22Selenium%22 %7D, %7B %22webdriver%22 %7D, %7B %22BDD%22 %7D, %7B %22wireshark%22 %7D, %7B %22charles proxy%22 %7D,%0A                %7B %22Cucumber-jvm%22 %7D, %7B %22Behat%22 %7D %7D;%0A    %7D
 %0A%7D

add dataprovider test