blob: b190738698d0250ca422e43afbea730cee0b07b0 [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>
5 <listener class-name="vid.automation.test.infra.FeatureTogglingTestngTransformer"/>
Eylon Malin7bb28ca2019-08-15 11:39:22 +03006 <listener class-name="vid.automation.test.infra.SkipTestUntilTestngTransformer"/>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +03007 </listeners>
8 <test name="test">
9 <method-selectors>
10 <method-selector>
11 <script language="beanshell">
12 <![CDATA[
13 String [] exclusionGroups = new String [] {
14 "shouldBeMigratedToWorkWithSimulator",
15 "underDevelopment",
16 "Angular2Tests",
17 "worksOnlyWithLocalhostVID",
18 "worksOnlyWithLocalASDC"
19 };
20 String [] classes2 = new String [] {
21 "vid.automation.test.test.AddNetworkTest",
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030022 "vid.automation.test.test.BrowseASDCTest",
23 "vid.automation.test.test.ChangeManagementTest",
Ittay Stern6ad41e32018-12-31 17:21:27 +020024 "vid.automation.test.test.ALaCarteflowTest",
25 "vid.automation.test.test.VlanTagSubInterfaceTest",
26 "vid.automation.test.test.CreateNewInstanceTest"
27 };
28
29 String [] classes3 = new String [] {
30 "vid.automation.test.test.NewServiceInstanceTest",
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030031 "vid.automation.test.test.CreatePortMirroringConfigurationTest"
32 };
Ittay Stern6ad41e32018-12-31 17:21:27 +020033
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030034 String [] classes4 = new String [] {
Ittay Stern6ad41e32018-12-31 17:21:27 +020035 "vid.automation.test.test.DrawingBoardTest",
36 "vid.automation.test.test.ViewEditServiceInstanceTest"
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030037 };
38
39 int selectPart = 0;
40
41 for (g: exclusionGroups) {
42 if (groups.containsKey(g)) return false;
43 }
44
45 if (selectPart == 0) return true;
46
47 methodClass = method.getDeclaringClass().toString();
48 for (c: classes2) {
49 if (methodClass.contains(c)) return selectPart==2;
50 }
51 for (c: classes3) {
52 if (methodClass.contains(c)) return selectPart==3;
53 }
54 for (c: classes4) {
55 if (methodClass.contains(c)) return selectPart==4;
56 }
57 // else
58 return selectPart==1;
59 ]]>
60 </script>
61 </method-selector>
62 </method-selectors>
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030063
Sonsino, Ofir (os0695)4a4dcc52018-08-12 14:51:28 +030064 <packages>
65 <package name="vid.automation.test.test.*"/>
66 </packages>
67 </test>
Eylon Malin7bb28ca2019-08-15 11:39:22 +030068</suite>