@globisnv/cypress-core 0.0.2 → 0.0.3
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.
- package/README.md +12 -7
- package/dist/apiMethods/IGS_request.d.ts +98 -0
- package/dist/apiMethods/IGS_request.js +161 -0
- package/dist/apiMethods/IGS_response.d.ts +47 -0
- package/dist/apiMethods/IGS_response.js +1 -0
- package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
- package/dist/blueprints/GLO_addressPopup.js +96 -0
- package/dist/blueprints/GLO_article.d.ts +45 -0
- package/dist/blueprints/GLO_article.js +110 -0
- package/dist/blueprints/GLO_articleLot.d.ts +12 -0
- package/dist/blueprints/GLO_articleLot.js +23 -0
- package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
- package/dist/blueprints/GLO_articleVersion.js +4 -0
- package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
- package/dist/blueprints/GLO_attachmentPopup.js +10 -0
- package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
- package/dist/blueprints/GLO_bankAccount.js +7 -0
- package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
- package/dist/blueprints/GLO_billingProcess.js +4 -0
- package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
- package/dist/blueprints/GLO_billingProposal.js +9 -0
- package/dist/blueprints/GLO_cancel.d.ts +7 -0
- package/dist/blueprints/GLO_cancel.js +7 -0
- package/dist/blueprints/GLO_commandlist.d.ts +10 -0
- package/dist/blueprints/GLO_commandlist.js +10 -0
- package/dist/blueprints/GLO_complaint.d.ts +27 -0
- package/dist/blueprints/GLO_complaint.js +51 -0
- package/dist/blueprints/GLO_composition.d.ts +14 -0
- package/dist/blueprints/GLO_composition.js +20 -0
- package/dist/blueprints/GLO_consignment.d.ts +61 -0
- package/dist/blueprints/GLO_consignment.js +104 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
- package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
- package/dist/blueprints/GLO_consignmentGoods.js +62 -0
- package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
- package/dist/blueprints/GLO_consignmentHandling.js +4 -0
- package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
- package/dist/blueprints/GLO_consignmentOrder.js +37 -0
- package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
- package/dist/blueprints/GLO_consignmentPart.js +13 -0
- package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
- package/dist/blueprints/GLO_consignmentParts.js +12 -0
- package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
- package/dist/blueprints/GLO_consignmentPrice.js +19 -0
- package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
- package/dist/blueprints/GLO_contacts.d.ts +10 -0
- package/dist/blueprints/GLO_contacts.js +14 -0
- package/dist/blueprints/GLO_container.d.ts +6 -0
- package/dist/blueprints/GLO_container.js +4 -0
- package/dist/blueprints/GLO_contract.d.ts +22 -0
- package/dist/blueprints/GLO_contract.js +30 -0
- package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
- package/dist/blueprints/GLO_contractArticle.js +35 -0
- package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
- package/dist/blueprints/GLO_contractArticleCost.js +8 -0
- package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
- package/dist/blueprints/GLO_countryVatZone.js +9 -0
- package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
- package/dist/blueprints/GLO_currencyDeviation.js +15 -0
- package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
- package/dist/blueprints/GLO_customerArticle.js +15 -0
- package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
- package/dist/blueprints/GLO_customsFlow.js +19 -0
- package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
- package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
- package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
- package/dist/blueprints/GLO_customsUnion.js +4 -0
- package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
- package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
- package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
- package/dist/blueprints/GLO_departureSchedule.js +57 -0
- package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
- package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
- package/dist/blueprints/GLO_document.d.ts +7 -0
- package/dist/blueprints/GLO_document.js +7 -0
- package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
- package/dist/blueprints/GLO_documentAttachment.js +4 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
- package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
- package/dist/blueprints/GLO_documentGroup.js +4 -0
- package/dist/blueprints/GLO_documentType.d.ts +12 -0
- package/dist/blueprints/GLO_documentType.js +11 -0
- package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
- package/dist/blueprints/GLO_enterCountry.js +47 -0
- package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
- package/dist/blueprints/GLO_enterDiscount.js +9 -0
- package/dist/blueprints/GLO_equipment.d.ts +34 -0
- package/dist/blueprints/GLO_equipment.js +55 -0
- package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
- package/dist/blueprints/GLO_equipmentCategory.js +14 -0
- package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
- package/dist/blueprints/GLO_equipmentEntity.js +5 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
- package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
- package/dist/blueprints/GLO_equipmentType.js +20 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
- package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
- package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
- package/dist/blueprints/GLO_formula.d.ts +9 -0
- package/dist/blueprints/GLO_formula.js +9 -0
- package/dist/blueprints/GLO_gang.d.ts +12 -0
- package/dist/blueprints/GLO_gang.js +12 -0
- package/dist/blueprints/GLO_holiday.d.ts +7 -0
- package/dist/blueprints/GLO_holiday.js +8 -0
- package/dist/blueprints/GLO_journey.d.ts +18 -0
- package/dist/blueprints/GLO_journey.js +24 -0
- package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
- package/dist/blueprints/GLO_journeyStop.js +44 -0
- package/dist/blueprints/GLO_layout.d.ts +6 -0
- package/dist/blueprints/GLO_layout.js +6 -0
- package/dist/blueprints/GLO_logging.d.ts +9 -0
- package/dist/blueprints/GLO_logging.js +12 -0
- package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
- package/dist/blueprints/GLO_logisticConnection.js +11 -0
- package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
- package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
- package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
- package/dist/blueprints/GLO_logisticContract.js +80 -0
- package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
- package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
- package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
- package/dist/blueprints/GLO_logisticContractItem.js +40 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
- package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractReference.js +4 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
- package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
- package/dist/blueprints/GLO_logisticLocation.js +7 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
- package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
- package/dist/blueprints/GLO_operationalDefault.js +25 -0
- package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
- package/dist/blueprints/GLO_outputDetailMail.js +13 -0
- package/dist/blueprints/GLO_postalcode.d.ts +6 -0
- package/dist/blueprints/GLO_postalcode.js +6 -0
- package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
- package/dist/blueprints/GLO_priceDependency.js +4 -0
- package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
- package/dist/blueprints/GLO_priceEntry.js +17 -0
- package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
- package/dist/blueprints/GLO_priceRequest.js +20 -0
- package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
- package/dist/blueprints/GLO_priceRequestLine.js +17 -0
- package/dist/blueprints/GLO_principal.d.ts +9 -0
- package/dist/blueprints/GLO_principal.js +13 -0
- package/dist/blueprints/GLO_printPopup.d.ts +10 -0
- package/dist/blueprints/GLO_printPopup.js +62 -0
- package/dist/blueprints/GLO_production.d.ts +9 -0
- package/dist/blueprints/GLO_production.js +9 -0
- package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
- package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
- package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
- package/dist/blueprints/GLO_productionMaterial.js +5 -0
- package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
- package/dist/blueprints/GLO_purchaseCosts.js +9 -0
- package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
- package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
- package/dist/blueprints/GLO_purchaseOrder.js +25 -0
- package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
- package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
- package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
- package/dist/blueprints/GLO_purchasePrices.js +10 -0
- package/dist/blueprints/GLO_quotation.d.ts +12 -0
- package/dist/blueprints/GLO_quotation.js +32 -0
- package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
- package/dist/blueprints/GLO_quotationLine.js +28 -0
- package/dist/blueprints/GLO_receipt.d.ts +13 -0
- package/dist/blueprints/GLO_receipt.js +17 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
- package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
- package/dist/blueprints/GLO_receiptLine.js +28 -0
- package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
- package/dist/blueprints/GLO_relationAddress.js +58 -0
- package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
- package/dist/blueprints/GLO_relationBankAccount.js +9 -0
- package/dist/blueprints/GLO_relationContact.d.ts +23 -0
- package/dist/blueprints/GLO_relationContact.js +45 -0
- package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
- package/dist/blueprints/GLO_relationGroupType.js +6 -0
- package/dist/blueprints/GLO_relations.d.ts +67 -0
- package/dist/blueprints/GLO_relations.js +186 -0
- package/dist/blueprints/GLO_relationtype.d.ts +15 -0
- package/dist/blueprints/GLO_relationtype.js +31 -0
- package/dist/blueprints/GLO_remarkType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkType.js +9 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
- package/dist/blueprints/GLO_representative.d.ts +7 -0
- package/dist/blueprints/GLO_representative.js +6 -0
- package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoice.js +15 -0
- package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrder.js +25 -0
- package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrderLine.js +34 -0
- package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
- package/dist/blueprints/GLO_stockCorrection.js +24 -0
- package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
- package/dist/blueprints/GLO_stopSchedule.js +4 -0
- package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
- package/dist/blueprints/GLO_supplierArticle.js +8 -0
- package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
- package/dist/blueprints/GLO_tclSetting.js +6 -0
- package/dist/blueprints/GLO_todo.d.ts +10 -0
- package/dist/blueprints/GLO_todo.js +21 -0
- package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
- package/dist/blueprints/GLO_todoSchedule.js +79 -0
- package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
- package/dist/blueprints/GLO_tractionDistance.js +6 -0
- package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
- package/dist/blueprints/GLO_transportOrder.js +4 -0
- package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
- package/dist/blueprints/GLO_transportPrice.js +34 -0
- package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
- package/dist/blueprints/GLO_transportRequirement.js +32 -0
- package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
- package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
- package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
- package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
- package/dist/blueprints/GLO_transportStock.d.ts +4 -0
- package/dist/blueprints/GLO_transportStock.js +4 -0
- package/dist/blueprints/GLO_visit.d.ts +9 -0
- package/dist/blueprints/GLO_visit.js +10 -0
- package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
- package/dist/blueprints/GLO_warehouseMove.js +9 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
- package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
- package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
- package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
- package/dist/blueprints/GLO_workflowVerification.js +19 -0
- package/dist/blueprints/GLO_zone.d.ts +9 -0
- package/dist/blueprints/GLO_zone.js +9 -0
- package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
- package/dist/blueprints/GLO_zone_postalcode.js +10 -0
- package/dist/blueprints/GLO_zone_type.d.ts +8 -0
- package/dist/blueprints/GLO_zone_type.js +7 -0
- package/dist/blueprints/GLT_goods.d.ts +2 -0
- package/dist/blueprints/GLT_goods.js +12 -0
- package/dist/commands/FOB_commands.d.ts +124 -0
- package/dist/commands/FOB_commands.js +211 -0
- package/dist/commands/GLJ_commands.d.ts +28 -0
- package/dist/commands/GLJ_commands.js +40 -0
- package/dist/commands/GLO_commands.d.ts +685 -0
- package/dist/commands/GLO_commands.js +2321 -0
- package/dist/commands/GLS_commands.d.ts +63 -0
- package/dist/commands/GLS_commands.js +103 -0
- package/dist/commands/GLT_commands.d.ts +78 -0
- package/dist/commands/GLT_commands.js +148 -0
- package/dist/commands/POR_commands.d.ts +85 -0
- package/dist/commands/POR_commands.js +122 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.js +115 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -0
- package/dist/plugins/prometheusWriter.d.ts +15 -0
- package/dist/plugins/prometheusWriter.js +111 -0
- package/dist/register.d.ts +8 -0
- package/dist/register.js +23 -0
- package/dist/tsHelper.d.ts +161 -0
- package/dist/tsHelper.js +294 -0
- package/dist/types.d.ts +363 -0
- package/dist/types.js +4 -0
- package/dist/websocketDetector.d.ts +71 -0
- package/dist/websocketDetector.js +1593 -0
- package/package.json +10 -2
- package/template/package.json +1 -1
package/dist/config.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { defineConfig } from 'cypress';
|
|
2
|
+
const browserSettings = (browser, launchOptions) => {
|
|
3
|
+
console.log('launching browser %s', browser.name);
|
|
4
|
+
const width = 1920;
|
|
5
|
+
const height = 1080;
|
|
6
|
+
console.log('setting the browser window size to %d x %d', width, height);
|
|
7
|
+
if (browser.name === 'chrome' && browser.isHeadless) {
|
|
8
|
+
launchOptions.args.push(`--window-size=${width},${height}`);
|
|
9
|
+
// Force screen to be non-retina and just use our given resolution
|
|
10
|
+
launchOptions.args.push('--force-device-scale-factor=1');
|
|
11
|
+
}
|
|
12
|
+
if (browser.name === 'electron' && browser.isHeadless) {
|
|
13
|
+
// Might not work on CI for some reason
|
|
14
|
+
launchOptions.preferences.width = width;
|
|
15
|
+
launchOptions.preferences.height = height;
|
|
16
|
+
}
|
|
17
|
+
if (browser.name === 'firefox' && browser.isHeadless) {
|
|
18
|
+
launchOptions.args.push(`--width=${width}`);
|
|
19
|
+
launchOptions.args.push(`--height=${height}`);
|
|
20
|
+
}
|
|
21
|
+
if (browser.name === 'chrome' && browser.isHeaded) {
|
|
22
|
+
launchOptions.args.push(`--window-size=${width},${height}`);
|
|
23
|
+
launchOptions.args.push('--auto-open-devtools-for-tabs');
|
|
24
|
+
}
|
|
25
|
+
return launchOptions;
|
|
26
|
+
};
|
|
27
|
+
export function defineGlobisConfig(overrides = {}) {
|
|
28
|
+
const wsMetricsBuffer = [];
|
|
29
|
+
return defineConfig({
|
|
30
|
+
allowCypressEnv: false,
|
|
31
|
+
e2e: {
|
|
32
|
+
videosFolder: 'cypress/videos',
|
|
33
|
+
screenshotsFolder: 'cypress/screenshots',
|
|
34
|
+
video: true,
|
|
35
|
+
viewportWidth: 1920,
|
|
36
|
+
viewportHeight: 1080,
|
|
37
|
+
videoCompression: false,
|
|
38
|
+
responseTimeout: 120000,
|
|
39
|
+
modifyObstructiveCode: false,
|
|
40
|
+
experimentalMemoryManagement: true,
|
|
41
|
+
numTestsKeptInMemory: Number(process.env.numTestsKeptInMemory ?? 0),
|
|
42
|
+
scrollBehavior: 'center',
|
|
43
|
+
...overrides.e2e,
|
|
44
|
+
setupNodeEvents(on, config) {
|
|
45
|
+
// Sensitive keys never get exposed to the browser via config.expose.
|
|
46
|
+
const sensitiveEnvKeys = new Set(['password', 'password2', 'api_key', 'QLIKURLS', 'S3_KEY', 'S3_SECRET']);
|
|
47
|
+
for (const [key, val] of Object.entries(config.env)) {
|
|
48
|
+
if (!sensitiveEnvKeys.has(key))
|
|
49
|
+
config.expose[key] = val;
|
|
50
|
+
}
|
|
51
|
+
const configProcessScopedVariables = { testFailed: false };
|
|
52
|
+
on('task', {
|
|
53
|
+
log(message) {
|
|
54
|
+
console.log(message);
|
|
55
|
+
return null;
|
|
56
|
+
},
|
|
57
|
+
bufferWsMetrics(metrics) {
|
|
58
|
+
wsMetricsBuffer.push(...metrics);
|
|
59
|
+
return null;
|
|
60
|
+
},
|
|
61
|
+
async flushWsMetrics(_) {
|
|
62
|
+
const toFlush = wsMetricsBuffer.splice(0);
|
|
63
|
+
const url = process.env.AMP_REMOTE_WRITE_URL;
|
|
64
|
+
// No-op when unset — customer repos simply don't get an AMP_REMOTE_WRITE_URL, so metrics never push.
|
|
65
|
+
if (!toFlush.length)
|
|
66
|
+
return { flushed: 0, skipped: 'no metrics' };
|
|
67
|
+
if (!url)
|
|
68
|
+
return { flushed: 0, skipped: 'AMP_REMOTE_WRITE_URL not set' };
|
|
69
|
+
try {
|
|
70
|
+
const { pushMetrics } = await import('./plugins/prometheusWriter.js');
|
|
71
|
+
await pushMetrics(toFlush, url);
|
|
72
|
+
return { flushed: toFlush.length };
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
76
|
+
console.error('[prometheusWriter] flush failed:', err);
|
|
77
|
+
return { flushed: 0, error: message };
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
set(keySet) {
|
|
81
|
+
Object.entries(keySet).forEach(([key, value]) => {
|
|
82
|
+
configProcessScopedVariables[key] = value;
|
|
83
|
+
});
|
|
84
|
+
return null;
|
|
85
|
+
},
|
|
86
|
+
get(keys) {
|
|
87
|
+
const result = {};
|
|
88
|
+
keys.forEach((key) => {
|
|
89
|
+
result[key] = configProcessScopedVariables[key];
|
|
90
|
+
});
|
|
91
|
+
return result;
|
|
92
|
+
},
|
|
93
|
+
...overrides.extraTasks
|
|
94
|
+
});
|
|
95
|
+
on('before:browser:launch', (browser, launchOptions) => {
|
|
96
|
+
browser ??= {
|
|
97
|
+
name: '',
|
|
98
|
+
family: 'chromium',
|
|
99
|
+
channel: '',
|
|
100
|
+
displayName: '',
|
|
101
|
+
version: '',
|
|
102
|
+
majorVersion: '',
|
|
103
|
+
path: '',
|
|
104
|
+
isHeaded: false,
|
|
105
|
+
isHeadless: false
|
|
106
|
+
};
|
|
107
|
+
return browserSettings(browser, launchOptions);
|
|
108
|
+
});
|
|
109
|
+
// Consumer's own setupNodeEvents (if any) runs after core wiring, on the same `on`/`config`.
|
|
110
|
+
overrides.e2e?.setupNodeEvents?.(on, config);
|
|
111
|
+
return config;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { defineGlobisConfig } from './config.js';
|
|
2
|
+
// tsHelper is NOT re-exported here on purpose: its top-level `Cypress.expose(...)`
|
|
3
|
+
// call only works in a browser-context (spec/support) process. cypress.config.ts
|
|
4
|
+
// runs in Node, so `import { defineGlobisConfig } from '@globisnv/cypress-core'`
|
|
5
|
+
// must stay safe to use there — barreling tsHelper in would make the root import
|
|
6
|
+
// crash the moment it's used from a config file. Import tsHelper explicitly via
|
|
7
|
+
// `@globisnv/cypress-core/tsHelper` from spec/support files instead.
|
|
8
|
+
// Blueprints and generic command files are consumed via direct subpath imports
|
|
9
|
+
// (e.g. `@globisnv/cypress-core/blueprints/GLO_equipment`) rather than re-exported
|
|
10
|
+
// here — barreling all 132 blueprints buys nothing a direct import doesn't.
|
|
11
|
+
// Custom tsconfig path aliases pointing into node_modules are deliberately NOT
|
|
12
|
+
// used for this: tsconfig-paths-webpack-plugin (which Cypress's default preprocessor
|
|
13
|
+
// relies on) silently ignores path mappings that resolve inside node_modules, so
|
|
14
|
+
// they typecheck fine but fail to bundle. Real package subpath exports don't have
|
|
15
|
+
// that problem — both tsc and webpack resolve them natively.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface WsDomMetric {
|
|
2
|
+
name: string;
|
|
3
|
+
value: number;
|
|
4
|
+
labels: {
|
|
5
|
+
hostname: string;
|
|
6
|
+
cypress_action: string;
|
|
7
|
+
formname: string;
|
|
8
|
+
beanname: string;
|
|
9
|
+
methodname: string;
|
|
10
|
+
dataproviderid: string;
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
timestamp: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function pushMetrics(metrics: WsDomMetric[], remoteWriteUrl: string): Promise<void>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Node.js only — runs inside the Cypress task runner, never bundled for the browser.
|
|
2
|
+
import * as http from 'node:http';
|
|
3
|
+
import * as https from 'node:https';
|
|
4
|
+
import { URL } from 'node:url';
|
|
5
|
+
import { Sha256 } from '@aws-crypto/sha256-js';
|
|
6
|
+
import { fromContainerMetadata } from '@aws-sdk/credential-provider-imds';
|
|
7
|
+
import { SignatureV4 } from '@aws-sdk/signature-v4';
|
|
8
|
+
import { compress } from 'snappyjs';
|
|
9
|
+
// ─── Minimal Prometheus remote-write protobuf encoder ─────────────────────────
|
|
10
|
+
// WriteRequest { repeated TimeSeries timeseries = 1 }
|
|
11
|
+
// TimeSeries { repeated Label labels = 1; repeated Sample samples = 2 }
|
|
12
|
+
// Label { string name = 1; string value = 2 }
|
|
13
|
+
// Sample { double value = 1; int64 timestamp = 2 }
|
|
14
|
+
function varint(n) {
|
|
15
|
+
const bytes = [];
|
|
16
|
+
let v = Math.floor(n);
|
|
17
|
+
while (v > 127) {
|
|
18
|
+
bytes.push((v % 128) | 128);
|
|
19
|
+
v = Math.floor(v / 128);
|
|
20
|
+
}
|
|
21
|
+
bytes.push(v);
|
|
22
|
+
return Buffer.from(bytes);
|
|
23
|
+
}
|
|
24
|
+
function lenField(fieldNum, data) {
|
|
25
|
+
return Buffer.concat([Buffer.from([(fieldNum << 3) | 2]), varint(data.length), data]);
|
|
26
|
+
}
|
|
27
|
+
function encodeLabel(name, value) {
|
|
28
|
+
return Buffer.concat([lenField(1, Buffer.from(name, 'utf8')), lenField(2, Buffer.from(value, 'utf8'))]);
|
|
29
|
+
}
|
|
30
|
+
function encodeSample(value, timestampMs) {
|
|
31
|
+
const doubleBuf = Buffer.allocUnsafe(8);
|
|
32
|
+
doubleBuf.writeDoubleLE(value, 0);
|
|
33
|
+
return Buffer.concat([
|
|
34
|
+
Buffer.from([0x09]), // Field 1, wire type 1 (64-bit LE double)
|
|
35
|
+
doubleBuf,
|
|
36
|
+
Buffer.from([0x10]), // Field 2, wire type 0 (varint int64)
|
|
37
|
+
varint(timestampMs)
|
|
38
|
+
]);
|
|
39
|
+
}
|
|
40
|
+
function encodeTimeSeries(metric) {
|
|
41
|
+
const pairs = [['__name__', metric.name]];
|
|
42
|
+
for (const [k, v] of Object.entries(metric.labels)) {
|
|
43
|
+
if (v)
|
|
44
|
+
pairs.push([k, v]);
|
|
45
|
+
}
|
|
46
|
+
pairs.sort((a, b) => (a[0] < b[0] ? -1 : 1));
|
|
47
|
+
return Buffer.concat([...pairs.map(([n, v]) => lenField(1, encodeLabel(n, v))), lenField(2, encodeSample(metric.value, metric.timestamp))]);
|
|
48
|
+
}
|
|
49
|
+
function buildWriteRequest(metrics) {
|
|
50
|
+
return Buffer.concat(metrics.map((m) => lenField(1, encodeTimeSeries(m))));
|
|
51
|
+
}
|
|
52
|
+
// ─── HTTP POST ────────────────────────────────────────────────────────────────
|
|
53
|
+
function doPost(url, body, headers) {
|
|
54
|
+
return new Promise((resolve, reject) => {
|
|
55
|
+
const parsed = new URL(url);
|
|
56
|
+
const isHttps = parsed.protocol === 'https:';
|
|
57
|
+
const lib = isHttps ? https : http;
|
|
58
|
+
const defaultPort = isHttps ? 443 : 80;
|
|
59
|
+
const req = lib.request({
|
|
60
|
+
method: 'POST',
|
|
61
|
+
hostname: parsed.hostname,
|
|
62
|
+
port: parsed.port ? parseInt(parsed.port, 10) : defaultPort,
|
|
63
|
+
path: parsed.pathname + parsed.search,
|
|
64
|
+
headers: { ...headers, 'Content-Length': String(body.length) }
|
|
65
|
+
}, (res) => {
|
|
66
|
+
let resp = '';
|
|
67
|
+
res.on('data', (c) => {
|
|
68
|
+
resp += c;
|
|
69
|
+
});
|
|
70
|
+
res.on('end', () => {
|
|
71
|
+
if (res.statusCode && res.statusCode >= 400) {
|
|
72
|
+
reject(new Error(`Remote write HTTP ${res.statusCode}: ${resp}`));
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
resolve();
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
req.on('error', reject);
|
|
80
|
+
req.write(body);
|
|
81
|
+
req.end();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
// ─── Public API ───────────────────────────────────────────────────────────────
|
|
85
|
+
export async function pushMetrics(metrics, remoteWriteUrl) {
|
|
86
|
+
if (!metrics.length || !remoteWriteUrl)
|
|
87
|
+
return;
|
|
88
|
+
const body = Buffer.from(compress(buildWriteRequest(metrics)));
|
|
89
|
+
const headers = {
|
|
90
|
+
'Content-Type': 'application/x-protobuf',
|
|
91
|
+
'Content-Encoding': 'snappy',
|
|
92
|
+
'X-Prometheus-Remote-Write-Version': '0.1.0'
|
|
93
|
+
};
|
|
94
|
+
const region = process.env.AMP_REGION;
|
|
95
|
+
if (region) {
|
|
96
|
+
const url = new URL(remoteWriteUrl);
|
|
97
|
+
const signer = new SignatureV4({ credentials: fromContainerMetadata(), region, service: 'aps', sha256: Sha256 });
|
|
98
|
+
const signed = await signer.sign({
|
|
99
|
+
method: 'POST',
|
|
100
|
+
protocol: url.protocol,
|
|
101
|
+
hostname: url.hostname,
|
|
102
|
+
path: url.pathname + url.search,
|
|
103
|
+
headers: { ...headers, host: url.hostname },
|
|
104
|
+
body
|
|
105
|
+
});
|
|
106
|
+
await doPost(remoteWriteUrl, body, signed.headers);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
await doPost(remoteWriteUrl, body, headers);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './commands/GLO_commands.js';
|
|
2
|
+
import './commands/GLT_commands.js';
|
|
3
|
+
import './commands/FOB_commands.js';
|
|
4
|
+
import './commands/POR_commands.js';
|
|
5
|
+
import './commands/GLJ_commands.js';
|
|
6
|
+
import './commands/GLS_commands.js';
|
|
7
|
+
import './websocketDetector.js';
|
|
8
|
+
import 'cypress-real-events';
|
package/dist/register.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Generic commands + shared infrastructure every consumer needs.
|
|
2
|
+
// Customer-specific command files are NOT imported here — each consumer
|
|
3
|
+
// repo imports its own from its local support/.
|
|
4
|
+
import './commands/GLO_commands.js';
|
|
5
|
+
import './commands/GLT_commands.js';
|
|
6
|
+
import './commands/FOB_commands.js';
|
|
7
|
+
import './commands/POR_commands.js';
|
|
8
|
+
import './commands/GLJ_commands.js';
|
|
9
|
+
import './commands/GLS_commands.js';
|
|
10
|
+
import './websocketDetector.js';
|
|
11
|
+
import 'cypress-real-events';
|
|
12
|
+
/**
|
|
13
|
+
* Lets GLO_closeDashboard (and similar) skip work after a test has already
|
|
14
|
+
* failed, so cloud reports don't show a secondary "couldn't close dashboard"
|
|
15
|
+
* error clouding the real one.
|
|
16
|
+
*/
|
|
17
|
+
beforeEach(() => {
|
|
18
|
+
cy.task('set', { testFailed: false }, { log: false });
|
|
19
|
+
});
|
|
20
|
+
Cypress.on('fail', (err) => {
|
|
21
|
+
cy.task('set', { testFailed: true }, { log: false });
|
|
22
|
+
throw err;
|
|
23
|
+
});
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export declare const extraParams: {
|
|
2
|
+
[key: string]: string | undefined;
|
|
3
|
+
};
|
|
4
|
+
export declare const cypressWebsocketDebug: boolean;
|
|
5
|
+
export declare const cypressWebsocketLoader: boolean;
|
|
6
|
+
export declare const input: addDateType;
|
|
7
|
+
export declare const select: addDateType;
|
|
8
|
+
export declare const top: topBottomType;
|
|
9
|
+
export declare const bottom: topBottomType;
|
|
10
|
+
export declare const equal: checkOperatorType;
|
|
11
|
+
export declare const notEqual: checkOperatorType;
|
|
12
|
+
export declare const contains: checkOperatorType;
|
|
13
|
+
export declare const greaterEqual: checkOperatorType;
|
|
14
|
+
export declare const span: clickRowType;
|
|
15
|
+
export declare const row: clickRowType;
|
|
16
|
+
export declare const gridInput: gridInputType;
|
|
17
|
+
export declare const gridInputWithoutEnter: gridInputType;
|
|
18
|
+
export declare const gridDropDown: gridInputType;
|
|
19
|
+
export declare const gridSelect: gridInputType;
|
|
20
|
+
export declare const cypressRecords: deleteRecordsType;
|
|
21
|
+
export declare const leapworkRecords: deleteRecordsType;
|
|
22
|
+
export declare const add = "add";
|
|
23
|
+
export declare const edit = "edit";
|
|
24
|
+
export declare const duplicate = "duplicate";
|
|
25
|
+
export declare const warning = "Warning";
|
|
26
|
+
export declare const error = "Error";
|
|
27
|
+
export declare const info = "Info";
|
|
28
|
+
export declare const partial = "partial";
|
|
29
|
+
export declare const exact = "exact";
|
|
30
|
+
export declare const servoyApi = "/servoy-service/api_v2/";
|
|
31
|
+
export declare const svyNavSelection = "ng$svy_nav_selection";
|
|
32
|
+
export declare const defaultTimeout: number;
|
|
33
|
+
declare const boolAlias: unique symbol;
|
|
34
|
+
export declare const open: true & {
|
|
35
|
+
[boolAlias]: 'open';
|
|
36
|
+
};
|
|
37
|
+
export declare const close: false & {
|
|
38
|
+
[boolAlias]: 'close';
|
|
39
|
+
};
|
|
40
|
+
export declare const check: 'true';
|
|
41
|
+
export declare const unCheck: 'false';
|
|
42
|
+
export declare const scrollIntoView: true & {
|
|
43
|
+
[boolAlias]: 'scrollIntoView';
|
|
44
|
+
};
|
|
45
|
+
export declare const noExplicitScroll: false & {
|
|
46
|
+
[boolAlias]: 'noExplicitScroll';
|
|
47
|
+
};
|
|
48
|
+
export declare const disableLoadingIndicator: false & {
|
|
49
|
+
[boolAlias]: 'disableLoadingIndicator';
|
|
50
|
+
};
|
|
51
|
+
export declare const skipCheck: true & {
|
|
52
|
+
[boolAlias]: 'skipCheck';
|
|
53
|
+
};
|
|
54
|
+
export declare const noSkipCheck: false & {
|
|
55
|
+
[boolAlias]: 'noSkipCheck';
|
|
56
|
+
};
|
|
57
|
+
export declare const equalBool: true & {
|
|
58
|
+
[boolAlias]: 'equalBool';
|
|
59
|
+
};
|
|
60
|
+
export declare const noEqualBool: false & {
|
|
61
|
+
[boolAlias]: 'noEqualBool';
|
|
62
|
+
};
|
|
63
|
+
export declare const showInCommandLog: true & {
|
|
64
|
+
[boolAlias]: 'showInCommandLog';
|
|
65
|
+
};
|
|
66
|
+
export declare const hideInCommandLog: false & {
|
|
67
|
+
[boolAlias]: 'hideInCommandLog';
|
|
68
|
+
};
|
|
69
|
+
export declare const useStoredValue: true & {
|
|
70
|
+
[boolAlias]: 'useStoredValue';
|
|
71
|
+
};
|
|
72
|
+
export declare const noStoredValue: false & {
|
|
73
|
+
[boolAlias]: 'noStoredValue';
|
|
74
|
+
};
|
|
75
|
+
export declare const defaultUsername: false & {
|
|
76
|
+
[boolAlias]: 'defaultUsername';
|
|
77
|
+
};
|
|
78
|
+
export declare const alternateUsername: true & {
|
|
79
|
+
[boolAlias]: 'alternateUsername';
|
|
80
|
+
};
|
|
81
|
+
export declare const disabled: false & {
|
|
82
|
+
[boolAlias]: 'disabled';
|
|
83
|
+
};
|
|
84
|
+
export declare const enabled: true & {
|
|
85
|
+
[boolAlias]: 'enabled';
|
|
86
|
+
};
|
|
87
|
+
export declare const isInvalid: true & {
|
|
88
|
+
[boolAlias]: 'isInvalid';
|
|
89
|
+
};
|
|
90
|
+
export declare const isValid: false & {
|
|
91
|
+
[boolAlias]: 'isValid';
|
|
92
|
+
};
|
|
93
|
+
export declare const buttonSearch: true & {
|
|
94
|
+
[boolAlias]: 'buttonSearch';
|
|
95
|
+
};
|
|
96
|
+
export declare const typeSearch: false & {
|
|
97
|
+
[boolAlias]: 'typeSearch';
|
|
98
|
+
};
|
|
99
|
+
export type OpenClose = typeof open | typeof close;
|
|
100
|
+
export type CheckState = typeof check | typeof unCheck | undefined;
|
|
101
|
+
export type skipCheckFlag = typeof skipCheck | typeof noSkipCheck;
|
|
102
|
+
export type scrollIntoViewFlag = typeof scrollIntoView | typeof noExplicitScroll;
|
|
103
|
+
export type exactMatchFlag = typeof equalBool | typeof noEqualBool;
|
|
104
|
+
export type showInCommandLogFlag = typeof showInCommandLog | typeof hideInCommandLog;
|
|
105
|
+
export type useStoredValueFlag = typeof useStoredValue | typeof noStoredValue;
|
|
106
|
+
export type usernameFlag = typeof defaultUsername | typeof alternateUsername;
|
|
107
|
+
export type disabledFlag = typeof disabled | typeof enabled;
|
|
108
|
+
export type validityFlag = typeof isInvalid | typeof isValid;
|
|
109
|
+
export type searchTypeFlag = typeof buttonSearch | typeof typeSearch;
|
|
110
|
+
export declare const clearExistingFilters: Flag<'clearExistingFilters'>;
|
|
111
|
+
/**
|
|
112
|
+
* Generates a date string based on the current date or a future date by adding days.
|
|
113
|
+
*
|
|
114
|
+
* @param {number} [daysToAdd] - Number of days to add to the current date. If not provided, returns today's date.
|
|
115
|
+
* @returns {string} - The date string in 'DD/MM/YYYY' format.
|
|
116
|
+
* @example
|
|
117
|
+
* Returns today's date
|
|
118
|
+
* const today = getDate();
|
|
119
|
+
*
|
|
120
|
+
* Returns a date 3 days from now
|
|
121
|
+
* const futureDate = getDate(3);
|
|
122
|
+
*/
|
|
123
|
+
export declare function getDate(daysToAdd?: number): string;
|
|
124
|
+
export declare function getClearDataFormula(formulaName: string): string;
|
|
125
|
+
export declare function getRandomNumberInRange(startValue: number, endValue: number): number;
|
|
126
|
+
export declare function numberToCommaValues(inputNumber: number): string;
|
|
127
|
+
/**
|
|
128
|
+
* Generates a UUID (Universally Unique Identifier) using the v4 method.
|
|
129
|
+
* @param {number} [length] - The desired length of the random string. If not provided, the full UUID is generated.
|
|
130
|
+
* @returns {string} The generated UUID.
|
|
131
|
+
*/
|
|
132
|
+
export declare function getUUID(length?: number): string;
|
|
133
|
+
/**
|
|
134
|
+
* Converts a localized number to a standard format for calculations or formulas.
|
|
135
|
+
* @param {string | number | undefined} value - The input value to be converted.
|
|
136
|
+
* @returns {number} The converted number
|
|
137
|
+
* @throws {Error} If the value is undefined or cannot be converted to a valid number. Useful to stop execution of the test if the value is not as expected.
|
|
138
|
+
*/
|
|
139
|
+
export declare function parseLocalizedNumber(value: string | number | undefined): number;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* Gets the jenkins build number to use as a UUID,
|
|
143
|
+
* will fall back to a random generated 4-character UUID if not found.
|
|
144
|
+
* @returns {string} CYP + build number or random 4-character UUID
|
|
145
|
+
*/
|
|
146
|
+
export declare const getOrCreateUuid: (index?: number) => string;
|
|
147
|
+
/**
|
|
148
|
+
* Returns the ISO 8601 week number for the given date.
|
|
149
|
+
*
|
|
150
|
+
* The calculation normalizes the input to UTC (so local time is ignored) and follows the ISO-8601
|
|
151
|
+
* rule where weeks start on Monday and week 1 is the week containing the year's first Thursday.
|
|
152
|
+
*
|
|
153
|
+
* @param d - The Date for which to compute the ISO week number.
|
|
154
|
+
* @returns The ISO week number (1..53) for the provided date.
|
|
155
|
+
*/
|
|
156
|
+
export declare const getISOWeek: (d: Date) => number;
|
|
157
|
+
export declare const DELETE_CYPRESS_RECORDS = "var _query = 'SELECT Name FROM sysobjects WHERE xtype = ? ';\nvar _ds = globals.svy_db_dataset('globis_development', _query, ['U']);\nvar _check_query, _check_args, _check_ds;\nvar _delete_query , _delete_args, _ok;\n\nfor(var i = 1 ; i <= _ds.getMaxRowIndex() ; i++)\n{\n _check_query = 'SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ? AND COLUMN_NAME = ?'\n _check_args = [_ds.getValue(i,1), 'sys_creationuser']\n _check_ds = globals.svy_db_dataset('globis_development', _check_query, _check_args);\n if(_check_ds.getMaxRowIndex() > 0)\n {\n _delete_query = 'DELETE FROM ' + _ds.getValue(i,1) + ' WHERE lower(sys_creationuser) = \\'cypress\\' ' \n _delete_args = []\n _ok = globals.svy_db_sql('globis_development', 'environment', _delete_query, _delete_args); \n }\n}\n\nvar _result = scopes.globals.openCurrentPeriod();\n\n$R{true}";
|
|
158
|
+
export declare const DELETE_LEAPWORK_RECORDS = "var _query = 'SELECT Name FROM sysobjects WHERE xtype = ? ';\nvar _ds = globals.svy_db_dataset('globis_development', _query, ['U']);\nvar _check_query, _check_args, _check_ds;\nvar _delete_query , _delete_args, _ok;\n\nfor(var i = 1 ; i <= _ds.getMaxRowIndex() ; i++)\n{\n _check_query = 'SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ? AND COLUMN_NAME = ?'\n _check_args = [_ds.getValue(i,1), 'sys_creationuser']\n _check_ds = globals.svy_db_dataset('globis_development', _check_query, _check_args);\n if(_check_ds.getMaxRowIndex() > 0)\n {\n _delete_query = 'DELETE FROM ' + _ds.getValue(i,1) + ' WHERE lower(sys_creationuser) = \\'leapwork\\' ' \n _delete_args = []\n _ok = globals.svy_db_sql('globis_development', 'environment', _delete_query, _delete_args); \n }\n}\n\nvar _result = scopes.globals.openCurrentPeriod();\n\n$R{true}";
|
|
159
|
+
export declare const S3_PLUGIN_TEST: (key: string, secret: string) => string;
|
|
160
|
+
export declare const LOG_PLUGIN_TEST: string;
|
|
161
|
+
export {};
|