| || |
Reporter.Logevent dictionary parameter names
First off, this is what I am trying to do. I found this post
that shows how to call logevent passing a html formatted string to be correctly shown in QTP's report without having the leading "<" show up. Doing this leaves out the "Description" entry in the QC database, but I found if you pass something to the dictionary object for the item "StepInfo" like
<font class="small">Code:</font><hr /><pre> dicMetaDescription("StepInfo") = strContent </pre><hr />
then it writes to the QC database, allowing both places to have the detailed information.
My next goal, that I can not seem to figure out, is how to write something to the actual and expected columns in the QC database. I know that I can use the StepFactory to add it on the fly, but then there are two steps written to the database - one that was written immediately and one that is written at the completion of the test by the normal QTP process. I was hoping to catch the step and update it on the fly, but it seems to store them in some "in memory database" and then dump them to QC once the test is completed so this will not work either.
Sorry for the long post, but the short of it is, does anyone know if there is a dictionary parameter that can be used with logevent that will store out the expected and actual columns when the test completes? Or if there is a better way to do this that I am to blind to see at this moment?
Re: Reporter.Logevent dictionary parameter names
Well There is another way to do it. Report everything that you want to a Excel file and at the end of the test upload it to QC run.