Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber-Nagios wrong return #94

Open
Nicolas4 opened this issue Jun 5, 2015 · 0 comments
Open

Cucumber-Nagios wrong return #94

Nicolas4 opened this issue Jun 5, 2015 · 0 comments

Comments

@Nicolas4
Copy link

Nicolas4 commented Jun 5, 2015

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant