froth-webdriverio-framework 3.0.94 → 3.0.96

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.
@@ -24,13 +24,13 @@ async function getExecuitonDetails(frothUrl, token, id) {
24
24
  jsondata.automation_suite_id = data.automation_suite_details.id;
25
25
  jsondata.test_cycle_id = data.test_cycle_details.id;
26
26
  jsondata.app_url = data.app_details ? data.app_details.app_url : null;
27
- jsondata.browser_stack_local = data.capability_details ? data.capability_details.browser_stack_local: null;
28
- jsondata.mediaurls =data.media_details ? data.media_details.map(media => media.media_url):null;
27
+ jsondata.browser_stack_local = data.capability_details ? data.capability_details.browser_stack_local : null;
28
+ jsondata.mediaurls = data.media_details ? data.media_details.map(media => media.media_url) : null;
29
29
 
30
- console.log("media urls :" + jsondata.mediaurls );
30
+ //console.log("media urls :" + jsondata.mediaurls );
31
31
 
32
32
 
33
- // console.log("json data :" + JSON.stringify(jsondata));
33
+ console.log("in get execution details json data :" + JSON.stringify(jsondata));
34
34
 
35
35
  return jsondata;
36
36
  } else if (response.status === 401) { // Unauthorized, token expired
@@ -22,7 +22,7 @@ async function getSuiteDetails(frothUrl, token, id) {
22
22
  jsondata.automation_suite_id = data.id == null ? 0 : data.id;
23
23
  jsondata.automation_suite_name = data.automation_suite_name == null ? "" : data.automation_suite_name;
24
24
  jsondata.test_data_id = data.test_data_id == null ? 0 : data.test_data_id;
25
- jsondata.browser_stack_urls = data.browser_stack_urls == null ? "" : data.browser_stack_urls;
25
+ // jsondata.browser_stack_urls = data.browser_stack_urls == null ? "" : data.browser_stack_urls;
26
26
  jsondata.script_details = data.script_details == null ? [] : data.script_details;
27
27
  // console.log("automation_script_id:" + JSON.stringify(jsondata.automation_script_id))
28
28
  const automationScripts = jsondata.script_details.reduce((obj, item) => {
@@ -35,7 +35,7 @@ async function getSuiteDetails(frothUrl, token, id) {
35
35
  jsondata.test_sequence = data.test_sequence;
36
36
  // console.log("automation_script_ details:" + JSON.stringify(BUFFER))
37
37
 
38
- // console.log("json data :" + JSON.stringify(jsondata));
38
+ console.log("json data :" + JSON.stringify(jsondata));
39
39
 
40
40
  return jsondata;
41
41
 
@@ -19,7 +19,7 @@ const commonconfig = {
19
19
  // This code runs before the test suite starts
20
20
  await setAllDetails.setEnvVariables();
21
21
  await setAllDetails.setLoginToken();
22
- const getExeDetails = await setAllDetails.setExecutionDetails();
22
+ await setAllDetails.setExecutionDetails();
23
23
 
24
24
  // await setAllDetails.setIntegrationsDetails();
25
25
  await setAllDetails.setSuiteDetails();
@@ -77,7 +77,7 @@ async function setExecutionDetails() {
77
77
  async function setSuiteDetails() {
78
78
  try {
79
79
  const getSuiteDetail = await getSuiteDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("AUTOMATION_SUITE_ID"));
80
- process.env.BROWSERSTACK_APP_PATH = getSuiteDetail.browser_stack_urls;
80
+ // process.env.BROWSERSTACK_APP_PATH = getSuiteDetail.browser_stack_urls;
81
81
  BUFFER.setItem("TESTDATA_ID", getSuiteDetail.test_data_id);
82
82
 
83
83
 
@@ -29,7 +29,7 @@ exports.config = deepmerge(commonconfig,
29
29
 
30
30
  {
31
31
  user: capabilities.userName,
32
- key: capabilities.accessKey,
32
+ key: Buffer.from(capabilities.accessKey, 'base64').toString('utf-8'),
33
33
  // debug: true,
34
34
  // execArgv: ['--inspect-brk'],
35
35
  services: PLATFORM === 'browserstack'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.94",
3
+ "version": "3.0.96",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",