Forum Discussion

drpaudyal's avatar
drpaudyal
New Contributor
7 years ago

How can we export Test Complete's Test Logs to JSON format?

 We have to need to read/extract the Test Complete Reports to JSON format.  We are able to extract some data from 

RootDataLog.data. However, we need to be able to read the test result data inside the table and export it to JSON or XML format.

 

Any help appreciated.

 

 

3 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Each Test Complete report already has an XML structure. All you need is to convert it to JSON, using some tool or programmatically.

     

    RootDataLog.data file contains a reference to the actual test report file, which name looks like

    {73D9907A-F602-4ACB-9E2F-66D4EB494BD0}

    • drpaudyal's avatar
      drpaudyal
      New Contributor

      We are able to extract from error log  below from nodes which is summary, see  the file below, the problem is we are not able to access the test logs (tcReportAction) for individual reports data that is presented in child nodes of the root nodes.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE Nodes>

      -<Nodes version="1">


      -<Node name="root">


      -<Node name="log data">


      -<Node name="row0">

      <Node name="messages"/>

      <Prp name="end time" value="43199.5064796759" type="D"/>

      <Prp name="details" value="{23476A7D-F7B5-4B80-9477-461614CF6FC1}" type="S"/>

      <Prp name="index" value="0" type="I"/>

      <Prp name="testdata item" value="0" type="B"/>

      <Prp name="ownerid" value="-1" type="I"/>

      <Prp name="start time" value="43199.506471713" type="D"/>

      <Prp name="status" value="0" type="I"/>

      <Prp name="name" value="Script Test Log [US001_TC001_CREATE_QUERY\AUT_US001_TC001_CREATE_QUERY]" type="S"/>

      </Node>

      </Node>

      <Prp name="hassummary" value="0" type="B"/>

      </Node>

      </Nodes>