@sap_oss/wdio-qmate-service 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/.prettierignore +7 -0
  2. package/.prettierrc.json +8 -0
  3. package/docs/doc.md +93 -29
  4. package/docs/index.md +2 -2
  5. package/lib/reuse/helper/verboseLogger.d.ts +21 -0
  6. package/lib/reuse/helper/verboseLogger.js +39 -0
  7. package/lib/reuse/helper/verboseLogger.js.map +1 -0
  8. package/lib/reuse/index.js +5 -0
  9. package/lib/reuse/index.js.map +1 -1
  10. package/lib/reuse/modules/common/Common.js.map +1 -1
  11. package/lib/reuse/modules/common/assertion.d.ts +1 -0
  12. package/lib/reuse/modules/common/assertion.js +18 -8
  13. package/lib/reuse/modules/common/assertion.js.map +1 -1
  14. package/lib/reuse/modules/common/constants/userInteraction.constants.js.map +1 -1
  15. package/lib/reuse/modules/common/date.d.ts +2 -1
  16. package/lib/reuse/modules/common/date.js +20 -10
  17. package/lib/reuse/modules/common/date.js.map +1 -1
  18. package/lib/reuse/modules/common/navigation.d.ts +1 -0
  19. package/lib/reuse/modules/common/navigation.js +6 -3
  20. package/lib/reuse/modules/common/navigation.js.map +1 -1
  21. package/lib/reuse/modules/common/userInteraction.d.ts +1 -0
  22. package/lib/reuse/modules/common/userInteraction.js +16 -13
  23. package/lib/reuse/modules/common/userInteraction.js.map +1 -1
  24. package/lib/reuse/modules/nonUi5/NonUi5.js.map +1 -1
  25. package/lib/reuse/modules/nonUi5/assertion.d.ts +9 -8
  26. package/lib/reuse/modules/nonUi5/assertion.js +18 -14
  27. package/lib/reuse/modules/nonUi5/assertion.js.map +1 -1
  28. package/lib/reuse/modules/nonUi5/constants/userInteraction.constants.js.map +1 -1
  29. package/lib/reuse/modules/nonUi5/element.d.ts +1 -0
  30. package/lib/reuse/modules/nonUi5/element.js +52 -1
  31. package/lib/reuse/modules/nonUi5/element.js.map +1 -1
  32. package/lib/reuse/modules/nonUi5/navigation.d.ts +1 -0
  33. package/lib/reuse/modules/nonUi5/navigation.js +6 -1
  34. package/lib/reuse/modules/nonUi5/navigation.js.map +1 -1
  35. package/lib/reuse/modules/nonUi5/userInteraction.d.ts +1 -0
  36. package/lib/reuse/modules/nonUi5/userInteraction.js +41 -25
  37. package/lib/reuse/modules/nonUi5/userInteraction.js.map +1 -1
  38. package/lib/reuse/modules/service/Service.js.map +1 -1
  39. package/lib/reuse/modules/service/odata.js +16 -25
  40. package/lib/reuse/modules/service/odata.js.map +1 -1
  41. package/lib/reuse/modules/service/rest.d.ts +66 -10
  42. package/lib/reuse/modules/service/rest.js +106 -43
  43. package/lib/reuse/modules/service/rest.js.map +1 -1
  44. package/lib/reuse/modules/ui5/assertion.d.ts +1 -0
  45. package/lib/reuse/modules/ui5/assertion.js +31 -19
  46. package/lib/reuse/modules/ui5/assertion.js.map +1 -1
  47. package/lib/reuse/modules/ui5/confirmationDialog.d.ts +1 -0
  48. package/lib/reuse/modules/ui5/confirmationDialog.js +17 -15
  49. package/lib/reuse/modules/ui5/confirmationDialog.js.map +1 -1
  50. package/lib/reuse/modules/ui5/control.d.ts +1 -0
  51. package/lib/reuse/modules/ui5/control.js +8 -7
  52. package/lib/reuse/modules/ui5/control.js.map +1 -1
  53. package/lib/reuse/modules/ui5/date.d.ts +1 -0
  54. package/lib/reuse/modules/ui5/date.js +17 -10
  55. package/lib/reuse/modules/ui5/date.js.map +1 -1
  56. package/lib/reuse/modules/ui5/element.d.ts +1 -0
  57. package/lib/reuse/modules/ui5/element.js +24 -21
  58. package/lib/reuse/modules/ui5/element.js.map +1 -1
  59. package/lib/reuse/modules/ui5/errorDialog.d.ts +1 -0
  60. package/lib/reuse/modules/ui5/errorDialog.js +12 -11
  61. package/lib/reuse/modules/ui5/errorDialog.js.map +1 -1
  62. package/lib/reuse/modules/ui5/footerBar.d.ts +1 -0
  63. package/lib/reuse/modules/ui5/footerBar.js +38 -37
  64. package/lib/reuse/modules/ui5/footerBar.js.map +1 -1
  65. package/lib/reuse/modules/ui5/mockserver.d.ts +1 -0
  66. package/lib/reuse/modules/ui5/mockserver.js +29 -21
  67. package/lib/reuse/modules/ui5/mockserver.js.map +1 -1
  68. package/lib/reuse/modules/ui5/navigation.d.ts +1 -0
  69. package/lib/reuse/modules/ui5/navigation.js +11 -1
  70. package/lib/reuse/modules/ui5/navigation.js.map +1 -1
  71. package/lib/reuse/modules/ui5/navigationBar.d.ts +1 -0
  72. package/lib/reuse/modules/ui5/navigationBar.js +20 -17
  73. package/lib/reuse/modules/ui5/navigationBar.js.map +1 -1
  74. package/lib/reuse/modules/ui5/qunit.d.ts +1 -0
  75. package/lib/reuse/modules/ui5/qunit.js +3 -2
  76. package/lib/reuse/modules/ui5/qunit.js.map +1 -1
  77. package/lib/reuse/modules/ui5/session.d.ts +1 -0
  78. package/lib/reuse/modules/ui5/session.js +16 -0
  79. package/lib/reuse/modules/ui5/session.js.map +1 -1
  80. package/lib/reuse/modules/ui5/table.d.ts +1 -0
  81. package/lib/reuse/modules/ui5/table.js +19 -15
  82. package/lib/reuse/modules/ui5/table.js.map +1 -1
  83. package/lib/reuse/modules/ui5/userInteraction.d.ts +1 -0
  84. package/lib/reuse/modules/ui5/userInteraction.js +51 -0
  85. package/lib/reuse/modules/ui5/userInteraction.js.map +1 -1
  86. package/lib/reuse/modules/util/browser.d.ts +1 -0
  87. package/lib/reuse/modules/util/browser.js +28 -3
  88. package/lib/reuse/modules/util/browser.js.map +1 -1
  89. package/lib/reuse/modules/util/console.js +9 -9
  90. package/lib/reuse/modules/util/constants/formatter.constants.d.ts +1 -0
  91. package/lib/reuse/modules/util/constants/formatter.constants.js +1 -0
  92. package/lib/reuse/modules/util/constants/formatter.constants.js.map +1 -1
  93. package/lib/reuse/modules/util/data.d.ts +1 -0
  94. package/lib/reuse/modules/util/data.js +9 -0
  95. package/lib/reuse/modules/util/data.js.map +1 -1
  96. package/lib/reuse/modules/util/file.d.ts +1 -0
  97. package/lib/reuse/modules/util/file.js +9 -3
  98. package/lib/reuse/modules/util/file.js.map +1 -1
  99. package/lib/reuse/modules/util/formatter.d.ts +1 -1
  100. package/lib/reuse/modules/util/formatter.js +8 -11
  101. package/lib/reuse/modules/util/formatter.js.map +1 -1
  102. package/lib/reuse/modules/util/function.d.ts +1 -0
  103. package/lib/reuse/modules/util/function.js +9 -4
  104. package/lib/reuse/modules/util/function.js.map +1 -1
  105. package/lib/reuse/modules/util/system.js +0 -2
  106. package/lib/reuse/modules/util/system.js.map +1 -1
  107. package/lib/reuse/runner/runner.d.ts +2 -0
  108. package/lib/reuse/runner/runner.js +14 -0
  109. package/lib/reuse/runner/runner.js.map +1 -0
  110. package/package.json +12 -6
  111. package/test/reuse/service/rest/db.json +20 -0
  112. package/test/reuse/service/rest/delete.spec.js +37 -4
  113. package/test/reuse/service/rest/get.spec.js +13 -1
  114. package/test/reuse/service/rest/init.spec.js +22 -10
  115. package/test/reuse/service/rest/patch.spec.js +44 -14
  116. package/test/reuse/service/rest/post.spec.js +47 -15
  117. package/test/reuse/service/rest/put.spec.js +58 -0
  118. package/test/reuse/service/rest/rest-server.js +76 -0
  119. package/test/reuse/service/rest/test.rest.conf.js +2 -1
  120. package/test/reuse/util/component/loadEntryPoint.spec.js +7 -18
  121. package/test/reuse/util/component/storeEntryPoint.spec.js +27 -17
  122. package/test/reuse/util/formatter/formatDate.spec.js +34 -2
