froth-webdriverio-framework 1.0.77 → 1.0.79

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.
@@ -56,25 +56,25 @@ async function getSuiteDetails(frothUrl, token, id) {
56
56
 
57
57
  }
58
58
 
59
- async function main() {
60
- try {
61
- const frothUrl = "devapi.frothtestops.com";
62
- const username = "subhra.subudhi@roboticodigital.com";
63
- const password = "V2VsY29tZUAxMjM=";
59
+ // async function main() {
60
+ // try {
61
+ // const frothUrl = "devapi.frothtestops.com";
62
+ // const username = "subhra.subudhi@roboticodigital.com";
63
+ // const password = "V2VsY29tZUAxMjM=";
64
64
 
65
- const token = await getLoginToken(frothUrl, username, password);
66
- if (!token) {
67
- throw new Error('Login failed, no token obtained');
68
- }
65
+ // const token = await getLoginToken(frothUrl, username, password);
66
+ // if (!token) {
67
+ // throw new Error('Login failed, no token obtained');
68
+ // }
69
69
 
70
- const id = 147;
71
- const data = await getSuiteDetails(frothUrl, token, id);
72
- console.log("Retrieved JSON Data:", data);
73
- console.log(data.automation_script_id[0].automation_script_id)
74
- } catch (error) {
75
- console.error('Error in main function:', error);
76
- }
77
- }
70
+ // const id = 147;
71
+ // const data = await getSuiteDetails(frothUrl, token, id);
72
+ // console.log("Retrieved JSON Data:", data);
73
+ // console.log(data.automation_script_id[0].automation_script_id)
74
+ // } catch (error) {
75
+ // console.error('Error in main function:', error);
76
+ // }
77
+ // }
78
78
 
79
- main();
79
+ // main();
80
80
  module.exports = getSuiteDetails;
@@ -100,7 +100,7 @@ const commonconfig = {
100
100
  BUFFER.setItem("RESULT_DATA", result);
101
101
  console.log("result data :"+BUFFER.getItem("RESULT_DATA"))
102
102
  const resultdetails = {}
103
- resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") === 0 ? 'PASSED' : 'FAILED'
103
+ resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") == 0 ? 'PASSED' : 'FAILED'
104
104
  console.log("Total Duration:" + BUFFER.getItem("TOTAL_DURATION"));
105
105
  console.log("Results" + resultdetails.excution_status);
106
106
  resultdetails.excution_time = await secondsToTime(BUFFER.getItem("TOTAL_DURATION"))
@@ -114,7 +114,7 @@ const commonconfig = {
114
114
  // await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'));
115
115
  await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, process.env.BROWSERSTACK_ACCESS_KEY);
116
116
  const resultdetails = {}
117
- resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") === 0 ? 'PASSED' : 'FAILED'
117
+ resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") == 0 ? 'PASSED' : 'FAILED'
118
118
  console.log("Total Duration:" + BUFFER.getItem("TOTAL_DURATION"));
119
119
  resultdetails.excution_time = await secondsToTime(BUFFER.getItem("TOTAL_DURATION"))
120
120
  await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("EXECUTION_ID"), resultdetails)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",