Fix elements quicktest groups to work with filtering
authorDamian Jansen <damian.jansen@nokia.com>
Fri, 28 Oct 2011 01:27:22 +0000 (11:27 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 Nov 2011 01:20:01 +0000 (02:20 +0100)
Change-Id: Iaa1b2bf9a3f810f9f3f5c599d2f5b85e30828bc0
Reviewed-by: Daron Andrew Edie

tests/system/sys_elements.qtt

index 296dd83..2ffb83a 100644 (file)
 testcase = {
 
     pre_existing_elements_data: {
-        // ElementName: [preconditions,[groups]]
-        Rectangle: ["",["QtQuick1.0","BAT"]],
-        Image: ["",["QtQuick1.0","BAT"]],
-        AnimatedImage: ["",["QtQuick1.0","BAT"]],
-        BorderImage: ["",["QtQuick1.0","BAT"]],
-        SystemPalette: ["",["QtQuick1.0","BAT"]],
-        Text: ["",["QtQuick1.0","BAT"]],
-        TextInput: ["",["QtQuick1.0","BAT"]],
-        TextEdit: ["",["QtQuick1.0","BAT"]],
-        FontLoader: ["",["QtQuick1.0","BAT"]],
-        Flipable: ["",["QtQuick1.0","BAT"]],
-        Flickable: ["",["QtQuick1.0","BAT"]],
-        IntValidator: ["",["QtQuick1.0","BAT"]],
-        DoubleValidator: ["",["QtQuick1.0","BAT"]],
-        RegExpValidator: ["",["QtQuick1.0","BAT"]],
-        Column: ["",["QtQuick1.0","BAT"]],
-        Row: ["",["QtQuick1.0","BAT"]],
-        Flow: ["",["QtQuick1.0","BAT"]],
-        Grid: ["",["QtQuick1.0","BAT"]],
-        Repeater: ["",["QtQuick1.0","BAT"]],
-        ListView: ["",["QtQuick1.0","BAT"]],
-        Keys: ["",["QtQuick1.0","BAT"]],
-        MouseArea: ["",["QtQuick1.0","BAT"]],
-        SequentialAnimation: ["",["QtQuick1.0","BAT"]],
-        ParallelAnimation: ["",["QtQuick1.0","BAT"]],
-        XmlListModel: ["",["QtQuick1.0","BAT"]],
-        Scale: ["",["QtQuick1.0","BAT"]]
+        Rectangle: ["Rectangle"],
+        Image: ["Image"],
+        AnimatedImage: ["AnimatedImage"],
+        BorderImage: ["BorderImage"],
+        SystemPalette: ["SystemPalette"],
+        Text: ["Text"],
+        TextInput: ["TextInput"],
+        TextEdit: ["TextEdit"],
+        FontLoader: ["FontLoader"],
+        Flipable: ["Flipable"],
+        Flickable: ["Flickable"],
+        IntValidator: ["IntValidator"],
+        DoubleValidator: ["DoubleValidator"],
+        RegExpValidator: ["RegExpValidator"],
+        Column: ["Column"],
+        Row: ["Row"],
+        Flow: ["Flow"],
+        Grid: ["Grid"],
+        Repeater: ["Repeater"],
+        ListView: ["ListView"],
+        Keys: ["Keys"],
+        MouseArea: ["MouseArea"],
+        SequentialAnimation: ["SequentialAnimation"],
+        ParallelAnimation: ["ParallelAnimation"],
+        XmlListModel: ["XmlListModel"],
+        Scale: ["Scale"]
     },
 
-    pre_existing_elements: function(prec,groups) {
+    pre_existing_elements: function(name) {
         // Test Meta-data
-        testTitle = currentDataTag()+ " Element";
+        testTitle = name+ " Element";
         testBinary = "qmlscene tests/testapplications/elements/elements.qml";
-        testGoal = "Verify the "+currentDataTag()+" element is shown correctly";
-        testPreconditions = prec;
-        testGroups = groups;
+        testGoal = "Verify the "+name+" element is shown correctly";
+        testPreconditions = "None";
+        testGroups = "BAT";
 
         // Test Steps
         prompt(twiki('---+++ ' + testTitle + '<br><br>
         *Goal:* ' + testGoal + '<br>
         *Pre-Requisites:* ' + testPreconditions + '<br>
         *Tested Binary:* ' + testBinary + '<br>
-    | Select the '+currentDataTag()+' list item | Verify that the '+currentDataTag()+' application is displayed |
+    | Select the '+name+' list item | Verify that the '+name+' application is displayed |
     | Follow the instructions in the in-app test | Verify all steps are completed successfully |'));
     },
 
     new_elements_data: {
-        // ElementName: [preconditions,[groups]]
-        ParticleSystem: ["",["QtQuick2.0","BAT"]],
-        ImageParticle: ["",["QtQuick2.0","BAT"]],
-        Emitter: ["",["QtQuick2.0","BAT"]],
-        Affector: ["",["QtQuick2.0","BAT"]],
-        Shape: ["",["QtQuick2.0","BAT"]],
-        TrailEmitter: ["",["QtQuick2.0","BAT"]],
-        Direction: ["",["QtQuick2.0","BAT"]]
+        ParticleSystem: ["ParticleSystem"],
+        ImageParticle: ["ImageParticle"],
+        Emitter: ["Emitter"],
+        Affector: ["Affector"],
+        Shape: ["Shape",],
+        TrailEmitter: ["TrailEmitter"],
+        Direction: ["Direction"]
     },
 
-    new_elements: function(prec,groups) {
+    new_elements: function(name) {
         // Test Meta-data
-        testTitle = currentDataTag()+ " Element";
+        testTitle = name+ " Element";
         testBinary = "qmlscene tests/testapplications/elements/elements.qml";
-        testGoal = "Verify the "+currentDataTag()+" element is shown correctly";
-        testPreconditions = prec;
-        testGroups = groups;
+        testGoal = "Verify the "+name+" element is shown correctly";
+        testPreconditions = "None";
+        testGroups = "BAT";
 
         // Test Steps
         prompt(twiki('---+++ ' + testTitle + '<br><br>
         *Goal:* ' + testGoal + '<br>
         *Pre-Requisites:* ' + testPreconditions + '<br>
         *Tested Binary:* ' + testBinary + '<br>
-    | Select the '+currentDataTag()+' list item | Verify that the '+currentDataTag()+' application is displayed |
+    | Select the '+name+' list item | Verify that the '+name+' application is displayed |
     | Follow the instructions in the in-app test | Verify all steps are completed successfully |'));
     }
 }
-
-