Giter VIP home page Giter VIP logo

check_casperjs's People

Contributors

chrnie avatar phibos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

check_casperjs's Issues

Often: tmp file does not exists .. ./check_casperjs.pl line 247, if check failed

Hello,

I love this great plugin and use it for one of your tests ... sometimes, if the test case fails, than I get

.. /tmp/check_casper/tmp. does not exists. I can force it, with a failed test:

PASS HTTP Request success
PASS Starting
FAIL Login was failed
#    type: assertTextExists
#    file: tests/portal_login.js
#    subject: false
#    text: "Merchant" 

If I get this back on the while calling the check itself:

~$ casper test tests/portal_login.js

than the plugin throws the above error message. It would be create, if the plugin can be enhanced a bit, for a better error handling. Maybe we can do it, with a better testcase for check_casperjs.pl ...

cu denny

tests/Resurrectio_icinga.org.js produces perfdata that is invalid

In running the default test case specified in the readme, the plugin output contains performance data that is invalid:

$ ./check_casperjs.pl -w 30000 -c 60000 -t tests/Resurrectio_icinga.org.js
OK - PASS Find an element matching: #main-header .container.clearfix in 8.075 s
PASS Find an element matching: .et_pb_section.et_section_regular:nth-child(2) in 0.086 s
PASS Find an element matching: xpath selector: //*[normalize-space(text())='Contact'] in 0.083 s
PASS Find an element matching: .et_pb_section.et_section_regular:nth-child(2) in 0.086 s
|'Find an element matching: #main-header .container.clearfix'=8.075s;30;60;0;60 'Find an element matching: .et_pb_section.et_section_regular:nth-child(2)'=0.086s;30;60;0;60 'Find an element matching: xpath selector: //*[normalize-space(text())='Contact']'=0.083s;30;60;0;60 'Find an element matching: .et_pb_section.et_section_regular:nth-child(2)'=0.086s;30;60;0;60 'total'=8.33s;30;60;0;60

specifically the xpath selector test has single quotes that are passed back to the plugin unescaped. as a result the following performance data will be mangled by any perfdata processor in nagios/icinga:

'Find an element matching: xpath selector: //*[normalize-space(text())='Contact']'=0.083s;30;60;0;60

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.