@appliqation/automation-sdk 2.1.2 → 2.1.4
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
CHANGED
|
@@ -105,7 +105,8 @@ const appliqationConfig = {
|
|
|
105
105
|
batchSubmit: true, // Batch results for efficiency
|
|
106
106
|
batchSize: 50, // Results per batch
|
|
107
107
|
logOrphans: true, // Log tests without UUID mappings
|
|
108
|
-
logLevel: 'INFO'
|
|
108
|
+
logLevel: 'INFO', // INFO, DEBUG, ERROR
|
|
109
|
+
rejectUnauthorized: false // Set to false for self-signed certificates in dev
|
|
109
110
|
};
|
|
110
111
|
|
|
111
112
|
module.exports = defineConfig({
|
|
@@ -655,6 +656,31 @@ npm install dotenv
|
|
|
655
656
|
|
|
656
657
|
---
|
|
657
658
|
|
|
659
|
+
#### ❌ Error: "unable to verify the first certificate" or SSL errors
|
|
660
|
+
|
|
661
|
+
**Cause:** Using self-signed SSL certificates in development environment
|
|
662
|
+
|
|
663
|
+
**Fix:**
|
|
664
|
+
|
|
665
|
+
Add `rejectUnauthorized: false` to your SDK configuration in `playwright.config.js`:
|
|
666
|
+
|
|
667
|
+
```javascript
|
|
668
|
+
const appliqationConfig = {
|
|
669
|
+
baseUrl: process.env.APPLIQATION_BASE_URL,
|
|
670
|
+
apiKey: process.env.APPLIQATION_API_KEY,
|
|
671
|
+
projectKey: process.env.APPLIQATION_PROJECT_KEY,
|
|
672
|
+
environment: process.env.APPLIQATION_ENVIRONMENT,
|
|
673
|
+
title: process.env.APPLIQATION_RUN_TITLE,
|
|
674
|
+
|
|
675
|
+
// Add this for self-signed certificates
|
|
676
|
+
rejectUnauthorized: false // ⚠️ Only use in development!
|
|
677
|
+
};
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
**⚠️ Security Note:** Only use `rejectUnauthorized: false` in development environments with self-signed certificates. In production with valid SSL certificates, remove this setting or set it to `true`.
|
|
681
|
+
|
|
682
|
+
---
|
|
683
|
+
|
|
658
684
|
#### ❌ Results not appearing in portal
|
|
659
685
|
|
|
660
686
|
**Possible causes:**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appliqation/automation-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Appliqation Automation SDK with API key authentication, custom run titles, and framework-specific reporters",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -220,9 +220,9 @@ class DeviceOsDetector {
|
|
|
220
220
|
'linux': 'Linux',
|
|
221
221
|
'ubuntu': 'Ubuntu',
|
|
222
222
|
'android': 'Android',
|
|
223
|
-
'ios': '
|
|
224
|
-
'iphone': '
|
|
225
|
-
'ipad': '
|
|
223
|
+
'ios': 'iOS',
|
|
224
|
+
'iphone': 'iOS',
|
|
225
|
+
'ipad': 'iOS'
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
for (const [keyword, os] of Object.entries(osMap)) {
|
|
@@ -246,7 +246,7 @@ class DeviceOsDetector {
|
|
|
246
246
|
if (/mac os x/i.test(userAgent)) return 'macOS';
|
|
247
247
|
if (/macintosh/i.test(userAgent)) return 'macOS';
|
|
248
248
|
if (/android/i.test(userAgent)) return 'Android';
|
|
249
|
-
if (/ipad|iphone|ipod/i.test(userAgent)) return '
|
|
249
|
+
if (/ipad|iphone|ipod/i.test(userAgent)) return 'iOS';
|
|
250
250
|
if (/linux/i.test(userAgent)) return 'Linux';
|
|
251
251
|
if (/ubuntu/i.test(userAgent)) return 'Ubuntu';
|
|
252
252
|
|