test::bdd::cucumber::harness::data(3pm) [debian man page]
Test::BDD::Cucumber::Harness::Data(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Harness::Data(3pm)NAME
Test::BDD::Cucumber::Harness::Data - Builds up an internal data representation of test passes / failures
VERSION
version 0.11
DESCRIPTION
A Test::BDD::Cucumber::Harness subclass which collates test data
ATTRIBUTES
features
An array-ref in which we store all the features executed, and completed. Until "feature_done" is called, it won't be in here.
current_feature
current_scenario
current_step
The current feature/step/scenario for which we've had the starting method, but not the "_done" method.
feature
feature_done
Feature hashref looks like:
{
object => Test::BDD::Cucumber::Model::Feature object
scenarios => []
}
scenario
scenario_done
Scenario hashref looks like:
{
object => Test::BDD::Cucumber::Model::Scenario object
dataset => Data hash the scenario was invoked with
steps => [],
}
step
step_done
Step hashref looks like:
{
context => Test::BDD::Cucumber::StepContext object
result => Test::BDD::Cucumber::Model::Result object (after step_done)
}
feature_status
scenario_status
step_status
Accepting one of the data-hashes above, returns a Test::BDD::Cucumber::Model::Result object representing it. If it's a Feature or a
Scenario, then it returns one representing all the child objects.
find_scenario_step_by_name
Given a Scenario and a string, searches through the steps for it and returns the data-hash where the Step Object's "<-"text>> matches the
string.
AUTHOR
Peter Sergeant "pete@clueball.com"
LICENSE
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl
perl v5.14.2 2012-05-20 Test::BDD::Cucumber::Harness::Data(3pm)
Check Out this Related Man Page
Test::BDD::Cucumber::StepFile(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::StepFile(3pm)NAME
Test::BDD::Cucumber::StepFile - Functions for creating and loading Step Definitions
VERSION
version 0.11
DESCRIPTION
Provides the Given/When/Then functions, and a method for loading Step Definition files and returning the steps.
SYNOPSIS
Defining steps:
#!perl
use strict; use warnings; use Test::More;
use Test::BDD::Cucumber::StepFile;
use Method::Signatures; # Allows short-hand func method
Given 'something', func ($c) { print "YEAH!" }
When qr/smooooth (d+)/, func ($c) { print "YEEEHAH $1" }
Then qr/something (else)/, func ($c) { print "Meh $1" }
Step qr/die now/, func ($c) { die "now" }
Loading steps, in a different file:
use Test::BDD::Cucumber::StepFile;
my @steps = Test::BDD::Cucumber::StepFile->load('filename_steps.pl');
EXPORTED FUNCTIONS
Given
When
Then
Step
Accept a regular expression or string, and a coderef. Some cute tricks ensure that when you call the "load()" method on a file with these
statements in, these are returned to it...
load
Loads a file containing step definitions, and returns a list of the steps defined in it, of the form:
(
[ 'Given', qr/abc/, sub { etc } ],
[ 'Step', 'asdf', sub { etc } ]
)
AUTHOR
Peter Sergeant "pete@clueball.com"
LICENSE
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl
perl v5.14.2 2012-05-20 Test::BDD::Cucumber::StepFile(3pm)
Hi All,
I read through the already existing AWK topics but could not find answers, so please help me out here:
Question1)
Scenario: there is a file containing lines and in each line there is a date written. (e.g. blabla blabla blabla Jun 27 )
I would like to catch those date information into... (4 Replies)
I had different problem scenarios with IF statement. Can any expert please enlighten me on the difference with these scenarios. Thank you.
1st Scenario:
testdate=`date +%Y%m`
test=`cat /var/log/database0.$testdate*.log | grep "Errors found during processing" | tail -10`
if
then
... (4 Replies)
I'm new to UNIX and have got some of the basics down, but I've got a puzzle I'm having difficulty working out. :confused:
Scenario:
Have FILE_A.JPG in DIR_A
Need to copy FILE_A 200 times and rename it 200 different names. List of 200 names in NAME_FILE.TXT
After renaming 200 files,... (4 Replies)
Scenario:
Step 1. I'm logging into AIX server using user id called user1
Step 2. I'm traversing to home directory of user2
Note: This user2's home directory has the permissions drwxr-s---
Step 3. I'm issuing command pwd there. I'm getting the expected output.
Step 4. I'm issuing the... (3 Replies)
Hello,
I am trying to find a solution which could be simple rather than coding unnecessary code. Scenario I have is :-
I have a line sequential text file and while reading the file I need to call some kind of program which does data transfer, and read next so on... The issue I have is I have... (4 Replies)
Greetings All,
Need some help, your input is appreciated.
Scenario:
I have five files, each has one line with comletely different content. I execute the command to combine all the five lines of content into a single file.
Goal:
I would like to take that single file that has the... (3 Replies)
Hi
I would like to change certain columns in a file depending on the users choice of input and which columns they would like to change.
Here is my csv file:
SITEID,CELLID,Access Grant Blocks Reserved
1,1A,5
1,1B,2
1,1C,3
2,2A,7
2,2B,4
2,2C,0
If for example they would... (9 Replies)
Scenario:
Each of several .txt files contain the following (but perhaps with some minor variations due to code version running on the devices from which the text was extracted):
<output omitted>
SWITCH1#show proc cpu hist
1... (4 Replies)
Hi,
I want to concatenate the texts in the file but there are different scenario's.
Ist Scenario.
The contents of file has id`language,sequence number,text,language
Here id`language is a key pair to identify the correct language.
Sequnce number is the order the text being inserted.
Text... (3 Replies)
Hi,
To all the Unix gurus this should be a simple task, but as a newbie I'm finding it hard to crack this. Any help is highly appreciated...
Scenario:
Step 1 : Move zip file from FTP folder to WORK folder
Step 2:
Unzip the file "Sample_YYYYMMDDHHMMSS.tar.gz" which contains many file... (10 Replies)
Hello Friends,
I have the below scenario in my current project. Suggest me which tool ( perl,python etc) is best to this scenario. Or should I go for Programming language ( C/Java )..
(1) I will be having a very big file ( information about 200million subscribers will be stored in it ). This... (5 Replies)
Hi All,
This discussion involves getting a way to load different jars in different Operating Systems.
Case Scenario
---------------
I am working on a specific OS known as NSK. Its an unix flavour and powers the HP NSK Servers. I am running one of my middleware app ( a java application) on... (3 Replies)
Hello ,
I have to write a bash script. I will explain the logic based on a scenario.
Scenario :
Suppose I have few files in a Folder X :
FILE_201508.list
FILE_201510.list
FILE_201507.list
abc_201510.csv
xyz_201508.csv
abc_201507.csv
def_201507.csv
1) Now ,... (3 Replies)
Hi All,
I'm a bit confused about assigning IP address from IP Ranges.
I am using this scenario below to understand.
Scenario
Adatum.com an international IT solutions company, is launching 12 new branches in a new country where they currently have no existing branches. The sWin CIO has asked... (3 Replies)
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)