test::bdd::cucumber::stepcontext(3pm) [debian man page]
Test::BDD::Cucumber::StepContext(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::StepContext(3pm)NAME
Test::BDD::Cucumber::StepContext - Data made available to step definitions
VERSION
version 0.11
DESCRIPTION
The coderefs in Step Definitions have a single argument passed to them, a "Test::BDD::Cucumber::StepContext" object. This is an attribute-
only class, populated by Test::BDD::Cucumber::Executor.
ATTRIBUTES
data
Step-specific data. Will either be a text string in the case of a """ string, or an arrayref of hashrefs if the step had an associated
table.
stash
A hash of hashes, containing three keys, "feature", "scenario" and "step". The stash allows you to persist data across features,
scenarios, or steps (although the latter is there for completeness, rather than having any useful function).
feature
scenario
step
Links to the Test::BDD::Cucumber::Model::Feature, Test::BDD::Cucumber::Model::Scenario, and Test::BDD::Cucumber::Model::Step objects
respectively.
verb
The lower-cased verb a Step Definition was called with.
text
The text of the step, minus the verb. Placeholders will have already been multiplied out at this point.
harness
The Test::BDD::Cucumber::Harness harness being used by the executor.
matches
Any matches caught by the Step Definition's regex. These are also available as $1, $2 etc as appropriate.
METHODS
background
Boolean for "is this step being run as part of the background section?". Currently implemented by asking the linked Scenario 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::StepContext(3pm)
Check Out this Related Man Page
Test::BDD::Cucumber::Manual::Architecture(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Manual::Architecture(3pm)NAME
Test::BDD::Cucumber::Manual::Architecture - Structural Overview
VERSION
version 0.11
INTRODUCTION
This short document exists to give you an idea how the different components of this distribution fit together.
MODELS
The core of a Cucumber-based test suite are the feature files and the step definitions files. By convention, these are saved under
"/features/" and "/features/step_definitions/" respectively.
The feature files are encapsulated by the classes in "Test::BDD::Cucumber::Model".
one to one
TBCM::Feature<----------------->TBCM::Document
| |
+-------------------+ |
| has many | has a | has many
V | V
TBCM::Scenario +----->TBCM::Line
| ^ ^
+----------------------------+ |
| has many |
V |
TBCM::Step---------------------------+
EXECUTOR
We build up a Test::BDD::Executor object, in to which we load the step definitions. We then pass this in a Test::BDD::Model::Feature
object, along with a Test::BDD::Model::Harness object, which controls interaction with the outside world.
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::Manual::Architecture(3pm)
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)
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)
Hi All,
I need the help to deploy or implement HP MC service guard 2 node cluster step by step procedure is any1 who can help me to send me the step by step procedure.
Thanks and Regards
Jahangir (12 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)
I posted a problem last week that had essentially two steps. Someone was kind enough to help me with the first step, but beacuse I didn't explain things well, left out the second step. I'm required to work in C Shell. I deeply appreciate any help, since I've never worked in a shell language... (4 Replies)
Thank all of you.
May you explain step by step where and how I will add pseudo code
Note : I have Linux 2.6.24-26-server on x86_64
dears kindly help me (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)
Hi,
Can anyone tell me if ii am right about this code.
childid=0;
for (i=1;i<3;i++){
if(childid=fork())
break;
}
fprintf("Print process id's and so on");
First process comes to fork.Comes to break; breakes out of loop,prints and dies. Child Just created continues from the... (5 Replies)
Hi to all,
I don't know if someone has done sometime a MS Excel Macro, that allows us to press F8 over the code
to see step by step, to mention something, how is running the code, which values take the variables,
if some loop is executing correct or where a error occurs, and some other... (7 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)
Hi ,
I have huge files around 400 mb, which has clob data and have diffeent scenarios:
I am trying to pass scenario number as parameter and and get required modified file based on the scenario number and criteria.
Scenario 1:
file name : scenario_1.txt
... (2 Replies)
Hi,
I need to run start_load function for two tables.
Step 1: if HMAX_TBL_ID and GMAX_TBLI_D are same for tab_name1 then echo message "all table ids are processed"
Step 2: go back and call start_load for tab_name2 and check if table id are same for table 2 too.
Please let me know how to... (5 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 100 Scripts, each containing 10-15 SQL's in them.
Each Script run for 40 mins to 1 hour 30 mins.
In the event of Failure in any step, if i re-start the Script, it will start running from the beginning. Which is waste of time. So in order handle this, i made the script to run from the... (7 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)