Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 1 | <!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", |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 21 | "vid.automation.test.test.BrowseASDCTest", |
| 22 | "vid.automation.test.test.ChangeManagementTest", |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 23 | "vid.automation.test.test.ALaCarteflowTest", |
| 24 | "vid.automation.test.test.VlanTagSubInterfaceTest", |
| 25 | "vid.automation.test.test.CreateNewInstanceTest" |
| 26 | }; |
| 27 | |
| 28 | String [] classes3 = new String [] { |
| 29 | "vid.automation.test.test.NewServiceInstanceTest", |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 30 | "vid.automation.test.test.CreatePortMirroringConfigurationTest" |
| 31 | }; |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 32 | |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 33 | String [] classes4 = new String [] { |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 34 | "vid.automation.test.test.DrawingBoardTest", |
| 35 | "vid.automation.test.test.ViewEditServiceInstanceTest" |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 36 | }; |
| 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> |
| 62 | <groups> |
| 63 | <run> |
| 64 | <!-- These tests are legacy tests that should be converted from |
| 65 | working against IST to working against vid's 3rd party simulator--> |
| 66 | <exclude name="shouldBeMigratedToWorkWithSimulator"/> |
| 67 | |
| 68 | <!-- These tests require the settings in asdc.properties to be like |
| 69 | asdc.client.type=LOCAL so cannot run on pipeline--> |
| 70 | <exclude name="worksOnlyWithLocalASDC"/> |
| 71 | |
| 72 | <!-- these tests call to MaintenanceController which is restricted to |
| 73 | localhost, so it can not run on jenkins pipeline --> |
| 74 | <exclude name="worksOnlyWithLocalhostVID"/> |
| 75 | |
| 76 | <!-- angular2 is not supported in CI yet. These tests can run only on |
| 77 | developers environment --> |
| 78 | <exclude name="Angular2Tests"/> |
| 79 | |
| 80 | <!-- tests and features that are still under development but are pushed to develop --> |
| 81 | <exclude name="underDevelopment"/> |
| 82 | |
| 83 | </run> |
| 84 | </groups> |
| 85 | <packages> |
| 86 | <package name="vid.automation.test.test.*"/> |
| 87 | </packages> |
| 88 | </test> |
| 89 | </suite> |