package org.openqa.selenium.qtwebkit.quick_tests;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.openqa.selenium.environment.GlobalTestEnvironment;
import org.openqa.selenium.environment.InProcessTestEnvironment;
import org.openqa.selenium.qtwebkit.quick_tests.interactions.InteractionTests;
import org.openqa.selenium.qtwebkit.quick_tests.interactions.touch.TouchTests;
import org.openqa.selenium.testing.JUnit4TestBase;

@RunWith(Suite.class)
@Suite.SuiteClasses({
                        WindowTest.class,
                        ElementEqualityTest.class,
                        ClickTest.class,
                        FindingTest.class,
                        CoordinatesTest.class,
                        TakesScreenshotTest.class,
                        ElementAttributeTest.class,
                        TypingTest.class,
                        FormHandlingTest.class,
                        MiscTest.class,
                        XPathElementFindingTest.class,
                        StaleElementReferenceTest.class,
                        VisibilityTest.class,
                        InteractionTests.class,
                        ExecutingJavascriptTest.class,
                        VideoTest.class,
                        TouchTests.class,
                    })
public class Quick2WebDriverTests {
    @BeforeClass
    public static void prepareCommonEnvironment() {
        InProcessTestEnvironment environment = GlobalTestEnvironment.get(InProcessTestEnvironment.class);
        environment.setTestContent(new Quick2TestContent(environment.getAppServer()));
    }

    @AfterClass
    public static void cleanUpDriver() {
        JUnit4TestBase.removeDriver();
        String testsName = Quick2WebDriverTests.class.getName();
        GlobalTestEnvironment.get(InProcessTestEnvironment.class).getStatisticCommands().writeToXml(testsName);
    }

}

@@ -549,32 +549,16 @@
 asses(%7B%0A
-                
         
@@ -575,32 +575,16 @@
 .class,%0A
-                
         
@@ -610,32 +610,16 @@
 .class,%0A
-                
         
@@ -635,32 +635,16 @@
 .class,%0A
-                
         
@@ -662,32 +662,16 @@
 .class,%0A
-                
         
@@ -693,32 +693,16 @@
 .class,%0A
-                
         
@@ -728,32 +728,16 @@
 .class,%0A
-                
         
@@ -764,32 +764,16 @@
 .class,%0A
-                
         
@@ -790,32 +790,16 @@
 .class,%0A
-                
         
@@ -834,56 +834,24 @@
     
-                MiscTest.class,%0A                
+MiscTest.class,%0A
     
@@ -885,32 +885,16 @@
 .class,%0A
-                
         
@@ -926,32 +926,16 @@
 .class,%0A
-                
         
@@ -956,32 +956,16 @@
 .class,%0A
-                
         
@@ -988,32 +988,16 @@
 .class,%0A
-                
         
@@ -1039,33 +1039,18 @@
     
-                Video
+Touch
 Test
+s
 .cla
@@ -1065,42 +1065,25 @@
     
-                Touch
+Video
 Test
-s
 .class,%0A
     
@@ -1082,31 +1082,12 @@
 ss,%0A
-                    
 %7D)%0A
+%0A
 publ

Move VideoTests to the end of suite execution in order to avoid test fails after incorrect VideoTest behaviour