@@ -0,0 +1,7 @@
1
+ node_modules
2
+ lib
3
+ .github
4
+ .reuse
5
+ docs
6
+ LICENSES
7
+ typesTmp
@@ -0,0 +1,8 @@
1
+ {
2
+ "tabWidth": 2,
3
+ "printWidth": 300,
4
+ "singleQuote": false,
5
+ "semi": true,
6
+ "bracketSpacing": true,
7
+ "trailingComma": "none"
8
+ }
package/docs/doc.md CHANGED
@@ -315,7 +315,7 @@ Calculates the date based on the input parameter and returns it in the given for
315
315
  | Param | Type | Default | Description |
316
316
  | --- | --- | --- | --- |
317
317
  | [date] | <code>String</code> | <code>&quot;today&quot;</code> | Supported values: today, tomorrow, nextMonth, previousMonth, nextYear, previousYear |
318
- | [format] | <code>String</code> | <code>&quot;object&quot;</code> | The expected format ("mm/dd/yyyy", "dd.mm.yyyy", "dd/mm/yyyy", "yyyymmdd", "yyyy/mm/dd", "datetime", "object"). |
318
+ | [format] | <code>String</code> | <code>&quot;object&quot;</code> | The expected format ("mm/dd/yyyy", "dd.mm.yyyy", "dd/mm/yyyy", "yyyymmdd", "yyyy/mm/dd", "mmm dd, yyyy", "mmm d, yyyy", "datetime", "object"). |
319
319
 
