question

droker avatar image
droker asked Yaseen answered

What is the best way to display a table of results

Hi Everyone, I am trying to summarize some data extracted from a test run and display it in a user readable format There are going to be headings and then a table of data. So for example Test Case 1 Results voltage_a Voltage_B Voltage_C Voltage_D 110 115 120 240 56 98 89 120 Any ideas on how to get the data out like that? at the moment I have it in a number of lists, so one for the data, and one for the column headings and another list containing the headings? There are about 22 columns of data i need to export Any help would be greatly received Thanks Dean
iTestresults and reporting
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Yaseen avatar image
Yaseen answered
Hi Dean, We could make use of the "format" action in Tcl or iTest substitution to get the formatted output. Attached is the sample test case demonstrating the same. In the test case I have written the output to a file, under the store response. Kindly change the path of the file to your suitable location. And you need the complete output to be as a response for the step, then you could read this outputted file. Hope this helps! Thanks! [link text][1] [1]: /storage/temp/3563-sample1.fftc

sample1.fftc (7.7 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.