@sap_oss/wdio-qmate-service 1.2.3 → 1.3.0

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 (37) hide show
  1. package/docs/doc.md +189 -51
  2. package/lib/reuse/index.js +3 -4
  3. package/lib/reuse/index.js.map +1 -1
  4. package/lib/reuse/modules/runtime/Runtime.d.ts +5 -0
  5. package/lib/reuse/modules/runtime/Runtime.js +11 -0
  6. package/lib/reuse/modules/runtime/Runtime.js.map +1 -0
  7. package/lib/reuse/modules/ui5/control.d.ts +18 -17
  8. package/lib/reuse/modules/ui5/control.js +21 -21
  9. package/lib/reuse/modules/ui5/control.js.map +1 -1
  10. package/lib/reuse/modules/ui5/types/ui5.types.d.ts +16 -0
  11. package/lib/reuse/modules/ui5/types/ui5.types.js +3 -0
  12. package/lib/reuse/modules/ui5/types/ui5.types.js.map +1 -0
  13. package/lib/reuse/modules/util/Util.d.ts +9 -7
  14. package/lib/reuse/modules/util/Util.js +2 -0
  15. package/lib/reuse/modules/util/Util.js.map +1 -1
  16. package/lib/reuse/modules/util/component.d.ts +25 -0
  17. package/lib/reuse/modules/util/component.js +67 -0
  18. package/lib/reuse/modules/util/component.js.map +1 -0
  19. package/lib/reuse/modules/util/data.d.ts +25 -5
  20. package/lib/reuse/modules/util/data.js +86 -15
  21. package/lib/reuse/modules/util/data.js.map +1 -1
  22. package/lib/scripts/hooks/beforeSession.js +4 -1
  23. package/lib/scripts/hooks/beforeSession.js.map +1 -1
  24. package/lib/scripts/hooks/utils/cycle.js +7 -1
  25. package/lib/scripts/hooks/utils/cycle.js.map +1 -1
  26. package/package.json +1 -1
  27. package/test/reuse/ui5/control/execute.spec.js +53 -1
  28. package/test/reuse/ui5/control/getAggregationProperty.spec.js +7 -2
  29. package/test/reuse/ui5/control/getAssociationProperty.spec.js +67 -1
  30. package/test/reuse/ui5/control/getBindingContextPathProperty.spec.js +8 -4
  31. package/test/reuse/ui5/control/getProperty.spec.js +6 -2
  32. package/test/reuse/ui5/control/getPropertyBinding.spec.js +8 -4
  33. package/test/reuse/util/data/customSourceData/test.json +3 -0
  34. package/test/reuse/util/data/customSourceData/test.secure.json +5 -0
  35. package/test/reuse/util/data/getData.spec.js +18 -1
  36. package/test/reuse/util/data/getSecureData.spec.js +18 -1
  37. package/test/reuse/util/data/test.data.conf.js +2 -1
