Showing posts with label Cucumber. Show all posts
Showing posts with label Cucumber. Show all posts

Wednesday, April 25, 2012

"""

Question on your mind - Is the title """?
Answer from me - Yes, its 3 double quotes


This -> """ (3 double quotes) made me happy as I'm the first person to inform to my office colleagues about it. I came to know this because of my laziness & Google.

Hey guys, I can feel that you guys are losing your patience. Without any stretches, I will spot-on about this matter.

""" - Its multi-line comments used in Cucumber (Might been used in many places but no idea from my end).

For multi-line comments, most of my friends were using '#' (hash tag) for each & every line. I just wanted to make multi-line comments and got the answer and informed to all.



::Example::
Feature: my feature
""" some block comment
still block comment
""" end of block comment

Scenario: my feature
""" some block comment
still block comment
""" end of block comment


[courtesy: http://stackoverflow.com]


Nature, Cucumber, Capybara & etc...

It’s been 2 days (not complete 16 hours) for me >> Started learning Cucumber. Just asked questions to most of them in my company related all the ridiculous statements & words I came through (used in Ruby/Rails/Cucumber). Yes, this is interesting.

Just started Features, Scenarios, Given, When, And, Then. As it was so difficult for me to start the basic level from installations itself, thought of posting a post regarding what are these from my understanding.

Feature - It’s used for some test scenario crowd description.
Scenario - It precedes the test name. It’s similar to Test case name.
Given - The instruction after this keyword is some prerequisite or set of connections.
When – The instruction after this keyword is some action to be made during the test.
Then - Typically precedes the instructions responsible for a range of validations
And - And is used for concatenating purpose.

Will post the basic commands in another post & thanks for the interest invoked in me related to Cucumber.