320
320
  **Example**
321
321
  ```js
@@ -1340,7 +1340,7 @@ formats date.
1340
1340
  | Param | Type | Default | Description |
1341
1341
  | --- | --- | --- | --- |
1342
1342
  | date | <code>Date</code> | | The date object to be formatted. |
1343
- | format | <code>String</code> | | The expected format ("mm/dd/yyyy", "dd.mm.yyyy", "dd/mm/yyyy", "yyyymmdd", "yyyy/mm/dd", "mmm dd, yyyy", "datetime", "object"). |
1343
+ | format | <code>String</code> | | The expected format ("mm/dd/yyyy", "dd.mm.yyyy", "dd/mm/yyyy", "yyyymmdd", "yyyy/mm/dd", "mmm dd, yyyy", "mmm d, yyyy", "datetime", "object"). |
1344
1344
  | [locale] | <code>String</code> | <code>&quot;en-US&quot;</code> | The locale format of the date. E.g. "en-US", "de-DE", etc. |
1345
1345
 
1346
1346
  **Example**
@@ -4959,10 +4959,10 @@ Global namespace for service modules.
4959
4959
  * [service](#service)
4960
4960
  * [.odata](#service.odata)
4961
4961
  * [.init(url, username, password, [loggingEnabled], [params], [authType])](#service.odata.init) ⇒ <code>Object</code>
4962
- * [.get(srv, entitySet, keys)](#service.odata.get)
4962
+ * [.get(srv, entitySet, keys, raw)](#service.odata.get)
4963
4963
  * [.getEntitySet(srv, entitySet, [filterString], [selectionFields], [queryParams])](#service.odata.getEntitySet) ⇒ <code>Array</code>
4964
4964
  * [.isFeatureToggleActivated(srv, featureName)](#service.odata.isFeatureToggleActivated)
4965
- * [.post(srv, entitySet, payload)](#service.odata.post)
4965
+ * [.post(srv, entitySet, payload, raw)](#service.odata.post)
4966
4966
  * [.merge(srv, entitySet, payload)](#service.odata.merge)
4967
4967
  * [.delete(srv, entitySet, options)](#service.odata.delete)
4968
4968
  * [.callFunctionImport(srv, functionImportName, options)](#service.odata.callFunctionImport)
@@ -4970,10 +4970,11 @@ Global namespace for service modules.
4970
4970
  * [.readPdfFromDirectUrl(url, [username], [password], [isSaml])](#service.odata.readPdfFromDirectUrl)
4971
4971
  * [.rest](#service.rest)
4972
4972
  * [.init([customConfig])](#service.rest.init) ⇒ <code>Object</code>
4973
- * [.get(uri, [options])](#service.rest.get) ⇒ <code>Object</code>
4974
- * [.post(uri, payload)](#service.rest.post) ⇒ <code>Object</code>
4975
- * [.delete(uri, options)](#service.rest.delete) ⇒ <code>Object</code>
4976
- * [.patch(uri, options)](#service.rest.patch) ⇒ <code>Object</code>
4973
+ * [.get(uri, [config])](#service.rest.get) ⇒ <code>Object</code>
4974
+ * [.post(uri, payload, [config])](#service.rest.post) ⇒ <code>Object</code>
4975
+ * [.delete(uri, [config])](#service.rest.delete) ⇒ <code>Object</code>
4976
+ * [.patch(uri, payload, [config])](#service.rest.patch) ⇒ <code>Object</code>
4977
+ * [.put(uri, payload, [config])](#service.rest.put) ⇒ <code>Object</code>
4977
4978
 
4978
4979
  <a name="service.odata"></a>
4979
4980
 
@@ -4982,10 +4983,10 @@ Global namespace for service modules.
4982
4983
 
4983
4984
  * [.odata](#service.odata)
4984
4985
  * [.init(url, username, password, [loggingEnabled], [params], [authType])](#service.odata.init) ⇒ <code>Object</code>
4985
- * [.get(srv, entitySet, keys)](#service.odata.get)
4986
+ * [.get(srv, entitySet, keys, raw)](#service.odata.get)
4986
4987
  * [.getEntitySet(srv, entitySet, [filterString], [selectionFields], [queryParams])](#service.odata.getEntitySet) ⇒ <code>Array</code>
4987
4988
  * [.isFeatureToggleActivated(srv, featureName)](#service.odata.isFeatureToggleActivated)
4988
- * [.post(srv, entitySet, payload)](#service.odata.post)
4989
+ * [.post(srv, entitySet, payload, raw)](#service.odata.post)
4989
4990
  * [.merge(srv, entitySet, payload)](#service.odata.merge)
4990
4991
  * [.delete(srv, entitySet, options)](#service.odata.delete)
4991
4992
  * [.callFunctionImport(srv, functionImportName, options)](#service.odata.callFunctionImport)
@@ -5022,7 +5023,7 @@ srv = await service.odata.init(url, user, password, false, params);
5022
5023
  ```
