Added package

This commit is contained in:
Guillem Hernandez Sola
2017-11-24 18:36:43 +01:00
parent 5d4734da57
commit ea38ee97eb
7 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="StartUsingWebDriver test examples" <suite name="StartUsingWebDriver test examples"
allow-return-values="true" verbose="1" allow-return-values="true" verbose="1"
parallel="tests" thread-count="4"> parallel="tests">
<test name="all" parallel="classes" thread-count="4" time-out="240000"> <test name="all" parallel="classes" thread-count="4" time-out="240000">
<packages> <packages>
<package name="com.itnove.trainings.testng.startUsingWebDriver.*"/> <package name="com.itnove.trainings.testng.startUsingWebDriver.*"/>

View File

@@ -12,7 +12,7 @@ import java.util.List;
*/ */
public class DropdownTest extends BaseTest { public class DropdownTest extends BaseTest {
@Test @Test(enabled = false)
public void testApp() throws InterruptedException { public void testApp() throws InterruptedException {
driver driver
.navigate().to("https://the-internet.herokuapp.com/dropdown"); .navigate().to("https://the-internet.herokuapp.com/dropdown");

View File

@@ -16,7 +16,7 @@ import static org.testng.Assert.assertTrue;
*/ */
public class HoverMenuTest extends BaseTest { public class HoverMenuTest extends BaseTest {
@Test @Test(enabled = false)
public void testApp() throws InterruptedException { public void testApp() throws InterruptedException {
//1 //1
driver.get("http://opencart.votarem.lu"); driver.get("http://opencart.votarem.lu");

View File

@@ -11,7 +11,7 @@ import static org.testng.Assert.assertTrue;
*/ */
public class JsExecutorTest extends BaseTest { public class JsExecutorTest extends BaseTest {
@Test @Test(enabled = false)
public void testVideoAvanzado() throws Exception { public void testVideoAvanzado() throws Exception {
driver.get("http://www.ccma.cat/tv3/directe-avancat/324/"); driver.get("http://www.ccma.cat/tv3/directe-avancat/324/");
acceptarCookies(driver); acceptarCookies(driver);

View File

@@ -15,7 +15,7 @@ import static org.testng.Assert.assertTrue;
*/ */
public class SearchTest extends BaseTest { public class SearchTest extends BaseTest {
@Test @Test(enabled = false)
public void testApp() throws InterruptedException { public void testApp() throws InterruptedException {
String cerca = "apple"; String cerca = "apple";
//1 //1

View File

@@ -15,7 +15,7 @@ public class TestABTest extends BaseTest {
@Test @Test
public void testApp() throws InterruptedException { public void testApp() throws InterruptedException {
int counter1=0, counter2=0; int counter1=0, counter2=0;
for(int i=0; i < 1000; i++){ for(int i=0; i < 10; i++){
driver.get("https://the-internet.herokuapp.com/abtest"); driver.get("https://the-internet.herokuapp.com/abtest");
WebElement title = WebElement title =
driver.findElement(By.xpath(".//*[@id='content']/div/h3")); driver.findElement(By.xpath(".//*[@id='content']/div/h3"));

View File

@@ -21,7 +21,7 @@ public class iFramesTest extends BaseTest {
} }
} }
@Test @Test(enabled = false)
public void testApp() throws InterruptedException { public void testApp() throws InterruptedException {
driver.navigate().to("https://the-internet.herokuapp.com/iframe"); driver.navigate().to("https://the-internet.herokuapp.com/iframe");
listIframesFromPage(driver); listIframesFromPage(driver);