package/docs/doc.md CHANGED
@@ -567,6 +567,12 @@ Global namespace for util modules.
567
567
  * [.switchToIframe(selector)](#util.browser.switchToIframe)
568
568
  * [.switchToDefaultContent()](#util.browser.switchToDefaultContent)
569
569
  * [.back()](#util.browser.back)
570
+ * [.data](#util.data)
571
+ * [.getData(filename, [source])](#util.data.getData) ⇒ <code>Object</code>
572
+ * [.getSecureData(filename, [source])](#util.data.getSecureData) ⇒ <code>Object</code>
573
+ * [.readDataFromFile(filePath)](#util.data.readDataFromFile) ⇒ <code>Object</code>
574
+ * [.writeDataToFile(filePath, data)](#util.data.writeDataToFile)
575
+ * [.decrypt(data)](#util.data.decrypt) ⇒ <code>Object</code>
570
576
  * [.console](#util.console)
571
577
  * [.log(message, [textColor], [backgroundColor], [brightness])](#util.console.log)
572
578
  * [.error(message)](#util.console.error)
@@ -574,9 +580,11 @@ Global namespace for util modules.
574
580
  * [.success(message)](#util.console.success)
575
581
  * [.info(message)](#util.console.info)
576
582
  * [.data](#util.data)
577
- * [.getData(filename)](#util.data.getData) ⇒ <code>String</code>
578
- * [.getSecureData(filename)](#util.data.getSecureData) ⇒ <code>String</code>
579
- * [.decrypt(data)](#util.data.decrypt) ⇒ <code>String</code>
583
+ * [.getData(filename, [source])](#util.data.getData) ⇒ <code>Object</code>
584
+ * [.getSecureData(filename, [source])](#util.data.getSecureData) ⇒ <code>Object</code>
585
+ * [.readDataFromFile(filePath)](#util.data.readDataFromFile) ⇒ <code>Object</code>
586
+ * [.writeDataToFile(filePath, data)](#util.data.writeDataToFile)
587
+ * [.decrypt(data)](#util.data.decrypt) ⇒ <code>Object</code>
580
588
  * [.file](#util.file)
581
589
  * [.upload(files, [selector])](#util.file.upload)
582
590
  * [.parsePdf(pdfStream, renderingMethod)](#util.file.parsePdf) ⇒ <code>String</code>
@@ -883,6 +891,100 @@ Go one step back in browser history.
883
891
  ```js
884
892
  await util.browser.back();
885
893
  ```
894
+ <a name="util.data"></a>
895
+
896
+ ### util.data
897
+ **Kind**: static class of [<code>util</code>](#util)
898
+
899
+ * [.data](#util.data)
900
+ * [.getData(filename, [source])](#util.data.getData) ⇒ <code>Object</code>
901
+ * [.getSecureData(filename, [source])](#util.data.getSecureData) ⇒ <code>Object</code>
902
+ * [.readDataFromFile(filePath)](#util.data.readDataFromFile) ⇒ <code>Object</code>
903
+ * [.writeDataToFile(filePath, data)](#util.data.writeDataToFile)
904
+ * [.decrypt(data)](#util.data.decrypt) ⇒ <code>Object</code>
905
+
906
+ <a name="util.data.getData"></a>
907
+
908
+ #### data.getData(filename, [source]) ⇒ <code>Object</code>
909
+ Returns the data object with the given filename (JSON, stored in data folder).
910
+
911
+ **Kind**: static method of [<code>data</code>](#util.data)
912
+ **Returns**: <code>Object</code> - The data object.
913
+
914
+ | Param | Type | Default | Description |
915
+ | --- | --- | --- | --- |
916
+ | filename | <code>String</code> | | The name of the data file. |
917
+ | [source] | <code>String</code> | <code>data</code> | The source key defined under params.import of the config file. |
918
+
919
+ **Example**
920
+ ```js
921
+ const data = util.data.getData("myTest");
922
+ ```
923
+ <a name="util.data.getSecureData"></a>
924
+
925
+ #### data.getSecureData(filename, [source]) ⇒ <code>Object</code>
926
+ Returns and encrypts the data object with the given filename (JSON, stored in data folder). Will return the local file object if private key is not accessible.
927
+
928
+ **Kind**: static method of [<code>data</code>](#util.data)
929
+ **Returns**: <code>Object</code> - The encrypted or local data object.
930
+
931
+ | Param | Type | Default | Description |
932
+ | --- | --- | --- | --- |
933
+ | filename | <code>String</code> | | The name of the data file (without suffix '.secure' or '.local'). |
934
+ | [source] | <code>String</code> | <code>data</code> | The source key defined under params.import of the config file. |
935
+
936
+ **Example**
937
+ ```js
938
+ const secureData = util.data.getSecureData("myTest");
939
+ ```
940
+ <a name="util.data.readDataFromFile"></a>
941
+
942
+ #### data.readDataFromFile(filePath) ⇒ <code>Object</code>
943
+ Reads the data object from the given filepath.
944
+
945
+ **Kind**: static method of [<code>data</code>](#util.data)
946
+ **Returns**: <code>Object</code> - The data object.
947
+
948
+ | Param | Type | Description |
949
+ | --- | --- | --- |
950
+ | filePath | <code>String</code> | The filepath. |
951
+
952
+ **Example**
953
+ ```js
954
+ const data = util.data.readDataFromFile("./data/myData.json");
955
+ ```
956
+ <a name="util.data.writeDataToFile"></a>
957
+
958
+ #### data.writeDataToFile(filePath, data)
959
+ Writes the data object to the given filepath.
960
+
961
+ **Kind**: static method of [<code>data</code>](#util.data)
962
+
963
+ | Param | Type | Description |
964
+ | --- | --- | --- |
965
+ | filePath | <code>String</code> | The filepath. |
966
+ | data | <code>Object</code> | The data object to write. |
967
+
968
+ **Example**
969
+ ```js
970
+ const data = util.data.writeDataToFile("myTest");
971
+ ```
972
+ <a name="util.data.decrypt"></a>
973
+
974
+ #### data.decrypt(data) ⇒ <code>Object</code>
975
+ Decrypts the passed input data.
976
+
977
+ **Kind**: static method of [<code>data</code>](#util.data)
978
+ **Returns**: <code>Object</code> - The decrypted data.
979
+
980
+ | Param | Type | Description |
981
+ | --- | --- | --- |
982
+ | data | <code>String</code> | The encrypted data to decrypt. |
983
+
984
+ **Example**
985
+ ```js
986
+ const decrypted = util.data.decrypt("d704004c262faa8ef4bdcf34c8a94883e15524872c7bef334d26a391a1934cf47338b749d99426980ee4cc7a81deaef21439c6894ab0324cdb29b9b6332635baca442651c5d37847f52bb90b8868e037271a7d456024b39b65fdf4dc62e8d82a3d5683a72e4324c59d339742fc79749f0ee74abef916d38e306218adc48e3547a2b346962249320c962d22cb46d9998de36d8219a2496c0997d0fc389f76fb1431a9b57c317886e9c9795c0a09ad98d9fa0b7687d10814dc7973397f3f72a227a04ead4c3d1d428c096a51922ffc4d7afc3952df1c130def5c5fb3e834605cbf1454885966cc65c77046343f4c678e74931fb2dd6cac8dae17837cf674f288d6550dd7fa6b01f5b7ea68aa6bd27d79dd5d53edb5fd4b4edce824bd31b3939352ad7a71a16bab8c54025c2bb92c54e022fcd23ff08bc54a17fc50d00dc3b884cadbfdefe1e75901fdf80e7324ad02a891f2c4863fa120ca238520b79126c65a03");
987
+ ```
886
988
  <a name="util.console"></a>
887
989
 
888
990
  ### util.console
@@ -979,21 +1081,24 @@ util.console.success("The document has been saved.");
979
1081
  **Kind**: static class of [<code>util</code>](#util)
980
1082
 
981
1083
  * [.data](#util.data)
982
- * [.getData(filename)](#util.data.getData) ⇒ <code>String</code>
983
- * [.getSecureData(filename)](#util.data.getSecureData) ⇒ <code>String</code>
984
- * [.decrypt(data)](#util.data.decrypt) ⇒ <code>String</code>
1084
+ * [.getData(filename, [source])](#util.data.getData) ⇒ <code>Object</code>
1085
+ * [.getSecureData(filename, [source])](#util.data.getSecureData) ⇒ <code>Object</code>
1086
+ * [.readDataFromFile(filePath)](#util.data.readDataFromFile) ⇒ <code>Object</code>
1087
+ * [.writeDataToFile(filePath, data)](#util.data.writeDataToFile)
1088
+ * [.decrypt(data)](#util.data.decrypt) ⇒ <code>Object</code>
985
1089
 
986
1090
  <a name="util.data.getData"></a>
987
1091
 
988
- #### data.getData(filename) ⇒ <code>String</code>
1092
+ #### data.getData(filename, [source]) ⇒ <code>Object</code>
989
1093
  Returns the data object with the given filename (JSON, stored in data folder).
990
1094
 
991
1095
  **Kind**: static method of [<code>data</code>](#util.data)
992
- **Returns**: <code>String</code> - The data object.
1096
+ **Returns**: <code>Object</code> - The data object.
993
1097
 
994
- | Param | Type | Description |
995
- | --- | --- | --- |
996
- | filename | <code>String</code> | The name of the data file. |
1098
+ | Param | Type | Default | Description |
1099
+ | --- | --- | --- | --- |
1100
+ | filename | <code>String</code> | | The name of the data file. |
1101
+ | [source] | <code>String</code> | <code>data</code> | The source key defined under params.import of the config file. |
997
1102
 
998
1103
  **Example**
999
1104
  ```js
@@ -1001,27 +1106,60 @@ const data = util.data.getData("myTest");
1001
1106
  ```
1002
1107
  <a name="util.data.getSecureData"></a>
1003
1108
 
1004
- #### data.getSecureData(filename) ⇒ <code>String</code>
1109
+ #### data.getSecureData(filename, [source]) ⇒ <code>Object</code>
1005
1110
  Returns and encrypts the data object with the given filename (JSON, stored in data folder). Will return the local file object if private key is not accessible.
1006
1111
 
1007
1112
  **Kind**: static method of [<code>data</code>](#util.data)
1008
- **Returns**: <code>String</code> - The encrypted or local data object.
1113
+ **Returns**: <code>Object</code> - The encrypted or local data object.
1114
+
1115
+ | Param | Type | Default | Description |
1116
+ | --- | --- | --- | --- |
1117
+ | filename | <code>String</code> | | The name of the data file (without suffix '.secure' or '.local'). |
1118
+ | [source] | <code>String</code> | <code>data</code> | The source key defined under params.import of the config file. |
1119
+
1120
+ **Example**
1121
+ ```js
1122
+ const secureData = util.data.getSecureData("myTest");
1123
+ ```
1124
+ <a name="util.data.readDataFromFile"></a>
1125
+
1126
+ #### data.readDataFromFile(filePath) ⇒ <code>Object</code>
1127
+ Reads the data object from the given filepath.
1128
+
1129
+ **Kind**: static method of [<code>data</code>](#util.data)
1130
+ **Returns**: <code>Object</code> - The data object.
1009
1131
 
1010
1132
  | Param | Type | Description |
1011
1133
  | --- | --- | --- |
1012
- | filename | <code>String</code> | The name of the data file (without suffix '.secure' or '.local'). |
1134
+ | filePath | <code>String</code> | The filepath. |
1013
1135
 
1014
1136
  **Example**
1015
1137
  ```js
1016
- const secureData = util.data.getSecureData("myTest");
1138
+ const data = util.data.readDataFromFile("./data/myData.json");
1139
+ ```
1140
+ <a name="util.data.writeDataToFile"></a>
1141
+
1142
+ #### data.writeDataToFile(filePath, data)
1143
+ Writes the data object to the given filepath.
1144
+
1145
+ **Kind**: static method of [<code>data</code>](#util.data)
1146
+
1147
+ | Param | Type | Description |
1148
+ | --- | --- | --- |
1149
+ | filePath | <code>String</code> | The filepath. |
1150
+ | data | <code>Object</code> | The data object to write. |
1151
+
1152
+ **Example**
1153
+ ```js
1154
+ const data = util.data.writeDataToFile("myTest");
1017
1155
  ```
1018
1156
  <a name="util.data.decrypt"></a>
1019
1157
 
1020
- #### data.decrypt(data) ⇒ <code>String</code>
1158
+ #### data.decrypt(data) ⇒ <code>Object</code>
1021
1159
  Decrypts the passed input data.
1022
1160
 
1023
1161
  **Kind**: static method of [<code>data</code>](#util.data)
1024
- **Returns**: <code>String</code> - The decrypted data.
1162
+ **Returns**: <code>Object</code> - The decrypted data.
1025
1163
 
1026
1164
  | Param | Type | Description |
1027
1165
  | --- | --- | --- |
@@ -1372,11 +1510,11 @@ Global namespace for UI5 modules.
1372
1510
  * [.clickRevokeApproval([timeout])](#ui5.confirmationDialog.clickRevokeApproval)
1373
1511
  * [.control](#ui5.control)
1374
1512
  * [.execute(callbackFunction, selectorOrElement, args)](#ui5.control.execute)
1375
- * [.getProperty(elem, propertyName)](#ui5.control.getProperty)
1376
- * [.getAggregationProperty(elem, propertyName)](#ui5.control.getAggregationProperty)
1377
- * [.getAssociationProperty(elem, propertyName)](#ui5.control.getAssociationProperty)
1378
- * [.getBindingContextPathProperty(elem)](#ui5.control.getBindingContextPathProperty)
1379
- * [.getPropertyBinding(elem, propertyName)](#ui5.control.getPropertyBinding) ⇒ <code>Array</code>
1513
+ * [.getProperty(selectorOrElement, propertyName)](#ui5.control.getProperty)
1514
+ * [.getAggregationProperty(selectorOrElement, propertyName)](#ui5.control.getAggregationProperty)
1515
+ * [.getAssociationProperty(selectorOrElement, propertyName)](#ui5.control.getAssociationProperty)
1516
+ * [.getBindingContextPathProperty(selectorOrElement)](#ui5.control.getBindingContextPathProperty)
1517
+ * [.getPropertyBinding(selectorOrElement, propertyName)](#ui5.control.getPropertyBinding) ⇒ <code>Array</code>
1380
1518
  * [.date](#ui5.date)
1381
1519
  * [.pick(selector, date, [index])](#ui5.date.pick)
1382
1520
  * [.pickRange(selector, range, [index])](#ui5.date.pickRange)
@@ -1444,7 +1582,7 @@ Global namespace for UI5 modules.
1444
1582
  * [.loginFiori(username, [password], [verify])](#ui5.session.loginFiori)
1445
1583
  * [.loginSapCloud(username, [password], [verify])](#ui5.session.loginSapCloud)
1446
1584
  * [.loginCustom(username, [password], usernameFieldSelector, passwordFieldSelector, logonButtonSelector, [verify])](#ui5.session.loginCustom)
1447
- * [.loginCustomViaConfig(username, password, [verify])](#ui5.session.loginCustomViaConfig)
1585
+ * [.loginCustomViaConfig(username, [password], [verify])](#ui5.session.loginCustomViaConfig)
1448
1586
  * [.logout([verify])](#ui5.session.logout)
1449
1587
  * [.switchUser(username, [password], [authenticator], [wait])](#ui5.session.switchUser)
1450
1588
  * [.expectLogoutText()](#ui5.session.expectLogoutText)
@@ -1922,11 +2060,11 @@ await ui5.confirmationDialog.clickRevokeApproval();
1922
2060
 
1923
2061
  * [.control](#ui5.control)
1924
2062
  * [.execute(callbackFunction, selectorOrElement, args)](#ui5.control.execute)
1925
- * [.getProperty(elem, propertyName)](#ui5.control.getProperty)
1926
- * [.getAggregationProperty(elem, propertyName)](#ui5.control.getAggregationProperty)
1927
- * [.getAssociationProperty(elem, propertyName)](#ui5.control.getAssociationProperty)
1928
- * [.getBindingContextPathProperty(elem)](#ui5.control.getBindingContextPathProperty)
1929
- * [.getPropertyBinding(elem, propertyName)](#ui5.control.getPropertyBinding) ⇒ <code>Array</code>
2063
+ * [.getProperty(selectorOrElement, propertyName)](#ui5.control.getProperty)
2064
+ * [.getAggregationProperty(selectorOrElement, propertyName)](#ui5.control.getAggregationProperty)
2065
+ * [.getAssociationProperty(selectorOrElement, propertyName)](#ui5.control.getAssociationProperty)
2066
+ * [.getBindingContextPathProperty(selectorOrElement)](#ui5.control.getBindingContextPathProperty)
2067
+ * [.getPropertyBinding(selectorOrElement, propertyName)](#ui5.control.getPropertyBinding) ⇒ <code>Array</code>
1930
2068
 
1931
2069
  <a name="ui5.control.execute"></a>
1932
2070
 
@@ -1938,7 +2076,7 @@ Executes a native UI5 action as callback function in the browser on the given UI
1938
2076
  | Param | Type | Description |
1939
2077
  | --- | --- | --- |
1940
2078
  | callbackFunction | <code>function</code> | The client script function to be used with the control instance. Caution: The first and last parameter is reserved for the mockserver instance and the promise resolve function - done. |
1941
- | selectorOrElement | <code>String</code> \| <code>Object</code> | The selector object or the dom element (retrieved from getDisplayedElement). |
2079
+ | selectorOrElement | <code>Element</code> \| <code>Ui5Selector</code> \| <code>Ui5SelectorWithOptions</code> | The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed). |
1942
2080
  | args | <code>Object</code> | An object containing the arguments to pass to the callback function. |
1943
2081
 
1944
2082
  **Example**
@@ -1951,81 +2089,81 @@ const title = await ui5.control.execute(function (control, args, done) {
1951
2089
  ```
1952
2090
  <a name="ui5.control.getProperty"></a>
1953
2091
 
1954
- #### control.getProperty(elem, propertyName)
2092
+ #### control.getProperty(selectorOrElement, propertyName)
1955
2093
  Gets the UI5 control property of the given element.
1956
2094
 
1957
2095
  **Kind**: static method of [<code>control</code>](#ui5.control)
1958
2096
 
1959
2097
  | Param | Type | Description |
1960
2098
  | --- | --- | --- |
1961
- | elem | <code>Object</code> | The element. |
2099
+ | selectorOrElement | <code>Element</code> \| <code>Ui5Selector</code> \| <code>Ui5SelectorWithOptions</code> | The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed) |
1962
2100
  | propertyName | <code>String</code> | The property name of the control to retrieve the value from. |
1963
2101
 
1964
2102
  **Example**
1965
2103
  ```js
1966
2104
  const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{ "title":[{"path":"CategoryName"}] }};
1967
- const elem = await ui5.element.getDisplayedElement(selector);
2105
+ const elem = await ui5.element.getDisplayed(selector);
1968
2106
  const propertyName = "title";
1969
2107
  const val = await ui5.control.getProperty(elem, propertyName);
1970
2108
  ```
1971
2109
  <a name="ui5.control.getAggregationProperty"></a>
1972
2110
 
1973
- #### control.getAggregationProperty(elem, propertyName)
2111
+ #### control.getAggregationProperty(selectorOrElement, propertyName)
1974
2112
  Gets the UI5 control aggregation property of the given element.
1975
2113
 
1976
2114
  **Kind**: static method of [<code>control</code>](#ui5.control)
1977
2115
 
1978
2116
  | Param | Type | Description |
1979
2117
  | --- | --- | --- |
1980
- | elem | <code>Object</code> | The element. |
2118
+ | selectorOrElement | <code>Element</code> \| <code>Ui5Selector</code> \| <code>Ui5SelectorWithOptions</code> | The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed) |
1981
2119
  | propertyName | <code>String</code> | The aggregation property name of the control to retrieve the value from. |
1982
2120
 
1983
2121
  **Example**
1984
2122
  ```js
1985
2123
  const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{ "items":[{"path":"/Categories"}] }};
1986
- const elem = await ui5.element.getDisplayedElement(selector);
2124
+ const elem = await ui5.element.getDisplayed(selector);
1987
2125
  const propertyName = "tooltip";
1988
2126
  const val = await ui5.control.getAggregationProperty(elem, propertyName);
1989
2127
  ```
1990
2128
  <a name="ui5.control.getAssociationProperty"></a>
1991
2129
 
1992
- #### control.getAssociationProperty(elem, propertyName)
2130
+ #### control.getAssociationProperty(selectorOrElement, propertyName)
1993
2131
  Get UI control property
1994
2132
 
1995
2133
  **Kind**: static method of [<code>control</code>](#ui5.control)
1996
2134
 
1997
2135
  | Param | Type | Description |
1998
2136
  | --- | --- | --- |
1999
- | elem | <code>Object</code> | The element. |
2137
+ | selectorOrElement | <code>Element</code> \| <code>Ui5Selector</code> \| <code>Ui5SelectorWithOptions</code> | The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed) |
2000
2138
  | propertyName | <code>String</code> | The association property name of the control to retrieve the value from. |
2001
2139
 
2002
2140
  **Example**
2003
2141
  ```js
2004
2142
  const selector = { "elementProperties":{"metadata":"sap.m.MultiComboBox","mProperties":{}};
2005
- const elem = await ui5.element.getDisplayedElement(selector);
2143
+ const elem = await ui5.element.getDisplayed(selector);
2006
2144
  const propertyName = "selectedItems";
2007
2145
  const propertyValue = await ui5.control.getAssociationProperty(elem, propertyName);
2008
2146
  ```
2009
2147
  <a name="ui5.control.getBindingContextPathProperty"></a>
2010
2148
 
2011
- #### control.getBindingContextPathProperty(elem)
2149
+ #### control.getBindingContextPathProperty(selectorOrElement)
2012
2150
  Get UI control binding context path
2013
2151
 
2014
2152
  **Kind**: static method of [<code>control</code>](#ui5.control)
2015
2153
 
2016
2154
  | Param | Type | Description |
2017
2155
  | --- | --- | --- |
2018
- | elem | <code>Object</code> | The element. |
2156
+ | selectorOrElement | <code>Element</code> \| <code>Ui5Selector</code> \| <code>Ui5SelectorWithOptions</code> | The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed) |
2019
2157
 
2020
2158
  **Example**
2021
2159
  ```js
2022
2160
  const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{"title":[{"path":"CategoryName"}] }};
2023
- const elem = await ui5.element.getDisplayedElement(selector);
2161
+ const elem = await ui5.element.getDisplayed(selector);
2024
2162
  const context = await ui5.control.getBindingContextPathProperty(elem);
2025
2163
  ```
2026
2164
  <a name="ui5.control.getPropertyBinding"></a>
2027
2165
 
2028
- #### control.getPropertyBinding(elem, propertyName) ⇒ <code>Array</code>
2166
+ #### control.getPropertyBinding(selectorOrElement, propertyName) ⇒ <code>Array</code>
2029
2167
  Get UI control property
2030
2168
 
2031
2169
  **Kind**: static method of [<code>control</code>](#ui5.control)
@@ -2033,13 +2171,13 @@ Get UI control property
2033
2171
 
2034
2172
  | Param | Type | Description |
2035
2173
  | --- | --- | --- |
2036
- | elem | <code>Object</code> | The element. |
2174
+ | selectorOrElement | <code>Element</code> \| <code>Ui5Selector</code> \| <code>Ui5SelectorWithOptions</code> | The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed) |
2037
2175
  | propertyName | <code>String</code> | The property name to retrieve from the control binding |
2038
2176
 
2039
2177
  **Example**
2040
2178
  ```js
2041
2179
  const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{ "title":[{"path":"CategoryName"}] }};
2042
- const elem = await ui5.element.getDisplayedElement(selector);
2180
+ const elem = await ui5.element.getDisplayed(selector);
2043
2181
  const propertyName = "title";
2044
2182
  const binding = await ui5.control.getPropertyBinding(elem, propertyName);
2045
2183
  ```
@@ -3086,7 +3224,7 @@ await ui5.qunit.executeTests("path/to/qunit.html");
3086
3224
  * [.loginFiori(username, [password], [verify])](#ui5.session.loginFiori)
3087
3225
  * [.loginSapCloud(username, [password], [verify])](#ui5.session.loginSapCloud)
3088
3226
  * [.loginCustom(username, [password], usernameFieldSelector, passwordFieldSelector, logonButtonSelector, [verify])](#ui5.session.loginCustom)
3089
- * [.loginCustomViaConfig(username, password, [verify])](#ui5.session.loginCustomViaConfig)
3227
+ * [.loginCustomViaConfig(username, [password], [verify])](#ui5.session.loginCustomViaConfig)
3090
3228
  * [.logout([verify])](#ui5.session.logout)
3091
3229
  * [.switchUser(username, [password], [authenticator], [wait])](#ui5.session.switchUser)
3092
3230
  * [.expectLogoutText()](#ui5.session.expectLogoutText)
@@ -3101,7 +3239,7 @@ Login with specific username and password. This function works for both fiori an
3101
3239
  | Param | Type | Default | Description |
3102
3240
  | --- | --- | --- | --- |
3103
3241
  | username | <code>String</code> | | The username. |
3104
- | [password] | <code>String</code> | <code>&quot;super-duper-sensitive-pw&quot;</code> | The password. |
3242
+ | [password] | <code>String</code> | | The password. |
3105
3243
  | [verify] | <code>Boolean</code> | <code>false</code> | Specifies if the function will check the shell header after logging in. |
3106
3244
  | [timeout] | <code>Number</code> | <code>30000</code> | The timeout to wait (ms). |
3107
3245
 
@@ -3123,7 +3261,7 @@ Login with fioriForm and specific username and password.
3123
3261
  | Param | Type | Default | Description |
3124
3262
  | --- | --- | --- | --- |
3125
3263
  | username | <code>String</code> | | The username. |
3126
- | [password] | <code>String</code> | <code>&quot;super-duper-sensitive-pw&quot;</code> | The password. |
3264
+ | [password] | <code>String</code> | | The password. |
3127
3265
  | [verify] | <code>Boolean</code> | <code>false</code> | Specifies if the function will check the shell header after logging in. |
3128
3266
 
3129
3267
  **Example**
@@ -3140,7 +3278,7 @@ Login with sapCloud form and specific username and password.
3140
3278
  | Param | Type | Default | Description |
3141
3279
  | --- | --- | --- | --- |
3142
3280
  | username | <code>String</code> | | The username. |
3143
- | [password] | <code>String</code> | <code>&quot;super-duper-sensitive-pw&quot;</code> | The password. |
3281
+ | [password] | <code>String</code> | | The password. |
3144
3282
  | [verify] | <code>Boolean</code> | <code>false</code> | Specifies if the function will check the shell header after logging in. |
3145
3283
 
3146
3284
  **Example**
@@ -3169,7 +3307,7 @@ await ui5.session.loginCustom("JOHN_DOE", "abc123!", "#username", #password, "#l
3169
3307
  ```
3170
3308
  <a name="ui5.session.loginCustomViaConfig"></a>
3171
3309
 
3172
- #### session.loginCustomViaConfig(username, password, [verify])
3310
+ #### session.loginCustomViaConfig(username, [password], [verify])
3173
3311
  Login with specific username and password. The selectors will be taken from the config.
3174
3312
 
3175
3313
  **Kind**: static method of [<code>session</code>](#ui5.session)
@@ -3177,7 +3315,7 @@ Login with specific username and password. The selectors will be taken from the
3177
3315
  | Param | Type | Default | Description |
3178
3316
  | --- | --- | --- | --- |
3179
3317
  | username | <code>String</code> | | The username. Can be specified in spec or config. If specified in both credentials will be taken from config. |
3180
- | password | <code>String</code> | <code>&quot;super-duper-sensitive-pw&quot;</code> | The password. Can be specified in spec or config. If specified in both credentials will be taken from config. |
3318
+ | [password] | <code>String</code> | | The password. Can be specified in spec or config. If specified in both credentials will be taken from config. |
3181
3319
  | [verify] | <code>Boolean</code> | <code>false</code> | Specifies if the function will check the shell header after logging in. |
3182
3320
 
3183
3321
  **Example**
@@ -3230,7 +3368,7 @@ switches the user according to the passed username and password.
3230
3368
  | Param | Type | Default | Description |
3231
3369
  | --- | --- | --- | --- |
3232
3370
  | username | <code>String</code> | | The username. |
3233
- | [password] | <code>String</code> | <code>&quot;super-duper-sensitive-pw&quot;</code> | The password. |
3371
+ | [password] | <code>String</code> | | The password. |
3234
3372
  | [authenticator] | <code>Object</code> | | The login form type. Set to null to use generic login. |
3235
3373
  | [wait] | <code>Number</code> | <code>10000</code> | The waiting time between logout and login (ms). |
3236
3374
 
@@ -38,7 +38,8 @@ class ReuseLibrary {
38
38
  file: Util_1.default.file,
39
39
  formatter: Util_1.default.formatter,
40
40
  function: Util_1.default.function,
41
- system: Util_1.default.system
41
+ system: Util_1.default.system,
42
+ component: Util_1.default.component
42
43
  };
43
44
  global.util = {
44
45
  ...util,
@@ -64,7 +65,7 @@ class ReuseLibrary {
64
65
  userInteraction: Ui5_1.default.userInteraction,
65
66
  qunit: Ui5_1.default.qunit,
66
67
  // data
67
- authenticators: authenticators_json_1.default,
68
+ authenticators: authenticators_json_1.default
68
69
  };
69
70
  global.ui5 = {
70
71
  ...ui5,
@@ -97,8 +98,6 @@ class ReuseLibrary {
97
98
  ...global.service
98
99
  };
99
100
  }
100
- ;
101
101
  }
102
- ;
103
102
  exports.default = new ReuseLibrary();
104
103
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reuse/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,UAAU;AACV,+DAA2C;AAC3C,qEAAiD;AACjD,4DAAyC;AACzC,qEAAkD;AAClD,wEAAoD;AAEpD,OAAO;AACP,qFAAuD;AAEvD,MAAM,YAAY;IAChB,IAAI;QAEF;;;WAGG;QACH,MAAM,MAAM,GAAG;YACb,SAAS,EAAE,gBAAW,CAAC,SAAS;YAChC,IAAI,EAAE,gBAAW,CAAC,IAAI;YACtB,UAAU,EAAE,gBAAW,CAAC,UAAU;YAClC,eAAe,EAAE,gBAAW,CAAC,eAAe;SAC7C,CAAC;QACF,MAAM,CAAC,MAAM,GAAG;YACd,GAAG,MAAM;YACT,GAAG,MAAM,CAAC,MAAM;SACjB,CAAC;QAEF;;;WAGG;QACH,MAAM,IAAI,GAAG;YACX,OAAO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C,OAAO,GAAG;YACf,GAAG,OAAO;YACV,GAAG,MAAM,CAAC,OAAO;SAClB,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,IAAI,YAAY,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare class Runtime {
2
+ specs: string[];
3
+ }
4
+ declare const _default: Runtime;
5
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Runtime = void 0;
4
+ class Runtime {
5
+ constructor() {
6
+ this.specs = [];
7
+ }
8
+ }
9
+ exports.Runtime = Runtime;
10
+ exports.default = new Runtime();
11
+ //# sourceMappingURL=Runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../../../src/reuse/modules/runtime/Runtime.ts"],"names":[],"mappings":";;;AAAA,MAAa,OAAO;IAApB;QACS,UAAK,GAAa,EAAE,CAAC;IAC9B,CAAC;CAAA;AAFD,0BAEC;AAED,kBAAe,IAAI,OAAO,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Element } from "../../../../@types/wdio";
2
+ import { Ui5Selector, Ui5SelectorWithOptions } from "./types/ui5.types";
2
3
  /**
3
4
  * @class control
4
5
  * @memberof ui5
@@ -12,7 +13,7 @@ export declare class Control {
12
13
  * @description Executes a native UI5 action as callback function in the browser on the given UI5 control.
13
14
  * @param {Function} callbackFunction - The client script function to be used with the control instance.
14
15
  * Caution: The first and last parameter is reserved for the mockserver instance and the promise resolve function - done.
15
- * @param {String | Object} selectorOrElement - The selector object or the dom element (retrieved from getDisplayedElement).
16
+ * @param {Element | Ui5Selector | Ui5SelectorWithOptions} selectorOrElement - The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed).
16
17
  * @param {Object} args - An object containing the arguments to pass to the callback function.
17
18
  * @example const selector = {"elementProperties":{"metadata":"sap.m.StandardListItem", "id": "*categoryList-7"}};
18
19
  * const args = {"property": "text"};
@@ -20,66 +21,66 @@ export declare class Control {
20
21
  * done(control.getProperty(args.property));
21
22
  * }, selector, args);
22
23
  **/
23
- execute(callbackFunction: Function, selectorOrElement: any, args?: any): Promise<any>;
24
+ execute(callbackFunction: Function, selectorOrElement: Element | Ui5Selector | Ui5SelectorWithOptions, args?: any): Promise<any>;
24
25
  /**
25
26
  * @function getProperty
26
27
  * @memberOf ui5.control
27
28
  * @description Gets the UI5 control property of the given element.
28
- * @param {Object} elem - The element.
29
+ * @param {Element | Ui5Selector | Ui5SelectorWithOptions} selectorOrElement - The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed)
29
30
  * @param {String} propertyName - The property name of the control to retrieve the value from.
30
31
  * @example const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{ "title":[{"path":"CategoryName"}] }};
31
- * const elem = await ui5.element.getDisplayedElement(selector);
32
+ * const elem = await ui5.element.getDisplayed(selector);
32
33
  * const propertyName = "title";
33
34
  * const val = await ui5.control.getProperty(elem, propertyName);
34
35
  **/
35
- getProperty(elem: Element, propertyName: string): Promise<any>;
36
+ getProperty(selectorOrElement: Element | Ui5Selector | Ui5SelectorWithOptions, propertyName: string): Promise<any>;
36
37
  /**
37
38
  * @function getAggregationProperty
38
39
  * @memberOf ui5.control
39
40
  * @description Gets the UI5 control aggregation property of the given element.
40
- * @param {Object} elem - The element.
41
+ * @param {Element | Ui5Selector | Ui5SelectorWithOptions} selectorOrElement - The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed)
41
42
  * @param {String} propertyName - The aggregation property name of the control to retrieve the value from.
42
43
  * @example const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{ "items":[{"path":"/Categories"}] }};
43
- * const elem = await ui5.element.getDisplayedElement(selector);
44
+ * const elem = await ui5.element.getDisplayed(selector);
44
45
  * const propertyName = "tooltip";
45
46
  * const val = await ui5.control.getAggregationProperty(elem, propertyName);
46
47
  **/
47
- getAggregationProperty(elem: Element, propertyName: string): Promise<any>;
48
+ getAggregationProperty(selectorOrElement: Element | Ui5Selector | Ui5SelectorWithOptions, propertyName: string): Promise<any>;
48
49
  /**
49
50
  * @function getAssociationProperty
50
51
  * @memberOf ui5.control
51
52
  * @description Get UI control property
52
- * @param {Object} elem - The element.
53
+ * @param {Element | Ui5Selector | Ui5SelectorWithOptions} selectorOrElement - The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed)
53
54
  * @param {String} propertyName - The association property name of the control to retrieve the value from.
54
55
  * @example const selector = { "elementProperties":{"metadata":"sap.m.MultiComboBox","mProperties":{}};
55
- * const elem = await ui5.element.getDisplayedElement(selector);
56
+ * const elem = await ui5.element.getDisplayed(selector);
56
57
  * const propertyName = "selectedItems";
57
58
  * const propertyValue = await ui5.control.getAssociationProperty(elem, propertyName);
58
59
  **/
59
- getAssociationProperty(elem: Element, propertyName: string): Promise<any>;
60
+ getAssociationProperty(selectorOrElement: Element | Ui5Selector | Ui5SelectorWithOptions, propertyName: string): Promise<any>;
60
61
  /**
61
62
  * @function getBindingContextPathProperty
62
63
  * @memberOf ui5.control
63
64
  * @description Get UI control binding context path
64
- * @param {Object} elem - The element.
65
+ * @param {Element | Ui5Selector | Ui5SelectorWithOptions} selectorOrElement - The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed)
65
66
  * @example const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{"title":[{"path":"CategoryName"}] }};
66
- * const elem = await ui5.element.getDisplayedElement(selector);
67
+ * const elem = await ui5.element.getDisplayed(selector);
67
68
  * const context = await ui5.control.getBindingContextPathProperty(elem);
68
69
  **/
69
- getBindingContextPathProperty(elem: Element): Promise<any>;
70
+ getBindingContextPathProperty(selectorOrElement: Element | Ui5Selector | Ui5SelectorWithOptions): Promise<any>;
70
71
  /**
71
72
  * @function getPropertyBinding
72
73
  * @memberOf ui5.control
73
74
  * @description Get UI control property
74
- * @param {Object} elem - The element.
75
+ * @param {Element | Ui5Selector | Ui5SelectorWithOptions} selectorOrElement - The selector object, selector with options (selector, index, timeout) or the dom element (retrieved from ui5.element.getDisplayed)
75
76
  * @param {String} propertyName - The property name to retrieve from the control binding
76
77
  * @returns {Array} Array of bindings for the specific property
77
78
  * @example const selector = { "elementProperties":{"metadata":"sap.m.StandardListItem","mProperties":{ "title":[{"path":"CategoryName"}] }};
78
- * const elem = await ui5.element.getDisplayedElement(selector);
79
+ * const elem = await ui5.element.getDisplayed(selector);
79
80
  * const propertyName = "title";
80
81
  * const binding = await ui5.control.getPropertyBinding(elem, propertyName);
81
82
  **/
82
- getPropertyBinding(elem: Element, propertyName: string): Promise<any>;
83
+ getPropertyBinding(selectorOrElement: Element | Ui5Selector | Ui5SelectorWithOptions, propertyName: string): Promise<any>;
83
84
  }
84
85
  declare const _default: Control;
85
86
  export default _default;