Modifying Report formats
Question ID: 104115
1
0

I’m trying to modify the output report. I need a way to break lines in the report.

reporter.reportevent micDone, "Info" , "List of info"

I want to list all the input information I used for a particular test into one report but with line breaks separating the information. Any help would be great.

Marked as spam
Posted by (Questions: 2, Answers: 3)
Asked on May 10, 2010 6:01 pm
42 views
Answers (2)
3
Private answer

Since it is VBScript, you can also use the constant vbCrLf for a return carriage, and just concatenate it onto your report string wherever you need, just like the Chr(13) Manuli suggested. Works the same way, just easier for some people to read in the script.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on May 18, 2010 2:42 pm
1
Private answer

You may want to try inserting a return sequence using the special character ''/n'' for new line. This will only add new lines to the section of the report and might not be what you are looking for - but I have used this successfully with simple message boxes and it helps.
You may be able to output that information into output parameters and then see how it gets formatted but I am not sure.

Marked as spam
Posted by (Questions: 1, Answers: 8)
Answered on May 12, 2010 7:25 pm
0
Could you show me an example?
( at May 13, 2010 9:04 pm)
0
I think the easiest way here would be to use the Chr(13) like so: Reporter.ReportEvent micPass, ''Checkpoint One'', ''I want this data element to be on the first line '' & DataOutputOne & Chr(13) & ''And this data element to be on line two '' & DataOutputTwo Hope this helps - its been a while since I tried anything like this (the /n must have been in Java - sorry about that)
( at May 14, 2010 1:54 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top