07-02-2007
if you need to learn subnetting, just go to easysubnet.com
10 More Discussions You Might Find Interesting
1. IP Networking
We have subnetted our Internal Network. We used an I.P. range of 172.16.16.0-254, 172.16.17.0-254, 172.16.18.0-254, 172.16.19.0-254 and mask 255.255.252.0. We created a subnet range of 172.16.10.0-254 and maske 255.255.255.0. Our routers are configure to route to approprate network. We are able... (2 Replies)
Discussion started by: cassy
2 Replies
2. Solaris
Hello Folks,
I have to restore from remote tape sun solaris 10. It has to have mirror raid.
I have to restore /,/usr, /var,/opt, /etc,/u01.
Could you please give me detailed steps to do the above?
I am new to solaris
Thanks
Ram (1 Reply)
Discussion started by: vr76413
1 Replies
3. IP Networking
Guys,
Anyone could help me understand subnetting. I know a bit in networking but there are things that I don't get them easily.
Thank You in advance. (1 Reply)
Discussion started by: etcpasswd
1 Replies
4. Shell Programming and Scripting
Hello,
I want to start learning Perl, but I need some expert's advice:) Could you recommend me any online manual or book to start with? I have some experience with bash and C, so I am not a complete newbie in programming. What's your advise to start with?
Thank you very much for your answers!
... (5 Replies)
Discussion started by: tsurko
5 Replies
5. AIX
please provide me with the steps to restore from mksysb tape. i m using AIX 5.3 TL 7 (2 Replies)
Discussion started by: debasis9
2 Replies
6. Red Hat
Hi,
Once we get a subscription (activation key), how to register a RHEL machine with RHN?
Which port to be open on my RHEL machine? How exactly it will connect to Red Hat Network?
Please give me some steps.
Regards,
Uday (2 Replies)
Discussion started by: uday123
2 Replies
7. Solaris
hi ..
i need procedure to install php on my solaris server..
i spent more than two weeks for this installation procedure..
but still couldn find a proper solution..
i have successfully enabled apache,tomcat,mysql,oracle ..
this is the only issue am having rite now and its bothering me a lot.. ... (3 Replies)
Discussion started by: senkerth
3 Replies
8. Linux
I wanted clarity on the steps to install RHEL 6.0. The steps are as follows:-
1) Download the ISO image from the Red Hat site.
2) Burn it into DVD.
3) Download boot.iso from Red Hat (Is this step required or ISO image can install RHEL 6.0 by itself?)
4) Start installation from DVD.
Request... (4 Replies)
Discussion started by: RHCE
4 Replies
9. Solaris
Hello Guys,
I am a little confused about the first step in the live upgrade process. I will be glad if someone can clarify this for me.
The pre-live upgrade patch, when do you add this patch to the OS you want to upgrade?
1. before creating the new boot environment? or
2. after creating... (1 Reply)
Discussion started by: cjashu
1 Replies
10. IP Networking
Dear friends am confused with the logic behind subnetting. i am learning from video tutorial and quite didn't get it
so my question is as below
After subnetting class c address by borrowing one bit from host to network , it leaves host with 7 bit and network increases bit to 25 bits .
... (9 Replies)
Discussion started by: lobsang
9 Replies
LEARN ABOUT DEBIAN
test::bdd::cucumber::manual::steps
Test::BDD::Cucumber::Manual::Steps(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Manual::Steps(3pm)
NAME
Test::BDD::Cucumber::Manual::Steps - How to write Step Definitions
VERSION
version 0.11
INTRODUCTION
The 'code' part of a Cucumber test-suite are the Step Definition files which match steps, and execute code based on them. This document
aims to give you a quick overview of those.
STARTING OFF
Most of your step files will want to start something like:
#!perl
use strict;
use warnings;
use Test::More;
use Test::BDD::Cucumber::StepFile;
use Method::Signatures;
The fake shebang line gives some hints to syntax highlighters, and "use strict;" and "use warnings;" are hopefully fairly standard at this
point.
Most of my Step Definition files make use of Test::More, but you can use any Test::Builder based testing module. Your step will pass its
pass or fail status back to its harness via Test::Builder - each step is run as if it were its own tiny test file, with its own localized
Test::Builder object.
Test::BDD::Cucumber::StepFile gives us the functions "Given()", "When()", "Then()" and "Step()". These pass the step definitions to the
class loading the step definitions, and specify which Step Verb should be used - "Step()" matches any.
Method::Signatures allows us to use a small amount of syntactic sugar for the step definitions, and gives us the "func()" keyword you'll
see in a minute.
STEP DEFINITIONS
Given qr/I have (d+)/, func ($c) {
$c->stash->{'scenario'}->{'count'} += $1;
}
When "The count is an integer", func ($c) {
$c->stash->{'scenario'}->{'count'} =
int( $c->stash->{'scenario'}->{'count'} );
}
Then qr/The count should be (d+)/, func ($c) {
is( $c->stash->{'scenario'}->{'count'}, $c->matches->[0], "Count matches" );
}
Each of the exported verb functions accept a regular expression (or a string that's used as one), and a coderef. The coderef is passed a
single argument, the Test::BDD::Cucumber::StepContext object. To make this a little prettier, we use Method::Signatures's "func()" keyword
so we're not continually typing: "sub { my $c = shift; ... ".
We will evaluate the regex immediately before we execute the coderef, so you can use $1, $2, $etc, although these are also available via
the StepContext.
NEXT STEPS
How step files are loaded is discussed in Test::BDD::Cucumber::Manual::Architecture, but isn't of much interest. Of far more interest
should be seeing what you have available in Test::BDD::Cucumber::StepContext...
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::Steps(3pm)