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"/> |
Eylon Malin | 7bb28ca | 2019-08-15 11:39:22 +0300 | [diff] [blame] | 6 | <listener class-name="vid.automation.test.infra.SkipTestUntilTestngTransformer"/> |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 7 | </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) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 22 | "vid.automation.test.test.BrowseASDCTest", |
| 23 | "vid.automation.test.test.ChangeManagementTest", |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 24 | "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) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 31 | "vid.automation.test.test.CreatePortMirroringConfigurationTest" |
| 32 | }; |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 33 | |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 34 | String [] classes4 = new String [] { |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 35 | "vid.automation.test.test.DrawingBoardTest", |
| 36 | "vid.automation.test.test.ViewEditServiceInstanceTest" |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 37 | }; |
| 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) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 63 | |
Sonsino, Ofir (os0695) | 4a4dcc5 | 2018-08-12 14:51:28 +0300 | [diff] [blame] | 64 | <packages> |
| 65 | <package name="vid.automation.test.test.*"/> |
| 66 | </packages> |
| 67 | </test> |
Eylon Malin | 7bb28ca | 2019-08-15 11:39:22 +0300 | [diff] [blame] | 68 | </suite> |