blob: d76aa6fde75a4b71e0c5a2418355cd4bfeaac040 [file] [log] [blame]
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +03001<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
2
3<suite verbose="1" name="VID UI Tests" annotations="JDK">
4 <listeners>
Eylon Malinf076ec72019-08-15 16:42:22 +03005 <listener class-name="vid.automation.test.infra.SkipTestsTestngTransformer"/>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +03006 </listeners>
7 <test name="test">
8 <method-selectors>
9 <method-selector>
10 <script language="beanshell">
11 <![CDATA[
12 String [] exclusionGroups = new String [] {
13 "shouldBeMigratedToWorkWithSimulator",
14 "underDevelopment",
15 "Angular2Tests",
16 "worksOnlyWithLocalhostVID",
17 "worksOnlyWithLocalASDC"
18 };
19 String [] classes2 = new String [] {
20 "vid.automation.test.test.AddNetworkTest",
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030021 "vid.automation.test.test.BrowseASDCTest",
22 "vid.automation.test.test.ChangeManagementTest",
Ittay Stern6ad41e32018-12-31 17:21:27 +020023 "vid.automation.test.test.ALaCarteflowTest",
24 "vid.automation.test.test.VlanTagSubInterfaceTest",
Ittay Sternf790c782020-01-02 17:36:33 +020025 "vid.automation.test.test.CreatePortMirroringConfigurationTest",
Ittay Stern6ad41e32018-12-31 17:21:27 +020026 "vid.automation.test.test.CreateNewInstanceTest"
27 };
28
29 String [] classes3 = new String [] {
Ittay Sternf790c782020-01-02 17:36:33 +020030 "vid.automation.test.test.NewServiceInstanceTest"
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030031 };
Ittay Stern6ad41e32018-12-31 17:21:27 +020032
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030033 String [] classes4 = new String [] {
Ittay Stern6ad41e32018-12-31 17:21:27 +020034 "vid.automation.test.test.DrawingBoardTest",
35 "vid.automation.test.test.ViewEditServiceInstanceTest"
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030036 };
37
38 int selectPart = 0;
39
40 for (g: exclusionGroups) {
41 if (groups.containsKey(g)) return false;
42 }
43
44 if (selectPart == 0) return true;
45
46 methodClass = method.getDeclaringClass().toString();
47 for (c: classes2) {
48 if (methodClass.contains(c)) return selectPart==2;
49 }
50 for (c: classes3) {
51 if (methodClass.contains(c)) return selectPart==3;
52 }
53 for (c: classes4) {
54 if (methodClass.contains(c)) return selectPart==4;
55 }
56 // else
57 return selectPart==1;
58 ]]>
59 </script>
60 </method-selector>
61 </method-selectors>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030062
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030063 <packages>
64 <package name="vid.automation.test.test.*"/>
65 </packages>
66 </test>
Eylon Malin7bb28ca2019-08-15 11:39:22 +030067</suite>