This is a migrated thread and some comments may be shown as answers.

The "html" option for ArtOfTest.Runner.exe does not successfully generate a .html results file

1 Answer 26 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 09 Mar 2017, 04:47 PM

Hello,

 
I've added the "html" option to the ArtOfTest.Runner command line call, but it is not successfully generating the .html results files. The .html files are being generated - but it is only 1 KB in size, and opens into a blank page. The .aiiresult file is still being generated successfully.

E.g:  "C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe" list="%WORKSPACE%\acs_web\ACS\TestLists\ACS_%%B_%TestType%.aiilist" out=%WORKSPACE%\output\%Group%%%B html

This is the full contents of the 1 KB  "ACS_InternetExplorer_Assessment 131335215157211413.html" for example:

<!DOCTYPE html><html lang="en">
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Telerik Test Studio Results</title>
    <style id="test_studio_css_styles" type="text/css">


Any idea why this is happening? I looked at the logs and there are a lot of Exceptions being thrown, most of which are related to invalid filepaths or System.IO.FileNotFoundException. It won't let me attach a .txt file so here's some examples:

 

[03/09 07:18:16,ArtOfTest.Runner.exe(7676:1),TestStudio] Loader.IndexLoadedSerializationTypes() : EXCEPTION! (see below)
     Outer Exception Type: System.Reflection.ReflectionTypeLoadException
     Message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
     HRESULT: 0x80131602 (Official ID (if app.) = COR_E_REFLECTIONTYPELOAD, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5634)
     Call Stack:
          at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
          at System.Reflection.RuntimeModule.GetTypes()
          at System.Reflection.Assembly.GetTypes()
          at ArtOfTest.Common.Design.Loader.IndexLoadedSerializationTypes(Assembly assembly)

     LOADER EXCEPTION #1
          Outer Exception Type: System.IO.FileNotFoundException
          Message: Could not load file or assembly 'IKVM.OpenJDK.XML.API, Version=8.1.5717.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The system cannot find the file specified.
          HRESULT: 0x80070002 (Official ID (if app.) = 2147942402, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_FILE_NOT_FOUND)

...

[03/09 07:19:23,ArtOfTest.Runner.exe(7676:1),TestStudio] AutomationHostState.LoadFailureImageFromDisk() : Invalid file path to load the bitmap from: C:\Users\admin\AppData\Local\Temp\ACS_Chrome_Assessment 131335354773102490_files\AAAS-3626 Verify -Machine Secret Lifetime in Hours-Text Input_0_ImageOnFailure.png
[03/09 07:19:23,ArtOfTest.Runner.exe(7676:1),TestStudio] AutomationHostState.LoadFailureDOMFromDisk() : Invalid file path to load the DOM from: C:\Users\admin\AppData\Local\Temp\ACS_Chrome_Assessment 131335354773102490_files\AAAS-3626 Verify -Machine Secret Lifetime in Hours-Text Input_0_DomTreeOnFailure.txt
[03/09 07:21:29,ArtOfTest.Runner.exe(7676:1),Error] RunResultHtmlExporter.Export() : EXCEPTION! (see below)
     Outer Exception Type: System.NullReferenceException
     Message: Object reference not set to an instance of an object.
     HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
     Call Stack:
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.WriteImagesToSream(StreamWriter htmlWriter, Dictionary`2 resultsWithPaths)
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.AddImages(String tempHtmlPath, String htmlFilePath, Dictionary`2 resultsWithPaths)
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.Export(String filePath, Dictionary`2 resultsWithPaths)

[03/09 07:21:29,ArtOfTest.Runner.exe(7676:1),Uncategorized] CommandLineRunner.Log() : Result saved with path: 'c:\jenkins\workspace\QA_ACS_Telerik\output\Chrome\ACS_Chrome_Assessment 131335354773102490.aiiresult'.

Thanks,

Michael

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 13 Mar 2017, 02:14 PM
Hi Michael,

There is a support ticket of yours with ID 1097267 submitted for the same issue. Could you please refer to it for further details. Thanks! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or