in reply to Re^4: Time elapsed with Selenium Test
in thread Time elapsed with Selenium Test

Your print statements make the output of your tests non-conformant.

This is not a problem if you are only ever looking at your tests yourself. But if you want to use other programs, like prove or some CI frameworks, they care about well-formed TAP

Replies are listed 'Best First'.
Re^6: Time elapsed with Selenium Test
by Chaoui05 (Scribe) on May 18, 2016 at 08:11 UTC
    Oh Thanks ! I understand . But i use cprintf ( exactly) because i would like to add some color to differentiate my browsers . How can i do also ? To stay compatible with "TAP" ? I used before "diag" but for this reason i had to change.
      Corion already suggested to prefix your Output with "#". That should be put in front of the coloring so that the test harness recognizes it.
        I'am coming back to you. Just to finish . If i have my "#" colored in beginning of my line. Something like :  cprintf ("#\x037browser chrome\x030\n"); #browser chrome (the ouput)

        Is it ok for TAP ?

        Thanks in advance !

        Thank you . I thought for something different but it's ok.