blob: 025bd3f7df18968b773d77f5f78023ba9701140b [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"/>
6 </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",
21 "vid.automation.test.test.ALaCarteflowTest",
22 "vid.automation.test.test.AssociatePnfTest",
23 "vid.automation.test.test.BrowseASDCTest",
24 "vid.automation.test.test.ChangeManagementTest",
25 "vid.automation.test.test.CreateNewInstanceTest",
26 "vid.automation.test.test.CreatePortMirroringConfigurationTest"
27 };
28 String [] classes3 = new String [] {
29 "vid.automation.test.test.DrawingBoardTest"
30 };
31 String [] classes4 = new String [] {
32 "vid.automation.test.test.NewServiceInstanceTest"
33 };
34
35 int selectPart = 0;
36
37 for (g: exclusionGroups) {
38 if (groups.containsKey(g)) return false;
39 }
40
41 if (selectPart == 0) return true;
42
43 methodClass = method.getDeclaringClass().toString();
44 for (c: classes2) {
45 if (methodClass.contains(c)) return selectPart==2;
46 }
47 for (c: classes3) {
48 if (methodClass.contains(c)) return selectPart==3;
49 }
50 for (c: classes4) {
51 if (methodClass.contains(c)) return selectPart==4;
52 }
53 // else
54 return selectPart==1;
55 ]]>
56 </script>
57 </method-selector>
58 </method-selectors>
59 <groups>
60 <run>
61 <!-- These tests are legacy tests that should be converted from
62 working against IST to working against vid's 3rd party simulator-->
63 <exclude name="shouldBeMigratedToWorkWithSimulator"/>
64
65 <!-- These tests require the settings in asdc.properties to be like
66 asdc.client.type=LOCAL so cannot run on pipeline-->
67 <exclude name="worksOnlyWithLocalASDC"/>
68
69 <!-- these tests call to MaintenanceController which is restricted to
70 localhost, so it can not run on jenkins pipeline -->
71 <exclude name="worksOnlyWithLocalhostVID"/>
72
73 <!-- angular2 is not supported in CI yet. These tests can run only on
74 developers environment -->
75 <exclude name="Angular2Tests"/>
76
77 <!-- tests and features that are still under development but are pushed to develop -->
78 <exclude name="underDevelopment"/>
79
80 </run>
81 </groups>
82 <packages>
83 <package name="vid.automation.test.test.*"/>
84 </packages>
85 </test>
86</suite>