Forum Discussion

FabriceB's avatar
FabriceB
Occasional Contributor
7 years ago

Using testexecute command line with export log on html format

I play a suite with testexecute by a command line, and i want to export results with /el:FileName.html

"C:\Program Files (x86)\SmartBear\TestExecute 11\Bin\TestExecute.exe" "D:\CohorteV2\TestsAutomatiques\VlzTestApp-Supervision\VlzTestApp-Supervision.pjs" /r /e /SilentMode /elSmiley Very Happy:\TestsExecResults\Supervision_%_date%_%_time%.html

When my test is passed, i have a file.html but when i'm trying to open it, it is not html, it s text with a strange format like This

From: Subject: TestComplete Log Files MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=A8B368966EE44B2B4192A268DA33F90"; type="text/html" This is a multi-part message in MIME format. ------=A8B368966EE44B2B4192A268DA33F90 Content-Type: text/html Content-Transfer-Encoding: base64 Content-Location: http://localhost/index.htm PCFkb2N0eXBlIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KCTx0aXRsZT5UZXN0Q29tcGxldGUgMTEg TG9nPC90aXRsZT4NCgk8bGluayByZWw9InN0eWxlc2hlZXQiIHR5cGU9InRleHQvY3NzIiBocmVm PSJkZWZhdWx0LmNzcyI+DQoJPG1ldGEgaHR0cC1lcXVpdj0iWC1VQS1Db21wYXRpYmxlIiBjb250 ZW50PSJJRT1lZGdlIj4NCgk8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9 InRleHQvaHRtbDtjaGFyc2V0PVVURi04Ij4NCjwvaGVhZD4NCjxib2R5IG9ucmVzaXplPSJkb1dp bmRvd1Jlc2l6ZSgpIj4NCgk8c2NyaXB0Pg0KCQl2YXIgbmF2ID0gbmF2aWdhdG9yLnVzZXJBZ2Vu dC50b0xvd2VyQ2FzZSgpOw0KCQl2YXIgaXNPcGVyYSA9ICh3aW5kb3cub3BlcmEgIT0gbnVsbCk7 DQoJCXZhciBpc0ZGID0gKG5hdmlnYXRvci5wcm9kdWN0ID09ICJHZWNrbyIpOw0KCQl2YXIgaXNJ

If i make this export with .mht format it works. Is there anyhting to do to have the same result in
html correct format to view my report ?

Thanks u all

Fabrice
  • FabriceB's avatar
    FabriceB
    7 years ago
    Yes its true, î did not think about it
    Acter check, my version 11.31.2420.11 documentation contains the el: option, but mot on HTML format...damned😭
    I tank u so
    Fabrice
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    You're using TestExecute 11... I believe the ability to export logs in different formats via command line was added later.

    • FabriceB's avatar
      FabriceB
      Occasional Contributor
      Hello all, Hello tristaanogre,
      Thx you for this information...it is possible to be sure ? i can t find the testexecute 11 documentation to compare with the V12?
      Thx
      regards
      FabriceB
      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        If you have TC/TE installed, the command line help should be included with the application.