From e21d0d1ba6813d58fc3cbcbb45fd6df6f2cf2f07 Mon Sep 17 00:00:00 2001 From: lasantha Date: Sun, 11 Feb 2018 20:01:21 +0530 Subject: [PATCH] Adding test cases to verify application delete operation --- .../jmeter-scripts/AppManagerTest.jmx | 339 +++++++++++------- 1 file changed, 218 insertions(+), 121 deletions(-) diff --git a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx index a8a60a15..a1229ea3 100644 --- a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx +++ b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx @@ -1,5 +1,5 @@ - + @@ -115,7 +115,7 @@ rfc2109 - + @@ -137,9 +137,9 @@ urn:login true false - + - + @@ -157,7 +157,7 @@ urn:getTenant true false - + undefined @@ -167,7 +167,6 @@ false true tenant_exists - -1 @@ -183,7 +182,7 @@ false - + @@ -222,10 +221,10 @@ urn:addTenant true false - + - + @@ -240,7 +239,7 @@ urn:logout true false - + @@ -339,6 +338,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https publisher @@ -347,9 +348,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -411,6 +411,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https samlsso @@ -419,10 +421,9 @@ vars.put("encoded", encoded); false true false - HttpClient4 - - + false + @@ -472,6 +473,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https commonauth @@ -480,9 +483,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -536,6 +538,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https publisher/acs @@ -544,9 +548,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -563,6 +566,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https /publisher/csrf.js @@ -571,9 +576,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -582,6 +586,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https /publisher/csrf.js @@ -590,9 +596,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -629,6 +634,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -637,9 +644,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -680,6 +686,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/isexist?name=${mobile-app} @@ -688,9 +696,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -819,6 +826,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -827,9 +836,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -958,6 +966,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -966,9 +976,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1009,6 +1018,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/${encoded}/mobileapp/${id} @@ -1017,9 +1028,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1060,6 +1070,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Approve/mobileapp/${id} @@ -1068,9 +1080,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1102,6 +1113,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/${encoded}/mobileapp/${id} @@ -1110,9 +1123,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1153,6 +1165,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Publish/mobileapp/${id} @@ -1161,9 +1175,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1195,6 +1208,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Deprecate/mobileapp/${id} @@ -1203,9 +1218,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1237,6 +1251,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Retire/mobileapp/${id} @@ -1245,9 +1261,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1376,6 +1391,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -1384,9 +1401,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1418,6 +1434,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/delete/${id} @@ -1426,9 +1444,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1460,6 +1477,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -1468,9 +1487,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1608,6 +1626,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -1616,9 +1636,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1659,6 +1678,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/${encoded}/mobileapp/${id} @@ -1667,9 +1688,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1710,6 +1730,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/delete/${id} @@ -1718,9 +1740,42 @@ vars.put("encoded", encoded); false true true + false + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + + + + + ${server} + ${port} + https + UTF-8 + publisher/api/mobile/isexist?name=${mobile-app} + GET + true + false + true + true + false + @@ -1736,6 +1791,15 @@ vars.put("encoded", encoded); + + + {"isExist" : false} + + Assertion.response_data + false + 8 + + @@ -1752,6 +1816,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -1760,9 +1826,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1900,6 +1965,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -1908,9 +1975,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1951,6 +2017,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp/${id} @@ -1959,9 +2027,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -1993,6 +2060,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/delete/${id} @@ -2001,9 +2070,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2035,6 +2103,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -2043,9 +2113,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2183,6 +2252,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -2191,9 +2262,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2234,6 +2304,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp/${id} @@ -2242,9 +2314,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2276,6 +2347,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/delete/${id} @@ -2284,9 +2357,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2318,6 +2390,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -2326,9 +2400,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2369,6 +2442,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/logout @@ -2377,9 +2452,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2560,6 +2634,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https publisher @@ -2568,9 +2644,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -2632,6 +2707,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https samlsso @@ -2640,10 +2717,9 @@ vars.put("encoded", encoded); false true false - HttpClient4 - - + false + @@ -2693,6 +2769,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https commonauth @@ -2701,9 +2779,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -2757,6 +2834,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https publisher/acs @@ -2765,9 +2844,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -2784,6 +2862,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https /publisher/csrf.js @@ -2792,9 +2872,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -2803,6 +2882,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https /publisher/csrf.js @@ -2811,9 +2892,8 @@ vars.put("encoded", encoded); false true false + false - - @@ -2850,6 +2930,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -2858,9 +2940,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -2901,6 +2982,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/isexist?name=${mobile-app} @@ -2909,9 +2992,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3040,6 +3122,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -3048,9 +3132,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3179,6 +3262,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -3187,9 +3272,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3230,6 +3314,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/${encoded}/mobileapp/${id} @@ -3238,9 +3324,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3281,6 +3366,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Approve/mobileapp/${id} @@ -3289,9 +3376,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3323,6 +3409,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/${encoded}/mobileapp/${id} @@ -3331,9 +3419,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3374,6 +3461,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Publish/mobileapp/${id} @@ -3382,9 +3471,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3416,6 +3504,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Deprecate/mobileapp/${id} @@ -3424,9 +3514,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3458,6 +3547,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/Retire/mobileapp/${id} @@ -3466,9 +3557,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3597,6 +3687,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -3605,9 +3697,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3639,6 +3730,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/delete/${id} @@ -3647,9 +3740,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3681,6 +3773,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobileapp/upload @@ -3689,9 +3783,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3829,6 +3922,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/asset/mobileapp @@ -3837,9 +3932,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3880,6 +3974,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/lifecycle/${encoded}/mobileapp/${id} @@ -3888,9 +3984,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3931,6 +4026,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/api/mobile/delete/${id} @@ -3939,9 +4036,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -3964,6 +4060,8 @@ vars.put("encoded", encoded); ${server} ${port} + + https UTF-8 publisher/logout @@ -3972,9 +4070,8 @@ vars.put("encoded", encoded); false true true + false - - @@ -4115,4 +4212,4 @@ vars.put("encoded", encoded); - + \ No newline at end of file