'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\