5023
5024
  <a name="service.odata.get"></a>
5024
5025
 
5025
- #### odata.get(srv, entitySet, keys)
5026
+ #### odata.get(srv, entitySet, keys, raw)
5026
5027
  makes a GET request.
5027
5028
 
5028
5029
  **Kind**: static method of [<code>odata</code>](#service.odata)
@@ -5032,6 +5033,7 @@ makes a GET request.
5032
5033
  | srv | <code>Object</code> | Instance of the service |
5033
5034
  | entitySet | <code>String</code> | The entitySet you want to GET from. |
5034
5035
  | keys | <code>Object</code> | The required keys for the GET-request. |
5036
+ | raw | <code>Boolean</code> | Response includes all header contents. |
5035
5037
 
5036
5038
  **Example**
5037
5039
  ```js
@@ -5095,7 +5097,7 @@ let isFeatureActive = await service.odata.isFeatureToggleActivated(srv, "MM_PUR_
5095
5097
  ```
5096
5098
  <a name="service.odata.post"></a>
5097
5099
 
5098
- #### odata.post(srv, entitySet, payload)
5100
+ #### odata.post(srv, entitySet, payload, raw)
5099
5101
  makes a POST request.
5100
5102
 
5101
5103
  **Kind**: static method of [<code>odata</code>](#service.odata)
@@ -5105,6 +5107,7 @@ makes a POST request.
5105
5107
  | srv | <code>Object</code> | Instance of the service |
5106
5108
  | entitySet | <code>String</code> | The entitySet you want to POST against. |
5107
5109
  | payload | <code>Object</code> | The payload for the POST-request. |
5110
+ | raw | <code>Boolean</code> | Response includes all header contents. |
5108
5111
 
5109
5112
  **Example**
5110
5113
  ```js
@@ -5229,10 +5232,11 @@ const pdfStream = await service.odata.readPdfFromDirectUrl(url, "username", "Pas
5229
5232
 
5230
5233
  * [.rest](#service.rest)
5231
5234
  * [.init([customConfig])](#service.rest.init) ⇒ <code>Object</code>
5232
- * [.get(uri, [options])](#service.rest.get) ⇒ <code>Object</code>
5233
- * [.post(uri, payload)](#service.rest.post) ⇒ <code>Object</code>
5234
- * [.delete(uri, options)](#service.rest.delete) ⇒ <code>Object</code>
5235
- * [.patch(uri, options)](#service.rest.patch) ⇒ <code>Object</code>
5235
+ * [.get(uri, [config])](#service.rest.get) ⇒ <code>Object</code>
5236
+ * [.post(uri, payload, [config])](#service.rest.post) ⇒ <code>Object</code>
5237
+ * [.delete(uri, [config])](#service.rest.delete) ⇒ <code>Object</code>
5238
+ * [.patch(uri, payload, [config])](#service.rest.patch) ⇒ <code>Object</code>
5239
+ * [.put(uri, payload, [config])](#service.rest.put) ⇒ <code>Object</code>
5236
5240
 
5237
5241
  <a name="service.rest.init"></a>
5238
5242
 
@@ -5258,25 +5262,26 @@ const axios = service.rest.init(customConfig);
5258
5262
  ```
5259
5263
  <a name="service.rest.get"></a>
5260
5264
 
5261
- #### rest.get(uri, [options]) ⇒ <code>Object</code>
5265
+ #### rest.get(uri, [config]) ⇒ <code>Object</code>
5262
5266
  makes a GET request.
5263
5267
 
5264
5268
  **Kind**: static method of [<code>rest</code>](#service.rest)
5265
5269
  **Returns**: <code>Object</code> - The response of the GET request.
5266
5270
 
5267
- | Param | Type | Default | Description |
5268
- | --- | --- | --- | --- |
5269
- | uri | <code>String</code> | | The uri to the data source you want to GET. |
5270
- | [options] | <code>Object</code> | <code>{}</code> | The options you want to specify for GET. |
5271
+ | Param | Type | Description |
5272
+ | --- | --- | --- |
5273
+ | uri | <code>String</code> | The uri to the data source you want to GET. |
5274
+ | [config] | <code>Object</code> | The config options for the request. |
5271
5275
 
5272
5276
  **Example**
5273
5277
  ```js
5274
5278
  const uri = https://api.predic8.de/shop/products/";
5275
5279
  let res = await service.rest.get(uri);
5280
+ common.assertion.expectEqual(res.data.title, "qmate-service");
5276
5281
  ```
5277
5282
  <a name="service.rest.post"></a>
5278
5283
 
5279
- #### rest.post(uri, payload) ⇒ <code>Object</code>
5284
+ #### rest.post(uri, payload, [config]) ⇒ <code>Object</code>
5280
5285
  makes a POST request.
5281
5286
 
5282
5287
  **Kind**: static method of [<code>rest</code>](#service.rest)
@@ -5286,14 +5291,27 @@ makes a POST request.
5286
5291
  | --- | --- | --- |
5287
5292
  | uri | <code>String</code> | The uri to the data source you want to POST against. |
5288
5293
  | payload | <code>Object</code> | The data you want to POST against your entity set. |
5294
+ | [config] | <code>Object</code> | The config options for the request. |
5289
5295
 
5290
5296
  **Example**
5291
5297
  ```js
5292
- let res = await service.rest.delete(`${browser.config.baseUrl}/posts/99`);
5298
+ const payload = {
5299
+ id: 99,
5300
+ title: "qmate-service",
5301
+ author: "marvin"
5302
+ };
5303
+ const config = {
5304
+ headers: {
5305
+ "X-CSRF-TOKEN": "<CSRF TOKEN>",
5306
+ "Cookie": "<COOKIE>",
5307
+ "Content-Type": "application/json"
5308
+ }
5309
+ };
5310
+ let res = await service.rest.post(`${browser.config.baseUrl}/posts/99`, payload, config);
5293
5311
  ```
5294
5312
  <a name="service.rest.delete"></a>
5295
5313
 
5296
- #### rest.delete(uri, options) ⇒ <code>Object</code>
5314
+ #### rest.delete(uri, [config]) ⇒ <code>Object</code>
5297
5315
  makes a DELETE request.
5298
5316
 
5299
5317
  **Kind**: static method of [<code>rest</code>](#service.rest)
@@ -5302,15 +5320,21 @@ makes a DELETE request.
5302
5320
  | Param | Type | Description |
5303
5321
  | --- | --- | --- |
5304
5322
  | uri | <code>String</code> | The uri to the data source you want to DELETE. |
5305
- | options | <code>Object</code> | The options you want to specify for DELETE. |
5323
+ | [config] | <code>Object</code> | The config options for the request. |
5306
5324
 
5307
5325
  **Example**
5308
5326
  ```js
5309
- let res = await service.rest.delete(`${browser.config.baseUrl}/posts/99`);
5327
+ const config = {
5328
+ auth: {
5329
+ "username": "<username>",
5330
+ "password": "<password>"
5331
+ }
5332
+ };
5333
+ let res = await service.rest.delete(`${browser.config.baseUrl}/posts/99`, config);
5310
5334
  ```
5311
5335
  <a name="service.rest.patch"></a>
5312
5336
 
5313
- #### rest.patch(uri, options) ⇒ <code>Object</code>
5337
+ #### rest.patch(uri, payload, [config]) ⇒ <code>Object</code>
5314
5338
  makes a PATCH request.
5315
5339
 
5316
5340
  **Kind**: static method of [<code>rest</code>](#service.rest)
@@ -5319,9 +5343,49 @@ makes a PATCH request.
5319
5343
  | Param | Type | Description |
5320
5344
  | --- | --- | --- |
5321
5345
  | uri | <code>String</code> | The uri to the data source you want to PATCH. |
5322
- | options | <code>Object</code> | The options you want to specify for PATCH. |
5346
+ | payload | <code>Object</code> | The data to be used for updating the entity. |
5347
+ | [config] | <code>Object</code> | The config options for the request. |
5323
5348
 
5324
5349
  **Example**
5325
5350
  ```js
5326
- let res = await service.rest.patch(`${browser.config.baseUrl}/posts/99`);
5351
+ const config = {
5352
+ auth: {
5353
+ "username": "<username>",
5354
+ "password": "<password>"
5355
+ }
5356
+ };
5357
+ const payload = {
5358
+ "title": "patched-qmate-service",
5359
+ "author": "qmate-tester"
5360
+ },
5361
+ let res = await service.rest.patch(`${browser.config.baseUrl}/posts/99`, payload, config);
5362
+ ```
5363
+ <a name="service.rest.put"></a>
5364
+
5365
+ #### rest.put(uri, payload, [config]) ⇒ <code>Object</code>
5366
+ makes a PUT request.
5367
+
5368
+ **Kind**: static method of [<code>rest</code>](#service.rest)
5369
+ **Returns**: <code>Object</code> - The response of the PUT request.
5370
+
5371
+ | Param | Type | Description |
5372
+ | --- | --- | --- |
5373
+ | uri | <code>String</code> | The uri to the data source you want to PUT. |
5374
+ | payload | <code>Object</code> | The data to be used for updating the entity. |
5375
+ | [config] | <code>Object</code> | The config options for the request. |
5376
+
5377
+ **Example**
5378
+ ```js
5379
+ const config = {
5380
+ auth: {
5381
+ "username": "<username>",
5382
+ "password": "<password>"
5383
+ }
5384
+ }
5385
+ const payload = {
5386
+ "id": 99,
5387
+ "title": "put-qmate-service",
5388
+ "author": "qmate-tester"
5389
+ },
5390
+ let res = await service.rest.put(`${browser.config.baseUrl}/posts/99`, payload, config);
5327
5391
  ```
package/docs/index.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # **Qmate** Service
2
- **Qmate Service** is a custom [WebdriverIO](https://webdriver.io/) service built in TypeScript for testing web applications and APIs.
2
+ **Qmate Service** is a custom [WebdriverIO](https://webdriver.io/) service for testing web applications and APIs.
3
3
 
4
4
  !!! warning
5
- The latest version of **WebdriverIO V8** is **not** yet supported.
5
+ The latest version of **WebdriverIO V8** is **not** yet supported. Support will follow soon.
6
6
 
7
7
  ## Main features
8
8
  The main features of this service are:
@@ -0,0 +1,21 @@
1
+ export interface BaseLogger {
2
+ log: (message: string) => void;
3
+ }
4
+ export declare class ActiveLogger implements BaseLogger {
5
+ private readonly invoker;
6
+ private readonly prefix;
7
+ constructor(invoker: Function, prefix: string);
8
+ log(message: string): void;
9
+ error(e: Error): void;
10
+ }
11
+ export declare class InactiveLogger implements BaseLogger {
12
+ log(_message: string): void;
13
+ }
14
+ export declare class VerboseLoggerFactory {
15
+ private readonly namespace;
16
+ private readonly moduleName;
17
+ private isActive;
18
+ private prefix;
19
+ constructor(namespace: string, moduleName: string);
20
+ initLog(invoker: Function): ActiveLogger | InactiveLogger;
21
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerboseLoggerFactory = exports.InactiveLogger = exports.ActiveLogger = void 0;
4
+ class ActiveLogger {
5
+ constructor(invoker, prefix) {
6
+ this.invoker = invoker;
7
+ this.prefix = prefix;
8
+ }
9
+ log(message) {
10
+ console.log(`${this.prefix}[${this.invoker.name}]: ${message}`);
11
+ }
12
+ error(e) {
13
+ console.log(`${this.prefix}[${this.invoker.name}]`);
14
+ throw e;
15
+ }
16
+ }
17
+ exports.ActiveLogger = ActiveLogger;
18
+ class InactiveLogger {
19
+ log(_message) {
20
+ return;
21
+ }
22
+ }
23
+ exports.InactiveLogger = InactiveLogger;
24
+ class VerboseLoggerFactory {
25
+ constructor(namespace, moduleName) {
26
+ this.namespace = namespace;
27
+ this.moduleName = moduleName;
28
+ this.isActive = process.env.QMATE_VERBOSE_MODE === "true" ? true : false;
29
+ this.prefix = `[${this.namespace}][${this.moduleName}]`;
30
+ }
31
+ initLog(invoker) {
32
+ if (!this.isActive)
33
+ return new InactiveLogger();
34
+ console.log(`${this.prefix}[${invoker.name}]: invoked`);
35
+ return new ActiveLogger(invoker, this.prefix);
36
+ }
37
+ }
38
+ exports.VerboseLoggerFactory = VerboseLoggerFactory;
39
+ //# sourceMappingURL=verboseLogger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verboseLogger.js","sourceRoot":"","sources":["../../../src/reuse/helper/verboseLogger.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;IACvB,YAA6B,OAAiB,EAAmB,MAAc;QAAlD,YAAO,GAAP,OAAO,CAAU;QAAmB,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAEnF,GAAG,CAAC,OAAe;QACjB,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,CAAQ;QACZ,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,CAAA;QACnD,MAAM,CAAC,CAAA;IACT,CAAC;CACF;AAXD,oCAWC;AAED,MAAa,cAAc;IACzB,GAAG,CAAC,QAAgB;QAClB,OAAO;IACT,CAAC;CACF;AAJD,wCAIC;AAED,MAAa,oBAAoB;IAI/B,YAA6B,SAAiB,EAAmB,UAAkB;QAAtD,cAAS,GAAT,SAAS,CAAQ;QAAmB,eAAU,GAAV,UAAU,CAAQ;QACjF,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACzE,IAAI,CAAC,MAAM,GAAG,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,UAAU,GAAG,CAAC;IAC1D,CAAC;IAED,OAAO,CAAC,OAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,cAAc,EAAE,CAAC;QAEhD,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,YAAY,CAAC,CAAC;QACxD,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACF;AAfD,oDAeC"}
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ // functions
7
+ const runner_1 = require("./runner/runner");
6
8
  // modules
7
9
  const Util_1 = __importDefault(require("./modules/util/Util"));
8
10
  const Common_1 = __importDefault(require("./modules/common/Common"));
@@ -13,6 +15,9 @@ const Service_1 = __importDefault(require("./modules/service/Service"));
13
15
  const authenticators_json_1 = __importDefault(require("./data/authenticators.json"));
14
16
  class ReuseLibrary {
15
17
  load() {
18
+ // Runner functions
19
+ // @ts-ignore
20
+ global.cit = runner_1.cit;
16
21
  /**
17
22
  * @global
18
23
  * @description Global namespace for common modules.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reuse/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,UAAU;AACV,+DAA4C;AAC5C,qEAAkD;AAClD,4DAAyC;AACzC,qEAAkD;AAClD,wEAAqD;AAErD,OAAO;AACP,qFAAwD;AAExD,MAAM,YAAY;IAChB,IAAI;QACF;;;WAGG;QACH,MAAM,MAAM,GAAG;YACb,SAAS,EAAE,gBAAW,CAAC,SAAS;YAChC,IAAI,EAAE,gBAAW,CAAC,IA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E,gBAAW,CAAC,SAAS;YAChC,OAAO,EAAE,gBAAW,CAAC,OAAO;YAC5B,UAAU,EAAE,gBAAW,CAAC,UAAU;YAClC,eAAe,EAAE,gBAAW,CAAC,eAAe;YAC5C,OAAO,EAAE,gBAAW,CAAC,OAAO;SAC7B,CAAC;QACF,MAAM,CAAC,MAAM,GAAG;YACd,GAAG,MAAM;YACT,GAAG,MAAM,CAAC,MAAM;SACjB,CAAC;QAEF;;;WAGG;QACH,MAAM,OAAO,GAAG;YACd,KAAK,EAAE,iBAAY,CAAC,KAAK;YACzB,IAAI,EAAE,iBAAY,CAAC,IAAI;SACxB,CAAC;QACF,MAAM,CAAC,OAAO,GAAG;YACf,GAAG,OAAO;YACV,GAAG,MAAM,CAAC,OAAO;SAClB,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,IAAI,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../../src/reuse/modules/common/Common.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAmD;AACnD,kDAA0C;AAC1C,8DAAsD;AACtD,wEAAqE;AAErE,MAAa,MAAM;IAAnB;QACI,cAAS,GAAc,mBAAS,CAAA;QAChC,SAAI,GAAe,cAAI,CAAA;QACvB,eAAU,GAAe,oBAAU,CAAA;QACnC,oBAAe,GAAoB,yBAAe,CAAA;IACtD,CAAC;CAAA;AALD,wBAKC;AAED,kBAAe,IAAI,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../../src/reuse/modules/common/Common.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAmD;AACnD,kDAA0C;AAC1C,8DAAsD;AACtD,wEAAqE;AAErE,MAAa,MAAM;IAAnB;QACE,cAAS,GAAc,mBAAS,CAAC;QACjC,SAAI,GAAe,cAAI,CAAC;QACxB,eAAU,GAAe,oBAAU,CAAC;QACpC,oBAAe,GAAoB,yBAAe,CAAC;IACrD,CAAC;CAAA;AALD,wBAKC;AAED,kBAAe,IAAI,MAAM,EAAE,CAAC"}
@@ -3,6 +3,7 @@
3
3
  * @memberof common
4
4
  */
5
5
  export declare class Assertion {
6
+ private vlf;
6
7
  /**
7
8
  * @function expectEqual
8
9
  * @memberOf common.assertion
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Assertion = void 0;
4
+ const verboseLogger_1 = require("../../helper/verboseLogger");
4
5
  /**
5
6
  * @class assertion
6
7
  * @memberof common
7
8
  */
8
9
  class Assertion {
10
+ constructor() {
11
+ this.vlf = new verboseLogger_1.VerboseLoggerFactory("common", "assertion");
12
+ }
9
13
  /**
10
14
  * @function expectEqual
11
15
  * @memberOf common.assertion
@@ -15,9 +19,10 @@ class Assertion {
15
19
  * @example common.assertion.expectEqual(value1, value2);
16
20
  */
17
21
  expectEqual(value1, value2) {
22
+ const vl = this.vlf.initLog(this.expectEqual);
23
+ vl.log(`Expecting ${value1} to be equal to ${value2}`);
18
24
  expect(value1).toEqual(value2);
19
25
  }
20
- ;
21
26
  /**
22
27
  * @function expectUnequal
23
28
  * @memberOf common.assertion
@@ -27,9 +32,10 @@ class Assertion {
27
32
  * @example common.assertion.expectUnequal(value1, value2);
28
33
  */
29
34
  expectUnequal(value1, value2) {
35
+ const vl = this.vlf.initLog(this.expectUnequal);
36
+ vl.log(`Expecting ${value1} not to be equal to ${value2}`);
30
37
  expect(value1).not.toEqual(value2);
31
38
  }
32
- ;
33
39
  /**
34
40
  * @function expectTrue
35
41
  * @memberOf common.assertion
@@ -38,9 +44,10 @@ class Assertion {
38
44
  * @example common.assertion.expectTrue(value);
39
45
  */
40
46
  expectTrue(value) {
47
+ const vl = this.vlf.initLog(this.expectUnequal);
48
+ vl.log(`Expecting ${value} to be true`);
41
49
  this.expectEqual(value, true);
42
50
  }
43
- ;
44
51
  /**
45
52
  * @function expectFalse
46
53
  * @memberOf common.assertion
@@ -49,9 +56,10 @@ class Assertion {
49
56
  * @example common.assertion.expectFalse(false);
50
57
  */
51
58
  expectFalse(value) {
59
+ const vl = this.vlf.initLog(this.expectFalse);
60
+ vl.log(`Expecting ${value} to be false`);
52
61
  this.expectEqual(value, false);
53
62
  }
54
- ;
55
63
  /**
56
64
  * @function expectDefined
57
65
  * @memberOf common.assertion
@@ -60,9 +68,10 @@ class Assertion {
60
68
  * @example common.assertion.expectDefined(value);
61
69
  */
62
70
  expectDefined(value) {
71
+ const vl = this.vlf.initLog(this.expectDefined);
72
+ vl.log(`Expecting ${value} to be defined`);
63
73
  expect(value).toBeDefined();
64
74
  }
65
- ;
66
75
  /**
67
76
  * @function expectUndefined
68
77
  * @memberOf common.assertion
@@ -71,9 +80,10 @@ class Assertion {
71
80
  * @example common.assertion.expectUndefined(value);
72
81
  */
73
82
  expectUndefined(value) {
83
+ const vl = this.vlf.initLog(this.expectUndefined);
84
+ vl.log(`Expecting ${value} to be undefined`);
74
85
  expect(value).toBeUndefined();
75
86
  }
76
- ;
77
87
  /**
78
88
  * @function expectUrlToBe
79
89
  * @memberOf common.assertion
@@ -81,11 +91,11 @@ class Assertion {
81
91
  * @example await common.assertion.expectUrlToBe("www.sap.com");
82
92
  */
83
93
  expectUrlToBe(urlExp) {
94
+ const vl = this.vlf.initLog(this.expectUrlToBe);
95
+ vl.log(`Expecting current url to be to be ${urlExp}`);
84
96
  return expect(browser.getUrl()).resolves.toBe(urlExp);
85
97
  }
86
- ;
87
98
  }
88
99
  exports.Assertion = Assertion;
89
- ;
90
100
  exports.default = new Assertion();
91
101
  //# sourceMappingURL=assertion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertion.js","sourceRoot":"","sources":["../../../../src/reuse/modules/common/assertion.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AACb;;;GAGG;AACH,MAAa,SAAS;IAEpB;;;;;;;OAOG;IACH,WAAW,CAAE,MAAW,EAAE,MAAW;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CA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gBAAgB,CAAC,CAAC;QAC3C,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,eAAe,CAAC,KAAU;QACxB,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAClD,EAAE,CAAC,GAAG,CAAC,aAAa,KAAK,kBAAkB,CAAC,CAAC;QAC7C,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,MAAc;QAC1B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,EAAE,CAAC,GAAG,CAAC,qCAAqC,MAAM,EAAE,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;CACF;AA9FD,8BA8FC;AACD,kBAAe,IAAI,SAAS,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"userInteraction.constants.js","sourceRoot":"","sources":["../../../../../src/reuse/modules/common/constants/userInteraction.constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAQX;AARD,WAAY,QAAQ;IAChB,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,yBAAa,CAAA;IACb,gCAAoB,CAAA;IACpB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,kCAAsB,CAAA;AAC1B,CAAC,EARW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAQnB"}
1
+ {"version":3,"file":"userInteraction.constants.js","sourceRoot":"","sources":["../../../../../src/reuse/modules/common/constants/userInteraction.constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,yBAAa,CAAA;IACb,gCAAoB,CAAA;IACpB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,kCAAsB,CAAA;AACxB,CAAC,EARW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAQnB"}
@@ -5,6 +5,7 @@ import { DateFormatsType } from "../util/types/formatter.types";
5
5
  * @memberof common
6
6
  */
7
7
  export declare class DateModule {
8
+ private vlf;
8
9
  /**
9
10
  * @function getToday
10
11
  * @memberOf common.date
@@ -74,7 +75,7 @@ export declare class DateModule {
74
75
  * @memberOf common.date
75
76
  * @description Calculates the date based on the input parameter and returns it in the given format.
76
77
  * @param {String} [date="today"] - Supported values: today, tomorrow, nextMonth, previousMonth, nextYear, previousYear
77
- * @param {String} [format="object"] - The expected format ("mm/dd/yyyy", "dd.mm.yyyy", "dd/mm/yyyy", "yyyymmdd", "yyyy/mm/dd", "datetime", "object").
78
+ * @param {String} [format="object"] - The expected format ("mm/dd/yyyy", "dd.mm.yyyy", "dd/mm/yyyy", "yyyymmdd", "yyyy/mm/dd", "mmm dd, yyyy", "mmm d, yyyy", "datetime", "object").
78
79
  * @returns {String} The calculated date in the given format.
79
80
  * @example const date = await common.date.calculate("today", "mm/dd/yyyy");
80
81
  */