froth-webdriverio-framework 6.0.38 → 6.0.39
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/package.json +1 -1
- package/android/samplescript_x.js +0 -202
- package/android_suites/samplsuite_x.js +0 -13
- package/log/key-metrics.json +0 -182
- package/log/sdk-cli-debug.log +0 -427
- package/log/sdk-cli.log +0 -474
- package/log/sdk-debug-utility.log +0 -0
- package/logs/bstack-wdio-service.log +0 -149
- package/logs/percy.log +0 -6
- package/wdio.conf.js +0 -316
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.39",
|
|
4
4
|
"readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
|
|
5
5
|
"description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
|
|
6
6
|
"scripts": {
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
//const Util = require('../froth_common_actions/Utils.js');
|
|
2
|
-
|
|
3
|
-
describe('Yes Shop Prepaid Registration', () => {
|
|
4
|
-
|
|
5
|
-
it('Yes Shop Prepaid Registration', async () => {
|
|
6
|
-
|
|
7
|
-
// // File URLs from BrowserStack
|
|
8
|
-
// const links =await Util.F.extractEmailLinks.getEmailLinks('un','apppwd','subject','fromemail')
|
|
9
|
-
// const foundLink = await Util.F.extractEmailLinks.findLinks(links,'texttofind')
|
|
10
|
-
|
|
11
|
-
// const idCardFileUrl = "https://drive.google.com/file/d/1t5KZ7a6JLS97khFnuUS-_aOa6EY4a9H0/view?usp=sharing"; // Replace with actual file ID for ID card
|
|
12
|
-
// const videoFileUrl = "https://drive.google.com/file/d/1PYMY2LQ-GFFKJ1wC5yRNflcxfA3ATgvW/view?usp=sharing"; // Replace with actual file ID for video
|
|
13
|
-
const el1 = await driver.$("id:com.ytlcomms.ymca:id/yesLogoIv");
|
|
14
|
-
await el1.click();
|
|
15
|
-
await el1.click();
|
|
16
|
-
await el1.click();
|
|
17
|
-
await el1.click();
|
|
18
|
-
await el1.click();
|
|
19
|
-
await el1.click();
|
|
20
|
-
await el1.click();
|
|
21
|
-
await el1.click();
|
|
22
|
-
await el1.click();
|
|
23
|
-
await el1.click();
|
|
24
|
-
const el2 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserId");
|
|
25
|
-
await el2.addValue("alpha_login");
|
|
26
|
-
const el3 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserPass");
|
|
27
|
-
await el3.addValue("@45kj*3d");
|
|
28
|
-
const el411 = await driver.$("id:com.ytlcomms.ymca:id/btBetaSignIn");
|
|
29
|
-
await el411.click();
|
|
30
|
-
const el51 = await driver.$("id:com.ytlcomms.ymca:id/iotUrl");
|
|
31
|
-
await el51.click();
|
|
32
|
-
/*To scroll to the down of the screen until text is visible */
|
|
33
|
-
//await Util.scrollDownToView("GO BACK")
|
|
34
|
-
|
|
35
|
-
const el61 = await driver.$("id:com.ytlcomms.ymca:id/btGoBack");
|
|
36
|
-
await el61.click();
|
|
37
|
-
const el71 = await driver.$("id:com.ytlcomms.ymca:id/mUserId");
|
|
38
|
-
await el71.addValue("pdc_branch");
|
|
39
|
-
const el81 = await driver.$("id:com.ytlcomms.ymca:id/mPassword");
|
|
40
|
-
await el81.addValue("ytlc@xm1234");
|
|
41
|
-
const el91 = await driver.$("id:com.ytlcomms.ymca:id/btSignIn");
|
|
42
|
-
await el91.click();
|
|
43
|
-
// Start the automation script
|
|
44
|
-
const el4 = await driver.$("-android uiautomator:new UiSelector().text(\"Registration\")");
|
|
45
|
-
await el4.click();
|
|
46
|
-
|
|
47
|
-
const el5 = await driver.$("-android uiautomator:new UiSelector().text(\"Prepaid\")");
|
|
48
|
-
await el5.click();
|
|
49
|
-
|
|
50
|
-
// Trigger ID card upload
|
|
51
|
-
const el6 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");
|
|
52
|
-
await el6.click();
|
|
53
|
-
|
|
54
|
-
const el7 = await driver.$("id:com.android.permissioncontroller:id/permission_allow_one_time_button");
|
|
55
|
-
await el7.click();
|
|
56
|
-
|
|
57
|
-
const el8 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");
|
|
58
|
-
await el8.click();
|
|
59
|
-
|
|
60
|
-
const el9 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");
|
|
61
|
-
await el9.click();
|
|
62
|
-
|
|
63
|
-
const el10 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");
|
|
64
|
-
await el10.click();
|
|
65
|
-
|
|
66
|
-
await driver.execute('browserstack_executor: {"action":"cameraImageInjection", "arguments": {"imageUrl" : "media://b44ff746563b5e458e2b5034d3cb25263ad24ebd"}}');
|
|
67
|
-
|
|
68
|
-
const el11 = await driver.$("id:com.ytlcomms.ymca:id/confirmBtn");
|
|
69
|
-
await el11.click();
|
|
70
|
-
await driver.pause(3000)
|
|
71
|
-
|
|
72
|
-
const el12 = await driver.$("id:com.sec.android.app.camera:id/bottom_background");
|
|
73
|
-
await el12.click();
|
|
74
|
-
|
|
75
|
-
await driver.pause(3000)
|
|
76
|
-
|
|
77
|
-
////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]
|
|
78
|
-
|
|
79
|
-
const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");
|
|
80
|
-
await el13.click();
|
|
81
|
-
// const el29 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");
|
|
82
|
-
// await el29.click();
|
|
83
|
-
|
|
84
|
-
await driver.pause(10000)
|
|
85
|
-
try {
|
|
86
|
-
await driver.action('pointer')
|
|
87
|
-
.move({
|
|
88
|
-
duration: 0,
|
|
89
|
-
x: 937,
|
|
90
|
-
y: 905
|
|
91
|
-
})
|
|
92
|
-
.down({
|
|
93
|
-
button: 0
|
|
94
|
-
})
|
|
95
|
-
.move({
|
|
96
|
-
duration: 1000,
|
|
97
|
-
x: 1043,
|
|
98
|
-
y: 696
|
|
99
|
-
})
|
|
100
|
-
.up({
|
|
101
|
-
button: 0
|
|
102
|
-
})
|
|
103
|
-
.perform();
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
} catch (e) {
|
|
107
|
-
console.error('Error in right :', e);
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
try {
|
|
111
|
-
await driver.action('pointer')
|
|
112
|
-
.move({
|
|
113
|
-
duration: 0,
|
|
114
|
-
x: 134,
|
|
115
|
-
y: 1498
|
|
116
|
-
})
|
|
117
|
-
.down({
|
|
118
|
-
button: 0
|
|
119
|
-
})
|
|
120
|
-
.move({
|
|
121
|
-
duration: 1000,
|
|
122
|
-
x: 28,
|
|
123
|
-
y: 1723
|
|
124
|
-
})
|
|
125
|
-
.up({
|
|
126
|
-
button: 0
|
|
127
|
-
})
|
|
128
|
-
.perform();
|
|
129
|
-
|
|
130
|
-
//
|
|
131
|
-
} catch (e) {
|
|
132
|
-
console.error('Error in left:', e);
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
await driver.pause(10000) // Confirm upload
|
|
136
|
-
|
|
137
|
-
const el16 = await driver.$("//android.widget.TextView[@text='Done']");
|
|
138
|
-
await el16.click();
|
|
139
|
-
|
|
140
|
-
await driver.pause(30000)
|
|
141
|
-
const el17 = await driver.$("id:com.ytlcomms.ymca:id/newRb");
|
|
142
|
-
await el17.click();
|
|
143
|
-
|
|
144
|
-
// await Util.F.scrollDownToView("Facial Recognition")
|
|
145
|
-
|
|
146
|
-
const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");
|
|
147
|
-
await el18.click();
|
|
148
|
-
const el19 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");
|
|
149
|
-
await el19.click();
|
|
150
|
-
|
|
151
|
-
await driver.execute('browserstack_executor: {"action":"cameraVideoInjection", "arguments": {"videoUrl" : "media://1920c80136e1c7e2278e15d820845ed64a676e92"}}');
|
|
152
|
-
|
|
153
|
-
const el20 = await driver.$("id:com.ytlcomms.ymca:id/startBtn");
|
|
154
|
-
await el20.click();
|
|
155
|
-
|
|
156
|
-
await driver.pause(3000)
|
|
157
|
-
|
|
158
|
-
const el21 = await driver.$("id:com.ytlcomms.ymca:id/captureVideo");
|
|
159
|
-
await el21.click();
|
|
160
|
-
|
|
161
|
-
await driver.pause(10000)
|
|
162
|
-
|
|
163
|
-
////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]
|
|
164
|
-
|
|
165
|
-
// const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");
|
|
166
|
-
// await el13.click();
|
|
167
|
-
//99999999
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
// Trigger video upload for face recognition
|
|
171
|
-
// const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");
|
|
172
|
-
// await el18.click();
|
|
173
|
-
// await driver.execute("mobile: uploadFile", { file: videoFileUrl }); // Upload video
|
|
174
|
-
|
|
175
|
-
// Complete the remaining flow
|
|
176
|
-
const el25 = await driver.$("-android uiautomator:new UiSelector().text('-- PLAN --')");
|
|
177
|
-
await el25.click();
|
|
178
|
-
|
|
179
|
-
const el26 = await driver.$("-android uiautomator:new UiSelector().text('YES 5G Prepaid')");
|
|
180
|
-
await el26.click();
|
|
181
|
-
|
|
182
|
-
const el44 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");
|
|
183
|
-
await el44.click();
|
|
184
|
-
|
|
185
|
-
const el40 = await driver.$("id:com.ytlcomms.ymca:id/eSimRb");
|
|
186
|
-
await el40.click();
|
|
187
|
-
const el41 = await driver.$("id:com.ytlcomms.ymca:id/optionalMobTitleLabel");
|
|
188
|
-
await el41.click();
|
|
189
|
-
//add scroll here
|
|
190
|
-
|
|
191
|
-
const el42 = await driver.$("-android uiautomator:new UiSelector().text('01117242402')");
|
|
192
|
-
await el42.click();
|
|
193
|
-
const el43 = await driver.$("id:com.ytlcomms.ymca:id/md_buttonDefaultPositive");
|
|
194
|
-
await el43.click();
|
|
195
|
-
//add scroll to end here
|
|
196
|
-
|
|
197
|
-
const el45 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");
|
|
198
|
-
await el45.click();
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
});
|
|
202
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const fileNames = ['samplescript_x.js']; // Maintain order
|
|
3
|
-
const androidFolder = path.resolve(process.cwd(), './android');
|
|
4
|
-
|
|
5
|
-
const selectedFiles = fileNames.map(file => path.resolve(androidFolder, file));
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
tests: [
|
|
9
|
-
selectedFiles
|
|
10
|
-
]
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
package/log/key-metrics.json
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "sdk:testhub",
|
|
4
|
-
"entryType": "measure",
|
|
5
|
-
"startTime": 1129.7178649902344,
|
|
6
|
-
"duration": 1213.4356330037117,
|
|
7
|
-
"detail": null,
|
|
8
|
-
"success": true,
|
|
9
|
-
"failure": null,
|
|
10
|
-
"worker": 35476
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "sdk:percy",
|
|
14
|
-
"entryType": "measure",
|
|
15
|
-
"startTime": 2350.431740999222,
|
|
16
|
-
"duration": 649.7334089875221,
|
|
17
|
-
"detail": null,
|
|
18
|
-
"success": false,
|
|
19
|
-
"failure": {},
|
|
20
|
-
"worker": 35476
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "sdk:automate:local",
|
|
24
|
-
"entryType": "measure",
|
|
25
|
-
"startTime": 3001.223030000925,
|
|
26
|
-
"duration": 0.8131749927997589,
|
|
27
|
-
"detail": null,
|
|
28
|
-
"success": true,
|
|
29
|
-
"failure": null,
|
|
30
|
-
"worker": 35476
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "sdk:automate:hub-management",
|
|
34
|
-
"entryType": "measure",
|
|
35
|
-
"startTime": 10800.239841014147,
|
|
36
|
-
"duration": 2281.214550971985,
|
|
37
|
-
"detail": null,
|
|
38
|
-
"success": true,
|
|
39
|
-
"failure": null,
|
|
40
|
-
"worker": 35476
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "sdk:testhub",
|
|
44
|
-
"entryType": "measure",
|
|
45
|
-
"startTime": 705.4601249992847,
|
|
46
|
-
"duration": 1592.9701099991798,
|
|
47
|
-
"detail": null,
|
|
48
|
-
"success": true,
|
|
49
|
-
"failure": null,
|
|
50
|
-
"worker": 45866
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "sdk:percy",
|
|
54
|
-
"entryType": "measure",
|
|
55
|
-
"startTime": 2303.422529011965,
|
|
56
|
-
"duration": 642.9604809880257,
|
|
57
|
-
"detail": null,
|
|
58
|
-
"success": false,
|
|
59
|
-
"failure": {},
|
|
60
|
-
"worker": 45866
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "sdk:automate:local",
|
|
64
|
-
"entryType": "measure",
|
|
65
|
-
"startTime": 2947.0025030076504,
|
|
66
|
-
"duration": 0.3801549971103668,
|
|
67
|
-
"detail": null,
|
|
68
|
-
"success": true,
|
|
69
|
-
"failure": null,
|
|
70
|
-
"worker": 45866
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "sdk:automate:hub-management",
|
|
74
|
-
"entryType": "measure",
|
|
75
|
-
"startTime": 6708.532104998827,
|
|
76
|
-
"duration": 2262.0467959940434,
|
|
77
|
-
"detail": null,
|
|
78
|
-
"success": true,
|
|
79
|
-
"failure": null,
|
|
80
|
-
"worker": 45866
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "sdk:automate:print-buildlink",
|
|
84
|
-
"entryType": "measure",
|
|
85
|
-
"startTime": 11119.175521016121,
|
|
86
|
-
"duration": 660.0021529793739,
|
|
87
|
-
"detail": null,
|
|
88
|
-
"success": true,
|
|
89
|
-
"failure": null,
|
|
90
|
-
"worker": 45866
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "sdk:testhub",
|
|
94
|
-
"entryType": "measure",
|
|
95
|
-
"startTime": 585.9443280100822,
|
|
96
|
-
"duration": 1050.7450079917908,
|
|
97
|
-
"detail": null,
|
|
98
|
-
"success": true,
|
|
99
|
-
"failure": null,
|
|
100
|
-
"worker": 47710
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "sdk:percy",
|
|
104
|
-
"entryType": "measure",
|
|
105
|
-
"startTime": 1642.3100860118866,
|
|
106
|
-
"duration": 692.0360849797726,
|
|
107
|
-
"detail": null,
|
|
108
|
-
"success": false,
|
|
109
|
-
"failure": {},
|
|
110
|
-
"worker": 47710
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "sdk:automate:local",
|
|
114
|
-
"entryType": "measure",
|
|
115
|
-
"startTime": 2334.7339240014553,
|
|
116
|
-
"duration": 0.2956550121307373,
|
|
117
|
-
"detail": null,
|
|
118
|
-
"success": true,
|
|
119
|
-
"failure": null,
|
|
120
|
-
"worker": 47710
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "sdk:automate:hub-management",
|
|
124
|
-
"entryType": "measure",
|
|
125
|
-
"startTime": 4611.3587700128555,
|
|
126
|
-
"duration": 2342.624493986368,
|
|
127
|
-
"detail": null,
|
|
128
|
-
"success": true,
|
|
129
|
-
"failure": null,
|
|
130
|
-
"worker": 47710
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"name": "sdk:automate:print-buildlink",
|
|
134
|
-
"entryType": "measure",
|
|
135
|
-
"startTime": 8816.444891005754,
|
|
136
|
-
"duration": 859.8883419930935,
|
|
137
|
-
"detail": null,
|
|
138
|
-
"success": true,
|
|
139
|
-
"failure": null,
|
|
140
|
-
"worker": 47710
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"name": "sdk:testhub",
|
|
144
|
-
"entryType": "measure",
|
|
145
|
-
"startTime": 677.8358680009842,
|
|
146
|
-
"duration": 1026.5642499923706,
|
|
147
|
-
"detail": null,
|
|
148
|
-
"success": true,
|
|
149
|
-
"failure": null,
|
|
150
|
-
"worker": 50137
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "sdk:percy",
|
|
154
|
-
"entryType": "measure",
|
|
155
|
-
"startTime": 1710.4266639947891,
|
|
156
|
-
"duration": 696.7344489991665,
|
|
157
|
-
"detail": null,
|
|
158
|
-
"success": false,
|
|
159
|
-
"failure": {},
|
|
160
|
-
"worker": 50137
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"name": "sdk:automate:local",
|
|
164
|
-
"entryType": "measure",
|
|
165
|
-
"startTime": 2407.806001007557,
|
|
166
|
-
"duration": 0.5823459923267365,
|
|
167
|
-
"detail": null,
|
|
168
|
-
"success": true,
|
|
169
|
-
"failure": null,
|
|
170
|
-
"worker": 50137
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"name": "sdk:automate:hub-management",
|
|
174
|
-
"entryType": "measure",
|
|
175
|
-
"startTime": 6418.641342997551,
|
|
176
|
-
"duration": 2285.3191879987717,
|
|
177
|
-
"detail": null,
|
|
178
|
-
"success": true,
|
|
179
|
-
"failure": null,
|
|
180
|
-
"worker": 50137
|
|
181
|
-
}
|
|
182
|
-
]
|