auxesis / cucumber-nagios

Systems testing plugin for Nagios with Cucumber + Webrat + Mechanize + Net::SSH
http://cucumber-nagios.org/
MIT License
257 stars 43 forks source link

Cucumber-Nagios wrong return #94

Open Nicolas4 opened 9 years ago

Nicolas4 commented 9 years ago

Hello everybody,

I'm a French student having a work experience in a clinic. I would like to have End User Experience tests on Google website to train myself before to adapt them on the clinic Intranet website. I’m working on a VM Debian 8. I install, as I saw it on the monitoring-fr.org tutorial (http://wiki.monitoring-fr.org/supervision/eue/start), those programs : apt-get install ruby rubygems ruby-dev libxml2-dev libxslt-dev libssl-dev build-essential gem update gem install cucumber cucumber-nagios watir watir-webdriver Even if I had difficulties to test my scenario with Cucumber, I succeed executing this command : cucumber search.feature –r steps/ -r support/. That’s where I need Cucumber-Nagios. I would like to test this scenario with an other computer whose job is to be the Nagios server. But firstly, I test my command on the client machine : the VM Debian 8 in which I have executed Cucumber tests. I execute the following command : cucumber-nagios search.feature In return, I have CUCUMBER OK – Critical : 0, Warning : 0, 0 okay | passed=0 ; failed=0 ; nosteps=0 ; total=0 ; time=0 whereas I would prefer to have CUCUMBER OK – Critical : 0, Warning : 0, 3 okay | passed=3 ; failed=0 ; nosteps=0 ; total=0 ; time=x If I go a repertory higher, in the project repertory and execute : cucumber-nagios features/search.feature, I don’t have the same result. Here it is : CUCUMBER OK – Critical : 0, Warning : 0, 0 okay | passed=0 ; failed=0 ; nosteps=0 ; total=0 ; time=40 Note that the time has changed. Indeed, the scenario starts to be executed, the web navigator opens and does the first step of my scenario : go on Google website. Then, the navigator closes suddenly and lets me see the result I have copied above. I let a more important time to my command to be executed, adding –t 150 to my cucumber command, to let the scenario be fully executed. But the result was the same. I can’t believe the problem is due to a lack of time because the scenario always stops at the same moment (after the first step has been executed) and that, no matter if this step has been executed in 10 or 60 seconds. By default, I have the Iceweasel navigator on my Debian8VM. I uninstall it and install Firefox, following this tutorial http://www.woinux.fr/installer-firefox-sous-debian-7-wheezy-131 but the problem is the same.

Would you have an idea please ?