froth-webdriverio-framework 7.0.21 → 7.0.23

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.
@@ -4,8 +4,8 @@ async function getBSBuildDetails(sessionType, bsUsername, bsPassword) {
4
4
 
5
5
  const basicAuth = btoa(`${bsUsername}:${bsPassword}`);
6
6
  const buildName = sessionType === 'app-automate'
7
- ? `Mobile_Build- ${process.env.FROTH_TESTOPS_BUILD_NAME}`
8
- : `Web_Build- ${process.env.FROTH_TESTOPS_BUILD_NAME}`;
7
+ ? `Mobile_Build-${process.env.FROTH_TESTOPS_BUILD_NAME}`
8
+ : `Web_Build-${process.env.FROTH_TESTOPS_BUILD_NAME}`;
9
9
 
10
10
  console.log(`BrowserStack build name: ${buildName}`);
11
11
 
@@ -52,10 +52,10 @@ async function getExecuitonDetails(frothUrl, token, id) {
52
52
  // let responseData = await response.json()
53
53
 
54
54
  data = await aes.decrpytData(data.data)
55
- console.log("after decrypting",data)
55
+ // console.log("after decrypting",data)
56
56
 
57
57
  data = JSON.parse(data)
58
- console.log("json parsing",data)
58
+ // console.log("json parsing",data)
59
59
  if (!data) return null;
60
60
 
61
61
  const jsondata = {
@@ -267,26 +267,26 @@ async function updateScriptExecutionStatus(
267
267
 
268
268
 
269
269
 
270
- async function main() {
271
- try {
272
- const frothUrl = "https://api.frothtestops.com";
273
- // const username = "subhra.subudhi@roboticodigital.com";
274
- // const password = "V2VsY29tZUAxMjM=";
275
-
276
- // const token = await getLoginToken(frothUrl, username, password);
277
- // if (!token) {
278
- // throw new Error('Login failed, no token obtained');
279
- // }
280
- const token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzY3MTc4MTk2LCJpYXQiOjE3NjcxNzQ1OTYsImp0aSI6Ijg2MzA3ZjU0YjZhNzRkZDY5ZjY0MTc2YjM5MWUyMTNiIiwidXNlcl9pZCI6MX0.lwp38e7P-toi7k1EaFdgHi5Eu4B-Ps8Y0epN1d5I_Cc'
281
- const id = 133;
282
- const data = await getExecuitonDetails(frothUrl, token, id);
283
- console.log("Retrieved JSON Data:", data);
284
- } catch (error) {
285
- console.error('Error in main function:', error);
286
- }
287
- }
270
+ // async function main() {
271
+ // try {
272
+ // const frothUrl = "https://api.frothtestops.com";
273
+ // // const username = "subhra.subudhi@roboticodigital.com";
274
+ // // const password = "V2VsY29tZUAxMjM=";
275
+
276
+ // // const token = await getLoginToken(frothUrl, username, password);
277
+ // // if (!token) {
278
+ // // throw new Error('Login failed, no token obtained');
279
+ // // }
280
+ // const token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzY3MTc4MTk2LCJpYXQiOjE3NjcxNzQ1OTYsImp0aSI6Ijg2MzA3ZjU0YjZhNzRkZDY5ZjY0MTc2YjM5MWUyMTNiIiwidXNlcl9pZCI6MX0.lwp38e7P-toi7k1EaFdgHi5Eu4B-Ps8Y0epN1d5I_Cc'
281
+ // const id = 133;
282
+ // const data = await getExecuitonDetails(frothUrl, token, id);
283
+ // console.log("Retrieved JSON Data:", data);
284
+ // } catch (error) {
285
+ // console.error('Error in main function:', error);
286
+ // }
287
+ // }
288
288
 
289
- main();
289
+ // main();
290
290
 
291
291
  module.exports = {
292
292
  getExecuitonDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.21",
3
+ "version": "7.0.23",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",