Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Time elapsed with Selenium Test

by Corion (Patriarch)
on May 18, 2016 at 08:05 UTC ( [id://1163304]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1163304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-19 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found