Forum Discussion

nimishbhuta's avatar
nimishbhuta
Frequent Contributor
6 years ago
Solved

How to Save PDF file to text format

Hi All,    I need to use TestComplete to save the PDF file into text format. The scenario is as follow :   Scenario  1) It is a web based application. In the application there is button,whe...
  • TanyaYatskovska's avatar
    10 years ago

    Hi Lvl,

     

    After TestExecute executes your TestComplete project, it will post a test log to the following folder:

    <Your TestComplete Project>\Log\

    This folder should contain *.tcLog files with the test results. Once you open this project in TestComplete, the tool will obtain all test results from this folder and show them in Project Explorer.

     

     Another way is to export the test log at the end of the test execution:

     

    //JScript
    Log.SaveResultsAs(FileName, lsXML);

    The Log.SaveResultsAs method will export the test log in a format that TestComplete will be able to read.

  • AlexKaras's avatar
    AlexKaras
    10 years ago

    Hi,

     

    It is possible to see logs from TestExecute (TE) test runs in TestComplete (TC) environment and Tanya's reply was absolutely correct.

    As she wrote, TE saves original test log in the Log\ subfolder of your test project (where .mds file is located). Referring the image from your initial post, this will be C:\LVL_TestComplete\TMI\OPC\OPC\Log one.

    TE has the default setting to display test log on test run end. In order to do this, it exports the log as an .mht file into temporary folder and opens the exported file in the browser. This is what you see on the screen after test run.

    When you open your test project in TC, you will see logs generated by TC and TE under the Logs node in the Project Explorer.

    TE has no means to open and display original test logs because TE is just a runtime engine to execute test code. It is possible to open test logs from TE (by right-clicking TE icon in the system tray), but the opened logs will always be an exported copies (.mht) of the original test logs. Original test logs can be opened with TC only.

     

    Did the above make things more clear?