I am a new user of RPT. I have added some custom code to a test, the customary System.out.println("Hello world!") in the exec method of a class I have created.
However, I cannot see this outputted anywhere.
I then tried to write to a file. Once again, no file is created. It appears that my custom code is not executing at all.
Is there something that I need to "switch on" to get custom code up and running? Thanks.
I have tried what you have suggested and that seems to work fine.
However, now I have another problem. I have added custom code at two different points of my test. Within this custom code all I am simply doing is outputting the time in milliseconds.
However, when I view the test log it shows the output from my custom code one after the other. Please see 001.doc to see what I mean.
I am using two different classes for my custom code. Thanks.
How does one see the logs, where is the tes.getTestLogManager().reportMessage(
"BLAHBLAHBLAHBLAHBLAHBLAH"); log stored, do we have to configure anything to see the logs please help
Open the test log (see http://publib.boulder.ibm.com/infocenter/rpthelp/v8r1m0/topic/com.ibm.rational.test.lt.doc/topics/topenexechist.html) to the Events tab and search (CTRL+H -> Test Log Search) for your message events.
test.getTestLogManager... will place the messages in the RPT test log. Search the RPT help for "test log" to find out the details. But essentially you allow a run to complete, then right click the run results item in the Test Navigator and say "Display Test Log". Go to the events tab of the Test Log viewer and find your messages. For test runs all data is captured in the test log. For schedule runs, on a subset of the data is captured. This is controlled on the Test Log tab in the schedule editor. You may need to adjust your Test Log level for schedules, in order for your message to be present in the test log. See the help for more details.
Tags
Use the search field to
find all types of content in My developerWorks with that tag.
Use the slider bar to see more or fewer tags.
Popular tags shows the top tags for this particular type of content or application that you're viewing.
My tags shows your tags for this particular type of content or application that
you're viewing.