Creating feature files on your local Notepad ++

At times, we as automation testers must connect to a remote VM to develop our test scripts in BDD. This is mostly due to the organization policy that one cannot have the source code on their local machine. It is also observed that it is quite a heavy operation to open the IDE and load the entire solution where you just need to design a Gherkin with let’s say one scenario in a separate feature file. To make this process lighter, we can develop our scenarios on our local using Notepad ++. By default, Notepad ++ doesn’t identify the Gherkin language so a UDL is needed. This UDL is actually developed by a BDD pioneer named ‘Andy Knight’ who owns a very famous and successful BDD blog at https://automationpanda.com/

Steps to enable Notepad ++ to consider the GHERKIN language:

  • Download the ‘gherkin_npp_udl.xml’ file from https://github.com/AndyLPK247/automation-panda-resources
  • Open Notepad++ on your local and click on Languages menu > Define a Language > Import the downloaded file
  • Save the file as ‘.feature’ and try writing your first feature file on your notepad using the GHERKIN language and it should now provide you the correct indentation and color coding.

This might look like a trivial thing when you start to use it but believe me while working with a big team having multiple development VM’s where test scenarios were written, this quick tip of writing/designing the feature file on your local and then moving it to the solution on your VM might help to save some good amount of time.

Reference: https://automationpanda.com/2017/01/18/gherkin-syntax-highlighting-in-notepad/

Tagged , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: