Forum Discussion

erikgt's avatar
erikgt
Occasional Contributor
21 days ago
Solved

'Failed to open result JSON file' error with PDF.GetTextContent and PDF.ConvertToText

Both with PDF.ConvertToText and the new PDF.GetTextContent we now see the following error:


using TestExecute 15.77.6.11. Now, we've made quite a leap upgrading from 15.70, so not sure in which intermittent version the bug was introduced.

Until this issue is resolved, can we downgrade just this plugin as a workaround?

Code snippet:

  const tempPath = aqEnvironment.GetEnvironmentVariable('TEMP');
  const fullPdfPath = aqFileSystem.IncludeTrailingBackSlash(tempPath) + pdfFileName;

  Log.Message('Full PDF path: ' + fullPdfPath);

  // Controleer of het PDF bestand bestaat
  if (!aqFile.Exists(fullPdfPath)) {
    Log.Error('PDF file not found: ' + fullPdfPath);
    return;
  }

  let pdfText = PDF.ConvertToText(fullPdfPath);

Also, how do I open a support ticket: The link https://support.smartbear.com/testcomplete/message/ doesn't seem to work anymore?

  • We have been working with TestComplete support on this issue for weeks. We are running our test cases through Azure pipelines against VDI.  It's still an issue in the latest TE version 15.78, but a development change will be provided in the next TE 15.79 release.  The work-around provide in the mean time is to create a "TestComplete\15.0\ folder in your user directory. This allowed our test case to complete successfully.  We no longer receive the "Failed to open result JSON file" error. 

    Install the latest version of TE (15.78) and add this to see if it corrects your issue.

    Example: C:\Users\<User>\AppData\Local\SmartBear\TestComplete\15.0\

5 Replies

  • Dbowerman1's avatar
    Dbowerman1
    Occasional Contributor

    We have been working with TestComplete support on this issue for weeks. We are running our test cases through Azure pipelines against VDI.  It's still an issue in the latest TE version 15.78, but a development change will be provided in the next TE 15.79 release.  The work-around provide in the mean time is to create a "TestComplete\15.0\ folder in your user directory. This allowed our test case to complete successfully.  We no longer receive the "Failed to open result JSON file" error. 

    Install the latest version of TE (15.78) and add this to see if it corrects your issue.

    Example: C:\Users\<User>\AppData\Local\SmartBear\TestComplete\15.0\

    • erikgt's avatar
      erikgt
      Occasional Contributor

      Thank you so much! This is a functioning workaround. We had already figured the issue didn't occur on systems where TestComplete was installed next to TestExecute -- so that explains it.

    • erikgt's avatar
      erikgt
      Occasional Contributor

      Thank you. I managed to create a case through the chatbot after opening a page in through a 'Private tab' in my browser: Please be advised that your chatbot is being blocked by common ad-blocker plugins so wouldn't show up for customers using these. And ad-blockers are commonly enforced in companies browser policies for their anti malware functionality.

      Also, the main support website still shows the regular flow of making a case, which as of now doesn't function anymore. In my opinion, the regular way of creating a case should remain next to the chatbot

       

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    Downgrade for that plugin is not recommended, better use the work around provided by Dbowerman1​ and wait for 15.79 release.

    👍 Found it helpful? Click Like
    ✅ Issue resolved? Click Mark as Solution