@sap_oss/wdio-qmate-service
Advanced tools
Comparing version 2.8.4 to 2.9.0
@@ -14,3 +14,3 @@ interface IHeaders { | ||
readonly urlLib: any; | ||
readonly curl: any; | ||
readonly axios: any; | ||
Service: any; | ||
@@ -17,0 +17,0 @@ constructor(); |
@@ -16,3 +16,3 @@ "use strict"; | ||
this.urlLib = require("url").URL; | ||
this.curl = require("curl"); | ||
this.axios = require("axios"); | ||
try { | ||
@@ -388,15 +388,5 @@ this.Service = require("@sap_oss/odata-library").Service; | ||
return new Promise((resolve, reject) => { | ||
this.curl.get(url, options, function (error, res, body) { | ||
if (!error) { | ||
if (res.statusCode >= 400) { | ||
reject(`${res.statusCode} - ${res.statusMessage}`); | ||
} | ||
else { | ||
resolve(body); | ||
} | ||
} | ||
else { | ||
reject(error); | ||
} | ||
}); | ||
this.axios.get(url, options) | ||
.then((response) => resolve(response.data)) | ||
.catch((error) => reject(error)); | ||
}); | ||
@@ -403,0 +393,0 @@ } |
{ | ||
"name": "@sap_oss/wdio-qmate-service", | ||
"version": "2.8.4", | ||
"version": "2.9.0", | ||
"author": "SAP SE", | ||
@@ -26,3 +26,2 @@ "types": "./@types/index.d.ts", | ||
"scripts": { | ||
"update-chromedriver": "npm install chromedriver --chromedriver-force-download --detect_chromedriver_version --no-save", | ||
"prepare": "npm run build", | ||
@@ -134,3 +133,2 @@ "clean": "npx rimraf lib", | ||
"axios": "^1.6.0", | ||
"curl": "^0.1.4", | ||
"deepmerge": "^4.2.2", | ||
@@ -154,3 +152,2 @@ "fs-extra": "^10.0.0", | ||
"@wdio/sauce-service": "^8.27.0", | ||
"@wdio/selenium-standalone-service": "^8.15.0", | ||
"@wdio/shared-store-service": "^8.29.7", | ||
@@ -173,4 +170,3 @@ "@wdio/spec-reporter": "^8.29.7", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3", | ||
"wdio-chromedriver-service": "^8.1.1" | ||
"typescript": "^5.3.3" | ||
}, | ||
@@ -177,0 +173,0 @@ "overrides": { |
@@ -9,3 +9,2 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { port: 4444 }], | ||
["static-server", { | ||
@@ -12,0 +11,0 @@ port: 34005, |
@@ -6,7 +6,6 @@ const merge = require("deepmerge"); | ||
exports.config = merge(baseConfig.config, { | ||
path: "/", | ||
capabilities: [ | ||
{ | ||
browserName: "chrome", | ||
browserVersion: "120.0.6099.35", | ||
acceptInsecureCerts: true, | ||
@@ -39,13 +38,3 @@ "goog:chromeOptions": { | ||
} | ||
], | ||
services: [ | ||
[ | ||
"chromedriver", | ||
{ | ||
port: 4444, | ||
chromedriverCustomPath: process.env.CHROME_DRIVER | ||
} | ||
] | ||
] | ||
}); |
@@ -5,7 +5,6 @@ const merge = require("deepmerge"); | ||
exports.config = merge(baseConfig.config, { | ||
path: "/", | ||
capabilities: [ | ||
{ | ||
browserName: "chrome", | ||
browserVersion: "120.0.6099.35", | ||
acceptInsecureCerts: true, | ||
@@ -35,13 +34,3 @@ "goog:chromeOptions": { | ||
} | ||
], | ||
services: [ | ||
[ | ||
"chromedriver", | ||
{ | ||
port: 4444, | ||
chromedriverCustomPath: process.env.CHROME_DRIVER | ||
} | ||
] | ||
] | ||
}); |
@@ -20,5 +20,2 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}], | ||
["static-server", { | ||
@@ -25,0 +22,0 @@ port: 34005, |
@@ -24,5 +24,2 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}], | ||
["static-server", { | ||
@@ -29,0 +26,0 @@ port: 34005, |
@@ -36,5 +36,2 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}], | ||
["static-server", { | ||
@@ -41,0 +38,0 @@ port: 34005, |
@@ -39,19 +39,19 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}], | ||
["static-server", { | ||
port: 34005, | ||
folders: [ | ||
{ mount: "/waitForElements.html", path: path.resolve(__dirname, "../../../helper/website/waitForElements.html") }, | ||
{ mount: "/buttons.html", path: path.resolve(__dirname, "../../../helper/website/buttons.html") }, | ||
{ mount: "/checkBox.html", path: path.resolve(__dirname, "../../../helper/website/checkBox.html") }, | ||
{ mount: "/dropdown.html", path: path.resolve(__dirname, "../../../helper/website/dropdown.html") }, | ||
{ mount: "/forms.html", path: path.resolve(__dirname, "../../../helper/website/forms.html") }, | ||
{ mount: "/scrollPage.html", path: path.resolve(__dirname, "../../../helper/website/scrollPage.html") }, | ||
{ mount: "/hiddenAndVisible.html", path: path.resolve(__dirname, "../../../helper/website/hiddenAndVisible.html") }, | ||
{ mount: "/tables.html", path: path.resolve(__dirname, "../../../helper/website/tables.html") } | ||
] | ||
}] | ||
], | ||
}); | ||
[ | ||
"static-server", | ||
{ | ||
port: 34005, | ||
folders: [ | ||
{ mount: "/waitForElements.html", path: path.resolve(__dirname, "../../../helper/website/waitForElements.html") }, | ||
{ mount: "/buttons.html", path: path.resolve(__dirname, "../../../helper/website/buttons.html") }, | ||
{ mount: "/checkBox.html", path: path.resolve(__dirname, "../../../helper/website/checkBox.html") }, | ||
{ mount: "/dropdown.html", path: path.resolve(__dirname, "../../../helper/website/dropdown.html") }, | ||
{ mount: "/forms.html", path: path.resolve(__dirname, "../../../helper/website/forms.html") }, | ||
{ mount: "/scrollPage.html", path: path.resolve(__dirname, "../../../helper/website/scrollPage.html") }, | ||
{ mount: "/hiddenAndVisible.html", path: path.resolve(__dirname, "../../../helper/website/hiddenAndVisible.html") }, | ||
{ mount: "/tables.html", path: path.resolve(__dirname, "../../../helper/website/tables.html") } | ||
] | ||
} | ||
] | ||
] | ||
}); |
@@ -34,5 +34,2 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}], | ||
["static-server", { | ||
@@ -39,0 +36,0 @@ port: 34005, |
@@ -13,11 +13,4 @@ const path = require("path"); | ||
bail: 1, | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}] | ||
], | ||
specs: [ | ||
@@ -29,4 +22,2 @@ // path.resolve(__dirname, "navigateToSystemAndApplication.spec.js"), | ||
exclude: [], | ||
mochaOpts: { | ||
@@ -33,0 +24,0 @@ timeout: 2000000, |
@@ -10,5 +10,2 @@ const path = require("path"); | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}], | ||
["static-server", { | ||
@@ -15,0 +12,0 @@ port: 34099, |
@@ -12,19 +12,5 @@ const path = require("path"); | ||
bail: 1, | ||
baseUrl: "http://localhost:34099/ui", | ||
services: [ | ||
["chromedriver", { | ||
port: 4444 | ||
}] | ||
// ["static-server", { | ||
// port: 34099, | ||
// folders: [{ | ||
// mount: "/ui", | ||
// path: path.resolve(__dirname, "./website/main.html") | ||
// }, ] | ||
// }] | ||
], | ||
specs: [ | ||
@@ -37,4 +23,2 @@ path.resolve(__dirname, "navigateToApplication.spec.js"), | ||
exclude: [], | ||
mochaOpts: { | ||
@@ -41,0 +25,0 @@ timeout: 2000000, |
Sorry, the diff of this file is not supported yet
11
25
161
2624211
724
36756
- Removedcurl@^0.1.4
- Removedajv@6.12.6(transitive)
- Removedarray-flatten@3.0.0(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcurl@0.1.4(transitive)
- Removeddashdash@1.14.1(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-promise@4.0.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedparseurl@1.3.3(transitive)
- Removedpath-to-regexp@8.2.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrouter@2.0.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedutils-merge@1.0.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)