I want to capture output which I'm running from the cucumber feature file.
I created one shell script program and placed it in /usr/local/bin/ so it can be accessible from anywhere in system.
abc_qa.sh -
arg=$1
if [[ $arg = 1 ]]
then
echo $(date)
fi
project structure of cucumber -
aruba -
.
├── features
│ ├── support
│ │ └── env.rb
│ └── use_aruba_cucumber.feature
├── Gemfile
Gemfile -
source 'https://rubygems.org'
gem 'aruba', '~> 0.14.2'
env.rb -
require 'aruba/cucumber'
use_aruba_cucumber.feature -
Feature: Cucumber
Scenario: First Run
When I run `bash abc_qa.sh 1`
I want to capture this abc_qa.sh program output in the cucumber itself and compare this date is right or wrong by using any kind of simple test and make this test as a pass.