test::bdd::cucumber::model::line(3pm) [debian man page]
Test::BDD::Cucumber::Model::Line(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Model::Line(3pm)NAME
Test::BDD::Cucumber::Model::Line - Model to represent a line in a feature file
VERSION
version 0.11
DESCRIPTION
Model to represent a line in a feature file
ATTRIBUTES
number
The line number this line represents
document
The Test::BDD::Cucumber::Model::Document object this line belongs to.
raw_content
The content of the line, unmodified
METHODS
indent
Returns the number of preceding spaces before content on a line
content
Returns the line's content, with the indentation stripped
content_remove_indentation
Accepts an int of number of spaces, and returns the content with exactly that many preceding spaces removed.
debug_summary
Returns a string with the filename and line number
filename
Returns either the filename, or the string "[String]" if the document was loaded from a string
is_blank
is_comment
Return true if the line is either blank, or is a comment.
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::Model::Line(3pm)
Check Out this Related Man Page
Test::BDD::Cucumber::Harness(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Harness(3pm)NAME
Test::BDD::Cucumber::Harness - Base class for creating harnesses
VERSION
version 0.11
DESCRIPTION
Harnesses allow your feature files to be executed while telling the outside world about how the testing is going, and what's being tested.
This is a base class for creating new harnesses. You can see Test::BDD::Cucumber::Harness::TermColor and
Test::BDD::Cucumber::Harness::TestBuilder for examples, although if you need to interact with the results in a more exciting way, you'd be
best off interacting with Test::BDD::Cucumber::Harness::Data.
METHODS / EVENTS
feature
feature_done
Called at the start and end of feature execution respectively. Both methods accept a single argument of a
Test::BDD::Cucumber::Model::Feature.
background
background_done
If you have a background section, then we execute it as a quasi-scenario step before each scenario. These hooks are fired before and after
that, and passed in the Test::BDD::Cucmber::Model::Scenario that represents the Background section, and a a dataset hash (although why
would you use that?)
scenario
scenario_done
Called at the start and end of scenario execution respectively. Both methods accept a Test::BDD::Cucmber::Model::Scenario module and a
dataset hash.
step
step_done
Called at the start and end of step execution respectively. Both methods accept a Test::BDD::Cucmber::StepConcept object. "step_done" also
accepts a Test::BDD::Cucumber::Model::Result object.
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(3pm)
hi
i can't convert a string to a new line character via this command:
sed -e "s/<string>/\n/g" source > target
all it does is change <string> to n. is there anything wrong? (7 Replies)
filename contains:
123 4
1234 5
12345 689
i want result:
1234
12345
12345679
cat filename | awk '{print $1, $2, $3}' will get my result, but too many $$s.
sed -e 's///g' filename will take care one space, will take 2 spaces.
is it a short way to do this ? (7 Replies)
Hi,
Below is my output file: (The below line has multiple spaces bet charc and I want to replace spaces with "," only for the first line)
NYCCMS97KJ931 01-JUN-08 1214957
I want this to be:
... (5 Replies)
hi all
this is the part i am facing a problem
eg data: filename : tr1
+ T 40
this is a sample record in that file ... the value of T can be anything, but will be a single character.
i need to cut from field two, and i am using this command
cut -d " " -f2 tr1 >tr3
and the o/p is ... (7 Replies)
Hi,
I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is.
I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Question:
What would be the best way to add a CR|\n|LF to the last line of a file if it doesn't have one and only if it doesn't have one?
Problem:
I get a text file in unix (HP-UX) and the last line gets ignored in processing because it does not have a CR or LF at the end of the line.
... (6 Replies)
If i have text file how do i find the line with the nth occurance of a certain string, so in example below i want line number of 3rd occurance of COD1 which should be line 7
COD1
COD2
COD2
COD1
COD2
COD2
COD1 (7 Replies)
I am trying to find a way to create a script which will extract the first line of a file and then rename the file (or create a new file with the same content as the old file) using the first line as the name. The first line being a single word, that is. I am hopeless at programming, if anyone can... (5 Replies)
I want to count the number of occurence of a particular string with spaces from one text file.
I found one posting of a similar kind but looking for a string without spaces, there were lots of reply's which work when the string does not have any spaces between but in my case i must look into a... (7 Replies)
Hi:
I'm trying to write a script that reformats a given document (edit the content of a given document) , I want to add a new line \n after each ; in the document.
Regards (6 Replies)
I need to read temp.$i file content line by line through while loop but somehow the '\' do not appear in output.. Can someone guide how to read this exact content line by line in unix :
if
then
cat temp.$i | head -1 # the file content appears fine
while... (13 Replies)
Bash Macosx 10.9
I have a txt file formatted as follows:
filepath1,countryX
filepath2,countryY
filepath3,countryX
...etc
How can I read this line by line? Esentially I want to read filepath1 and run a command based on it's correlation with the country on the same line, then move onto... (8 Replies)
I have a file
Line 1 a
Line 22
Line 33
Line 1 b
Line 22
Line 1 c
Line 4
Line 5
I want to delete all lines before last occurrence of a line which contains something which is defined in a variable. Say a variable var contains 'Line 1', then I need the following in the output.
... (21 Replies)
Hi all,
I am fairly new to UNIX and I was wondering if you could provide me with some help! Lets say i have a file as below :
Line 1
Line 2
Line 3
ABC|12|4|2
Now the number 4 in bold, this number will represent the number of row there is in the file excluding the header and footer... (10 Replies)
Hello,
My OS is Windows 10 and I am using Cygwin.
The content of file 1 is:
XXX string1
The content of file 2 is
4.156
2.312
3.527
1.687
etc....
I need to replace string 1 in file 1 by the content of line n in file 2.
So the expected output is e.g.:
XXX 3.527 (for n = 3)
I... (14 Replies)